Basic use Cisco routers

Author: Bo small ah QQ: 762641008 reprint declare the URL of: https://www.cnblogs.com/-bobo/

First, the router using the command line

router> User Mode

router> enable to enter privileged mode

router # privileged mode

router # conf t shorthand

router (config) # global configuration mode

router(config)# int f0/1                          

router (config-if) # interface mode

router (config-if) # exit back to the previous mode

router (config) # end quickly retreated to the privileged mode

router # disable user mode from privileged mode and return

router>

 

router (config) # hostname R1 to change the host name "R1"

 

Second, the IP address to the router configuration

router(config) # interface fastethernet 0/1

router(config-if)# ip address ip-address subnet-mask

router (config-if) # no shutdown # Enable port

 

To switch ip address configuration

switch(config) # interface vlan 1

switch(config) # ip address ip-address subnet-mask

switch (config-if) # no shutdown # Enable port

 

switch # show int f0 / 1 # View interface status

 

Third, configure routing

1) Configure a static route

router(config) # ip route network mask { address | interface }

network: destination network address

mask: subnet mask of the destination network

address: Address surprised router interface to reach the destination network passes

interface: the destination network of local interface

 

2) configure a default route

router(config) # ip route 0.0.0.0 0.0.0.0 address

address: address of the next hop router interface to reach the destination network segment through the

 

Fourth, view the routing configuration information

router # show run # View the routing details

router # show ip route # View the routing table

router # show ip int brief # View ip address for each interface

 

Author: Bo small ah QQ: 762641008 reprint declare the URL of: https://www.cnblogs.com/-bobo/

Guess you like

Origin www.cnblogs.com/-bobo/p/11587303.html