Network Command on CISCO Router/Switch

Command Network Use Specifies which interfaces will participate in the OSPF process. Syntax Router(config-router)#network <network address> <wildcard mask> area <area> Options <network address> Any interface with this network address will be added into OSPF. <wildcard masks> Sets how specific the network statement is: 192.168.1.0 0.0.0.255 would match any …

Distance OSPF Command on CISCO Router/Switch

Command Distance OSPF Use This command changes the administrative distance for OSPF routes. Syntax Router(config-router)#distance ospf <intra-area distance><inter-area distance><external distance> Example In this example, we will change OSPF administrative distance to 150 for internal routes and 220 for external. Currently, we see OSPF is at its default administrative distance of 110. …

Distribute-List Command on CISCO Router/Switch

Command Distribute-List Use Allows you to filter routes from the routing table. For CCNA purposes, this is usually done through access lists. Syntax Router(config-router)#distribute-list <list> <in/out> OR Router(config-router)#distribute-list <list> <in/out> <interface> Options <list> Access list <in/out> Whether the router is receiving or sending the route Example In this …

Router-Id Command on CISCO Router/Switch

Command Router-Id Use This command manually sets the router-id used by OSPF. If it is not set, OSPF will automatically set its router-id to be the highest loopback IP address or the highest IP address (if no loopback interfaces are present). One thing to note is, even though …

Distance Command on CISCO Router/Switch

Command Distance Use Allows you to filter routes from the routing table. For CCNA purposes, this is usually done through access lists. Syntax Router(config-router)#distance <AD> <source IP> <wildcard mask> <access-list> Options <Administrative Distance> Sets the administrative distance for the selected routes <source IP> Source IP the route is …

Maximum-Paths Command on CISCO Router/Switch

Command Maximum-Paths Use Controls how many equal cost paths OSPF will loadbalance with. Syntax Router(config-router)#maximum-path <1-16> Example In this example we will change the number of OSPF maximum paths to 6. R1(config)#router OSPF 1 R1(config-router)# maximum-paths 6

Passive-Interface Command on CISCO Router/Switch

Command Passive-Interface Use This command prevents OSPF from forming adjacencies on specified interfaces on the router. Using no passive-interface is used to allow all OSPF communication. Syntax Router(config-router)#passive-interface <interface> Example In this example, we will use passive-interface default to block all OSPF adjacencies. After that, we will allow communication through R2’s Fa0/0. …

Privilege Command on CISCO Router/Switch

Command Privilege Use Sets the privilege level you run at upon logging in through vty port. Syntax Router(config-line)#privilege level <0-15> Example In this example, privilege level 15 is used to set the vty privilege to enable mode upon login. R2#conf t Enter configuration commands, one per line. End with CNTL/Z. …

Neighbor Command on CISCO Router/Switch

Command Neighbor Use This command tells EIGRP to communicate with unicast updates to a specific neighbor. Syntax Router(config-router)#neighbor <ip address> <interface> Example In this example, we will configure R4 to send its updates to R3 using unicast. Looking at the debug output for ip packets, we see that updates …

Offset-List Command on CISCO Router/Switch

Command Offset-List Use This command allows you to modify the metric of a route on the routing table. Syntax Router(config-router)#offset-list <list> <in or out> <offset> <interface> Options <list> – 0 All networks <list> – 1-99,1300-1999 Standard access list <list> – Name Named access list <in> Affects inbound updates …