cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

CISCO SWITCHES FOR SMALL and MEDIUM BUSINESS

Introducing the next generation of Cisco Small and Medium Business Switches. Cisco is refreshing its SMB Switch portfolio. Click here  to learn more.


3993
Views
0
Helpful
1
Replies
Highlighted
Beginner

Set gateway through CLI

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
Highlighted
Beginner

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
Highlighted
Beginner

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