Jeremy’s IT Lab lecture video:
Commands
Commands List
Router Show Commands
8. Routes
8.1 General
- show ip route [argument]
-->
Shows the router/switch’s routing table, optionally with an argument to filter for routes of a specific type
- show ip protocols
-->
Shows routing protocol information8.2 EIGRP Routes
- show ip eigrp neighbors
-->
Shows information about EIGRP neighbors- show ip eigrp topology
-->
Shows all learned routes through EIGRP and their information. Includes routes that aren’t currently displayed inshow ip route
, and shows the EIGRP Feasible Distance and Reported Distance8.3 OSPF Routes
Link to original
- show ip ospf database
-->
Shows all of the Link State Advertisements (LSA) in the Link State Database (LSDB)- show ip ospf neighbor
-->
Shows the router’s OSPF neighbors- show ip ospf interface [interface-id]
-->
Shows detailed information about all the interfaces running OSPF, or one specific interface if specified
- show ip ospf interface brief
-->
Brief view of all OSPF interfacesRouter Configuration Commands
Router Commands
General
- router routing-protocol
- network arguments
-->
Enables the routing protocol on interfaces within that IP range- passive-interface interface-id
-->
Turns the interface into a passive interface that doesn’t send out protocol advertisements. The router will still continue to advertise the network prefix of the interface- passive-interface default
-->
Enables the Passive Interface mode on all interfaces by default- default-information originate
-->
Advertises the default route to all other neighbors- no router-id
-->
Resets the current Router ID on the router.- distance distance-value
-->
Changes the administrative distance (AD) of the routing protocol- maximum-paths path-value
-->
Changes the maximum amount of paths that Equal Cost Multi-Path (ECMP) can be done overRIP
- router rip
-->
Goes into RIP configuration mode- version 2
-->
Switches RIP version to 2- no auto-summary
-->
Disables auto-summarization to stop routers from converting advertised classless addresses into classful addresses- network ip-address
-->
Enables RIP on all interfaces that are within the IP rangeEIGRP
- router eigrp autonomous-system-number
-->
Goes into EIGRP configuration mode in the specified autonomous system group- eigrp router-id a.b.c.d
-->
Changes the EIGRP router ID- no auto-summary
-->
Disables auto-summarization to stop routers from converting advertised classless addresses into classful addresses- network ip-address [wildcard-mask]
-->
Enables EIGRP on interfaces within the specified range. A wildcard mask can be used optionallyOSPF
- router ospf process-id
-->
Goes into OSPF router configuration for the specified process- router-id a.b.c.d
-->
Changes the OSPF router ID- network ip-address wildcard-mask area area-number
-->
Enables OSPF on interfaces within the specified range and puts them in the specified area number.- auto-cost reference-bandwidth megabits-per-second
-->
Changes the default reference bandwidth that is used for calculating the metric/cost- shutdown
-->
Shuts down the current OSPF process when in OSPF process configuration mode
Link to original
Routing Protocol Information
General Configuration
- The
default-information originate
command tells the router to advertise its default route to the other protocol neighbors. - The
network IP-ADDRESS [WILDCARD-MASK]
command tells the router to:- Look for interfaces with an IP address that is in the specified range and activate the routing protocol on them
- Form adjacencies with the connected routing protocol neighbors
- Advertise the network prefix of the interface (And NOT the prefix specified in the
network
command)
- The
passive-interface INTERFACE-ID
command tells the router to:- Stop sending protocol advertisements out of the specified interface, but still keep on advertising the network prefix of the interface.
- (This means the interface will stop sending out for example, RIP advertisements, on the specified interface. However, it’ll still advertise the network prefix of the interface like ‘192.168.0.0’ for example, to other RIP neighbors)
- Used on interfaces which don’t have any routing protocol neighbors (ie. end-hosts or loopback addresses)
- Stop sending protocol advertisements out of the specified interface, but still keep on advertising the network prefix of the interface.
Routing Information Protocol (RIP)
Routing Information Protocol (RIP) is a distance vector IGP and an industry standard protocol.
RIP Info
- Uses hop count as its metric, with each router equaling a hop.
- Maximum hop count is 15.
- RIP has three versions:
- RIPv1, used for IPv4
- RIPv2, used for IPv4
- RIPng (RIP Next Generation), used for IPv6
- RIP uses two different message types:
- Request which is used to ask RIP-enabled neighbor routers to send their routing tables.
- Response which is used to send the local router’s routing table to neighboring routers.
RIPv1 and RIPv2
- RIPv1
- Doesn’t support VLSM or CIDR.
- Only advertises classful addresses. (Class A, Class B, Class C)
- Doesn’t include subnet mask information in advertisements (Response messages)
- Messages are broadcast to 255.255.255.255
- RIPv2
- Supports VLSM and CIDR
- Includes subnet mask information in advertisements
- Messages are multicast to 224.0.0.9
Broadcast VS. Multicast
Broadcast messages are delivered to ALL devices on the local network.
Multicast messages are delivered only to devices that have joined that specific multicast group.
RIP Configuration
- The
router rip
command is used to enter RIP configuration mode on the router. - The
version 2
command switches RIP to version 2 which supports VLSM and CIDR - By default, RIP will advertise networks as classful networks. However, we can use
no auto-summary
in order to make it able to advertise classless networks. network IP-ADDRESS [WILDCARD-MASK]
- The command tells the router to:
- Look for interfaces with an IP address that is in the specified range and activate RIP on them
- Form adjacencies with connected RIP neighbors
- Advertise the network prefix of the interface (And NOT the prefix in the
network
command)
- The command tells the router to:
Network command
- The
network IP-ADDRESS
command doesn’t specifically tell the router which networks to advertise.- It tells the router to enable the specified routing protocol of the interfaces that fall within the specified IP range, and then the router will advertise the network prefix of the activated interfaces.
Enhanced Interior Gateway Routing Protocol (EIGRP)
Enhanced Interior Gateway Routing Protocol (EIGRP) is a distance vector IGP that was Cisco proprietary but had parts of it published for other vendors to use.
EIGRP Info
- Reacts faster to changes in the network than RIP
- Does not have the 15 hop count limit of RIP
- Sends messages using multicast on address 224.0.0.10
- The only IGP to be able to perform unequal-cost load-balancing (over 4 paths by default)
EIGRP Configuration
- The
router eigrp AUTONOMOUS-SYSTEM-NUMBER
command goes into EIGRP configuration mode in the specified autonomous system group.- The AS (Autonomous System) number must match between routers, or they will not form an adjacency and will not share route information.
network IP-ADDRESS [WILDCARD-MASK]
- The command will assume a classful address if you do not specify the mask.
- Again, this will advertise the network prefix of the interface (And NOT the prefix in the
network
command)
- Again, this will advertise the network prefix of the interface (And NOT the prefix in the
- The command will assume a classful address if you do not specify the mask.
EIGRP Metric
EIGRP uses bandwidth and delay to calculate metric by default.
Specifically, metric = bandwidth of the slowest link + the delay of all links
- There are other options to change how the metric value is calculated, and they’re enabled and disabled through K values. By default, only bandwidth and delay are enabled, while the rest are disabled.
K value name | Default value |
---|---|
K1 | 1 (Enabled) |
K2 | 0 (Disabled) |
K3 | 1 (Enabled) |
K4 | 0 (Disabled) |
K5 | 0 (Disabled) |
EIGRP Router ID
The EIGRP router ID is selected through 3 methods, with priority being from top to bottom
- Manual Configuration
- Highest IP address on a loopback interface
- Highest IP address on a physical interface
EIGRP Terminology
Feasible Distance: This router’s metric value to the route’s destination
Reported Distance (aka Advertised Distance): The neighbor’s metric value to the route’s destination
Successor: The route with the lowest metric to the destination (Best route)
Feasible Successor: An alternate route to the destination (Not the best route), ==which meets the feasibility condition==
Feasibility Condition: A route is considered a feasible successor if it’s reported distance is lower than the successor route’s feasible distance
EIGRP Unequal-Cost Load-Balancing
In the show ip protocols
command, a variance value can be found with a default value of 1
- Variance 1 = only ECMP load-balancing will be performed.
- Only routes with the same feasible distance as the successor will be used for load-balancing. (If a route has the same feasible distance as a successor, it can be considered a successor as well)
- Variance 2 = Unequal-Cost Load-Balancing will be performed.
- (Feasible Successor routes with a feasible distance up to 2x the successor route’s feasible distance will be used to load-balance)
Unequal-Cost Load-Balancing Note
EIGRP will only perform unequal-cost load-balancing over feasible successor routes. If a route doesn’t meet the feasibility condition, it will never be selected for load-balancing, regardless of the variance value.