cisco switch router static routing configuration

1. Switch mode

  router> en // User mode enable

  router # conf t // privilege mode configure terminal

2. Start the interface and assign the IP address

       router (config) #interface fa0 / 0 // Configuration mode ... assign IP address to port f0 / 0

  router (config-if) #ip address 192.168.1.1 255.255.255.0 // The port of the router is used as the gateway, the subnet mask is set according to the need, and the default subnet mask is generally used

  router (config-if) #no shutdown // Interface mode

  router(config-if)#exit

Three, configure static routing

              Destination network Subnet mask (destination) Next hop address

   router(config)#ip route 192.168.2.0           255.255.255.0                 192.168.3.20

Fourth, check

  show ip interface brief // Display port ip

  do show ip route // Show route

Guess you like

Origin www.cnblogs.com/Crazy-Liu/p/12761367.html