Ruijie Community

Title: How to configure default gateway on Ruijie switch? [Print this page]

Author: admin    Time: 2022-5-19 11:46
Title: How to configure default gateway on Ruijie switch?
The default gateway of the Lay3 switch is provided by the static routing. A device can also learn network routing through the dynamic routing protocol so as to implement remote management.
Configure the default gateway, that means configure a default route of a layer 3 switch.

Ruijie>enable
Ruijie#configure terminal
Ruijie(config)#ip route 0.0.0.0 0.0.0.0 192.168.1.254------>configure default gateway of switch as 192.168.1.254
Ruijie(config)#end
Ruijie#write------>save configuration after checking.
Verification
By the following command, then can configure check the route table of switch.
Ruijie#show ip route
Codes:C - Connected, L - Local, S - Static
R - RIP, O - OSPF, B - BGP, I - IS-IS, V - Overflow route
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
SU - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
IA - Inter area, * - candidate default
Gateway of last resort is 192.168.1.254 to network 0.0.0.0
S*  0.0.0.0/0 [1/0] via 192.168.1.254





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