====== CONFIGURING A DEFAULT GATEWAY ====== **Note:** //The default gateway of a layer 3 switch is provided by static routing. A device can also learn network routing through a dynamic routing protocol so as to implement remote management. For the configuration specification of other routing protocols, see IP Route (for the configuration method, see Common Function Configuration > IP Route).// **Configuring the Default Gateway of a Switch** Configure the default gateway, that is, 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 ===== //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//