GTAC-Sophia Publish time 2023-1-30 15:39:50

How to set the default gateway of the switch?

L2 switch:

Ruijie>enable
Ruijie#configure terminal
Ruijie(config)#ip default-gateway192.168.1.254      ------>set default-gatewayof switch to192.168.1.254

Ruijie(config)#end
Ruijie#write    ------>save the configuration

L3 switch:

Ruijie>enable
Ruijie#configure terminal
Ruijie(config)#ip route 0.0.0.0 0.0.0.0192.168.1.254    ------>set default-gateway of switch to 192.168.1.254

Ruijie(config)#end
Ruijie#write    ------>save the configuration

Pages: [1]
View full version: How to set the default gateway of the switch?