cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
11523
Views
0
Helpful
1
Replies

Set gateway through CLI

jwegge
Level 1
Level 1

Hi,

 

I try to add a gateway through CLI on a SG350X-24  as per Configure the Internet Protocol (IP) Address Settings on a Switch through the Command Line Interface (CLI)

 

switchd1b11a#show ip interface


IP Address I/F I/F Status Type Directed Prec Redirect Status
admin/oper Broadcast
------------------ --------- ---------- ------- --------- ---- -------- ------
10.120.10.20/16 vlan 9 UP/UP Static disable No enable Valid

 

switchd1b11a#configure
switchd1b11a(config)#interface vlan 9
switchd1b11a(config-if)#ip address 10.120.10.20 255.255.0.0 10.120.0.1
% Wrong number of parameters or invalid range, size or characters entered
switchd1b11a(config-if)#ip address 10.120.10.20 255.255.0.0 [10.120.0.1]
% Wrong number of parameters or invalid range, size or characters entered

How to proceed ?

 

TIA,

Jord

1 Accepted Solution

Accepted Solutions

jwegge
Level 1
Level 1

switchd1b11a#configure
switchd1b11a(config)#ip default-gateway 10.120.0.1
switchd1b11a(config)#end

Explanation in orig. article is erroneous where it states : "ip address [ip-address] {{mask | prefix-length}} [default-gateway-ip-address] "

 

Cheers,

Jord

View solution in original post

1 Reply 1

jwegge
Level 1
Level 1

switchd1b11a#configure
switchd1b11a(config)#ip default-gateway 10.120.0.1
switchd1b11a(config)#end

Explanation in orig. article is erroneous where it states : "ip address [ip-address] {{mask | prefix-length}} [default-gateway-ip-address] "

 

Cheers,

Jord