Routing Protocol Commands: Difference between revisions

From ITCwiki
Jump to navigation Jump to search
(Created page with "Image:Network.jpg == Commands for RIP == Router(config)#'''router rip''' - Enables RIP as a protocol Router(config-router)#'''network''' ''w.x.y.z'' - ''w.x.y.z'' is ...")
 
No edit summary
Line 92: Line 92:
Router(config)#'''router ospf 456'''  -  Enables OSPF process. The number "456" is any positive number between 1 and 65, 535.  It is not related to the OSPF area. The process ID is use to distinguish one process from another within the device. These numbers DO NOT have to match the process ID of an other router.
Router(config)#'''router ospf 456'''  -  Enables OSPF process. The number "456" is any positive number between 1 and 65, 535.  It is not related to the OSPF area. The process ID is use to distinguish one process from another within the device. These numbers DO NOT have to match the process ID of an other router.


_________________________________ STOPPED HERE FOR NOW _____________________________________________________
Router(config-router)#'''network''' ''172.10.0.0 0.0.0.255 area 0''  - OSPF advertises interfaces, not networks.  It also uses the wildcard mask to determine whch interfaces to advertise.  It is read as "any interface with the address of 172.10.0.0 is to be put in area 0.


Router(config)#'''no router eigrp 100'''  -  Removes EIGRP as a process.
Router(config-if)#'''ip address x.x.x.x x.x.x.x'''  -  Assigns IP address to interface


Router(config-router)#'''network''' ''w.x.y.z''  - ''w.x.y.z'' is the directly connected network you want to advertise
Router(config-router)#'''router-id 10.1.1.1'''''  - Sets ID to 10.1.1.1 Takes affect at next reload.


Router(config-router)#'''no network w.x.y.z'''  -  Removes advertised network
Router(config-router)#'''no router-id 10..1.1.1'''  -  Removes the static router ID from the configuration.  Takes affect at next reload.


Router(config-if)#'''bandwidth ''X'''''  - Sets the bandwidth of this interface to X kilobits to allow EIGRP to make the best metric calculation
Router(config)#'''interface S0/0 - Changes interface to be configured


Router(config-router)#'''network 1.1.1.1 0.0.0.3'''  -  Tells which interface or network to include in EIGRP. Interfaces are configured with addresses that fall within the wildcard mask range of the network statement.
Router(config-if)#'''ip ospf priority 50'''  -  Changes the OSPF interface priority to 50.  The assigned priority can be between 0 and 255. The higher the number the higher the priority.  A 255 guarantees a tie in the election for DR/BDR. Ties are broken by the highest router ID.


Router(config-router)#'''auto-summary'''  -  Enables auto summarization for the EIGRP process
Router(config)#'''interface s0/0/0'''  -  Changes to interface config mode


Router(config-router)#'''no auto-summary'''  -  Turns the auto summarization feature of EIGRP off
Router(config-if)#'''bandwidth 128'''  -  If changed, OSPF will recalculate the cost of the link.


    ** EIGRP automatically summarizes networks on the classful boundary.
Router(config-if)#'''ip ospf hello-interval timer 20'''  -  Changes the hello interval to 20 seconds


    ** If you have discontigous subnets you could have issues with connectivity if summarization is left on.
Router(config-if)#'''ip ospf dead-interval 80'''  -  Changes the dead interval to 80 seconds


    ** If turned off, it is recommended to use the '''ip summary-address''' command to summarize manually.
  ** Hello and Dead Timers must match for routers to become neighbors


Router(config)#'''ip route 0.0.0.0 0.0.0.0.0 s0/0'''  -  Creates a default route


Router(config-router)#'''default-information originate'''  -  Sets the default route to be advertised to all OSPF routers


Router(config)#'''interface s0/0/0'''  - Enters interface configuration mode
    ** You can verify configurations by running the show commands at the Router# prompt
    ** Show ip protocol, show ip route, show ip ospf, show ip ospf interface, show ip ospf border-routers, show ip ospf neighbor
    ** show ip ospf neighbor detail, show ip ospf database, show ip ospf database nssa-external


Router(config-if)#'''bandwidth 256'''  -  Sets the bandwidth of this interface


'''Commands for Troubleshooting'''
Router#'''clear ip route *'''  -  Clears entire table forcing it to rebuild


'''Commands for Troubleshooting'''
Router#'''clear ip route a.b.c.d''' -  Clears specific route to network a.b.c.d


Router#'''clear ip ospf counters'''  -  Resets OSPF counters


Router#'''debug eigrp fsm'''  -  Displays events and actions related to EIGRP feasible successor metrics (FSM)
Router#'''clear ip ospf process'''  -  Clears entire OSPF process forcing it to re-create neighbors, database, and routing table


Router#'''debug eigrp packet'''  -  Displays events and actions related to EIGRP packets
Router#'''debug ip ospf events'''  -  Displays all OSPF events


Router#'''debug eigrp neighbor'''  -  Displays events and actions related to EIGRP neighbors. Also '''debug ip eigrp neighbor'''
Router#'''debug ip ospf adjacency'''  -  Displays various OSPF states and DR/BDR election between adjacent routers


Router#'''debug eigrp packet'''  -  Displays events and actions related to EIGRP packets
Router#'''debug ip ospf packets'''  -  Displays OSPF packets


Router#'''debug ip eigrp notifications''' - Displays EIGRP event notification
  ** ALL INFORMATION PROVIDED ON PAGE IS FROM CCNA Portable Command Guide, Scott Empson, cicsopress.com
----

Revision as of 21:02, 9 October 2011

Network.jpg

Commands for RIP

Router(config)#router rip - Enables RIP as a protocol

Router(config-router)#network w.x.y.z - w.x.y.z is the directly connected network you want to advertise

Router(config)#no router rip - Turns off RIP

Router(config-router)#no network w.x.y.z - Removes network

Router(config-router)#version 2 - Turns on V2 and now RIP will send and receive RIPv2 Packets

Router(config-router)#version 1 - RIP will send and receive RIPv1 Packets

Router(config-router)#no auto-summary - RipV2 summarizes networks at the classful boundary. This command will turns auto summary off

Router(config-router)#passive-interface s/0/0/1 - RIP updates will not be sent out this interface

Router(config-router)#neighbor a.b.c.d - Defines a specific neighbor to exchange information with

Router(config-router)#no ip split-horizon - Turns off split horizon (this is on by default)

Router(config-router)#ip split-horizon - Turns it back on

Router(config-router)#timers basic 30 60 90 180 270 360 - Changes timers in RIP: 30=Update timer, 90=Invalid Timer, 180=Hold down timer, 270= Flush timer, 360=Sleep timer

Router(config-router)#default-information originate - Generates a default route into RIP


Commands for Troubleshooting


Router#debug ip rip - Displays all RIP activity in real time

Router#show ip rip database - Displays contents of the RIP database


Commands for EIGRP

Router(config)#router eigrp 100 - Enables EIGRP as a process. The number "100" is an autonomous system number (ASN) which can be any number between 1 and 65,535. All routers in the same system must use the same ASN

Router(config)#no router eigrp 100 - Removes EIGRP as a process.

Router(config-router)#network w.x.y.z - w.x.y.z is the directly connected network you want to advertise

Router(config-router)#no network w.x.y.z - Removes advertised network

Router(config-if)#bandwidth X - Sets the bandwidth of this interface to X kilobits to allow EIGRP to make the best metric calculation

Router(config-router)#network 1.1.1.1 0.0.0.3 - Tells which interface or network to include in EIGRP. Interfaces are configured with addresses that fall within the wildcard mask range of the network statement.

Router(config-router)#auto-summary - Enables auto summarization for the EIGRP process

Router(config-router)#no auto-summary - Turns the auto summarization feature of EIGRP off

   ** EIGRP automatically summarizes networks on the classful boundary.
   ** If you have discontigous subnets you could have issues with connectivity if summarization is left on.
   ** If turned off, it is recommended to use the ip summary-address command to summarize manually.


Router(config)#interface s0/0/0 - Enters interface configuration mode

Router(config-if)#bandwidth 256 - Sets the bandwidth of this interface


Commands for Troubleshooting


Router#debug eigrp fsm - Displays events and actions related to EIGRP feasible successor metrics (FSM)

Router#debug eigrp packet - Displays events and actions related to EIGRP packets

Router#debug eigrp neighbor - Displays events and actions related to EIGRP neighbors. Also debug ip eigrp neighbor

Router#debug eigrp packet - Displays events and actions related to EIGRP packets

Router#debug ip eigrp notifications - Displays EIGRP event notification


Commands for OSPF

Router(config)#router ospf 456 - Enables OSPF process. The number "456" is any positive number between 1 and 65, 535. It is not related to the OSPF area. The process ID is use to distinguish one process from another within the device. These numbers DO NOT have to match the process ID of an other router.

Router(config-router)#network 172.10.0.0 0.0.0.255 area 0 - OSPF advertises interfaces, not networks. It also uses the wildcard mask to determine whch interfaces to advertise. It is read as "any interface with the address of 172.10.0.0 is to be put in area 0.

Router(config-if)#ip address x.x.x.x x.x.x.x - Assigns IP address to interface

Router(config-router)#router-id 10.1.1.1 - Sets ID to 10.1.1.1 Takes affect at next reload.

Router(config-router)#no router-id 10..1.1.1 - Removes the static router ID from the configuration. Takes affect at next reload.

Router(config)#interface S0/0 - Changes interface to be configured

Router(config-if)#ip ospf priority 50 - Changes the OSPF interface priority to 50. The assigned priority can be between 0 and 255. The higher the number the higher the priority. A 255 guarantees a tie in the election for DR/BDR. Ties are broken by the highest router ID.

Router(config)#interface s0/0/0 - Changes to interface config mode

Router(config-if)#bandwidth 128 - If changed, OSPF will recalculate the cost of the link.

Router(config-if)#ip ospf hello-interval timer 20 - Changes the hello interval to 20 seconds

Router(config-if)#ip ospf dead-interval 80 - Changes the dead interval to 80 seconds

 ** Hello and Dead Timers must match for routers to become neighbors

Router(config)#ip route 0.0.0.0 0.0.0.0.0 s0/0 - Creates a default route

Router(config-router)#default-information originate - Sets the default route to be advertised to all OSPF routers

   ** You can verify configurations by running the show commands at the Router# prompt
   ** Show ip protocol, show ip route, show ip ospf, show ip ospf interface, show ip ospf border-routers, show ip ospf neighbor
   ** show ip ospf neighbor detail, show ip ospf database, show ip ospf database nssa-external


Commands for Troubleshooting


Router#clear ip route * - Clears entire table forcing it to rebuild

Router#clear ip route a.b.c.d - Clears specific route to network a.b.c.d

Router#clear ip ospf counters - Resets OSPF counters

Router#clear ip ospf process - Clears entire OSPF process forcing it to re-create neighbors, database, and routing table

Router#debug ip ospf events - Displays all OSPF events

Router#debug ip ospf adjacency - Displays various OSPF states and DR/BDR election between adjacent routers

Router#debug ip ospf packets - Displays OSPF packets

 **  ALL INFORMATION PROVIDED ON PAGE IS FROM CCNA Portable Command Guide, Scott Empson, cicsopress.com