Basic: Cisco IP Commands

Here is a list of the IP Commands

Configure IP on an interface: 
Serial interface
  • Router(config)#interface serial 0 
  • Router(config-if)#p address 157.89.1.3 255.255.0.0 
  • Router(config-if)#Clock rate 64000
  • Router(config-if)#encapsulation hdlc
  • Router(config-if)#no shutdown
  • Router(config-if)#exit

Fast ethernet interface
  • Router(config)#int fa 0/0 
  • Router(config-if)#ip address 200.81.1.4 255.255.255.0
  • Router(config-if)##no shutdown
  • Router(config-if)#exit

Other IP Commands: 

  • sh ip route - view ip routing table 
  • ip route <remote_network> <mask> <default_gateway> [administrative_distance] - configure a static IP route 
  • ip route 0.0.0.0 0.0.0.0 <put gateway of the last resort here> - sets default gateway 
  • ip classless - use with static routing to allow packets destined for unrecognized subnets to use the best possible route 
  • sh arp - view arp cache; shows MAC address of connected routers 
  • ip address 2.2.2.2 255.255.255.0 secondary - configure a 2nd ip address on an interface 
  • sh ip protocol - To view the protocol used 

0 comments:

Post a Comment