10-31-2018 03:42 AM
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
Solved! Go to Solution.
10-31-2018 07:37 AM
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
10-31-2018 07:37 AM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide