Ruijie Community

Title: How to set the default gateway of the switch? [Print this page]

Author: GTAC-Sophia    Time: 2023-1-30 15:39
Title: 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






Welcome to Ruijie Community (https://community.ruijienetworks.com/) Powered by Discuz! X3.2