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 originatecommand 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
networkcommand)
- The
passive-interface INTERFACE-IDcommand 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 ripcommand is used to enter RIP configuration mode on the router. - The
version 2command 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-summaryin 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
networkcommand)
- The command tells the router to:
Network command
- The
network IP-ADDRESScommand 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-NUMBERcommand 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
networkcommand)
- 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.
Jeremy’s IT Lab előadásvideó:
Parancsok
Parancslista
Router Show Parancsok
8. Útvonalak
8.1 Általános
- show ip route [argument]
-->Megjeleníti a router/switch routing table-jét, opcionális argumentummal szűrve egy adott útvonaltípusra- show ip protocols
-->Megjeleníti az útválasztó protokoll információit8.2 EIGRP Útvonalak
- show ip eigrp neighbors
-->Megjeleníti az EIGRP szomszédok adatait- show ip eigrp topology
-->Megjeleníti az EIGRP-n keresztül tanult összes útvonalat és azok információit. Tartalmaz olyan útvonalakat is, amelyek jelenleg nem láthatók ashow ip routekimenetében, és megmutatja az EIGRP Feasible Distance és Reported Distance értékeket8.3 OSPF Útvonalak
Eredeti hivatkozása
- show ip ospf database
-->Megjeleníti az összes Link State Advertisement-et (LSA) a Link State Database-ben (LSDB)- show ip ospf neighbor
-->Megjeleníti a router OSPF szomszédait- show ip ospf interface [interface-id]
-->Részletes információkat jelenít meg az OSPF-et futtató összes interfészről, vagy a megadott konkrét interfészről
- show ip ospf interface brief
-->Tömör összefoglaló nézet az összes OSPF interfészrőlRouter Konfigurációs Parancsok
Router Parancsok
Általános
- router routing-protocol
- network arguments
-->Engedélyezi az útválasztó protokollt a megadott IP tartományba eső interfészeken- passive-interface interface-id
-->Passzív interfészbe állítja az interfészt, így nem küld ki protokoll hirdetéseket (advertisements). A router továbbra is hirdeti az interfész hálózati prefixét- passive-interface default
-->Alapértelmezés szerint minden interfészen bekapcsolja a passzív interfész módot- default-information originate
-->Hirdeti az alapértelmezett útvonalat (default route) a szomszédok felé- no router-id
-->Visszaállítja a router aktuális Router ID értékét- distance distance-value
-->Módosítja az útválasztó protokoll administrative distance (AD) értékét- maximum-paths path-value
-->Módosítja az Equal Cost Multi-Path (ECMP) során használható útvonalak maximális számátRIP
- router rip
-->Belép a RIP konfigurációs módba- version 2
-->Átvált a 2-es RIP verzióra- no auto-summary
-->Kikapcsolja az automatikus összegzést (auto-summarization), így nem alakítja át a classless címeket classful címekké- network ip-address
-->Engedélyezi a RIP-et az adott IP tartományba eső összes interfészenEIGRP
- router eigrp autonomous-system-number
-->Belép az EIGRP konfigurációs módba a megadott autonomous system csoportban- eigrp router-id a.b.c.d
-->Módosítja az EIGRP router ID-t- no auto-summary
-->Kikapcsolja az automatikus összegzést- network ip-address [wildcard-mask]
-->Engedélyezi az EIGRP-t a megadott tartományba eső interfészeken. Opcionálisan wildcard maszk is használhatóOSPF
- router ospf process-id
-->Belép az OSPF router konfigurációba a megadott process-hez- router-id a.b.c.d
-->Módosítja az OSPF router ID-t- network ip-address wildcard-mask area area-number
-->Engedélyezi az OSPF-et a megadott tartomány interfészein, és hozzárendeli őket a megadott area-hoz- auto-cost reference-bandwidth megabits-per-second
-->Megváltoztatja a metrika/költség számításához használt alapértelmezett referencia sávszélességet- shutdown
-->Leállítja az aktuális OSPF folyamatot OSPF konfigurációs módban
Eredeti hivatkozása
Útválasztó Protokoll Információk
Általános Konfiguráció
- A
default-information originateparancs arra utasítja a routert, hogy hirdesse az alapértelmezett útvonalát (default route) a többi protokoll szomszéd felé. - A
network IP-ADDRESS [WILDCARD-MASK]parancs arra utasítja a routert, hogy:- Keressen olyan interfészeket, amelyek IP-címe a megadott tartományba esik, és aktiválja rajtuk az útválasztó protokollt
- Alakítson ki szomszédsági kapcsolatokat (adjacencies) a csatlakozó útválasztó protokoll szomszédokkal
- Hirdesse az interfész hálózati prefixét (És NEM a
networkparancsban megadott prefixet)
- A
passive-interface INTERFACE-IDparancs arra utasítja a routert, hogy:- Állítsa le a protokoll hirdetések (advertisements) küldését a megadott interfészen, de továbbra is hirdesse az interfész hálózati prefixét.
- (Ez azt jelenti, hogy az interfész például nem küld ki több RIP hirdetést. Azonban az interfész hálózati prefixét – például „192.168.0.0” – továbbra is hirdetni fogja a többi RIP szomszéd felé)
- Olyan interfészeken használatos, amelyekhez nem csatlakozik útválasztó protokoll szomszéd (pl. végberendezések vagy loopback interfészek)
- Állítsa le a protokoll hirdetések (advertisements) küldését a megadott interfészen, de továbbra is hirdesse az interfész hálózati prefixét.
Routing Information Protocol (RIP)
A Routing Information Protocol (RIP) egy distance vector IGP és egyben ipari szabványos protokoll.
RIP Információk
- Metrikaként az ugrásszámot (hop count) használja, ahol minden router egy ugrásnak felel meg.
- A maximális ugrásszám 15. (A 16 már elérhetetlennek számít).
- A RIP-nek 3 verziója létezik:
- RIPv1: IPv4-hez
- RIPv2: IPv4-hez
- RIPng (RIP Next Generation): IPv6-hoz
- A RIP két különböző üzenettípust használ:
- Request: Ezzel kéri le a RIP-képes szomszédos routerektől a routing table-jüket.
- Response: Ezzel küldi el a helyi router routing table-jét a szomszédos routereknek.
RIPv1 és RIPv2
- RIPv1
- Nem támogatja a VLSM-et vagy a CIDR-t.
- Csak classful (osztályos) címeket hirdet (Class A, Class B, Class C).
- Nem tartalmaz alhálózati maszk információt a hirdetésekben (Response üzenetekben).
- Az üzeneteket broadcast címre (255.255.255.255) küldi.
- RIPv2
- Támogatja a VLSM-et és a CIDR-t.
- Tartalmazza az alhálózati maszk információt a hirdetésekben.
- Az üzeneteket multicast címre (224.0.0.9) küldi.
Broadcast VS. Multicast
A Broadcast üzenetek a helyi hálózat MINDEN eszközéhez eljutnak.
A Multicast üzenetek kizárólag azokhoz az eszközökhöz jutnak el, amelyek csatlakoztak az adott multicast csoporthoz.
RIP Konfiguráció
- A
router ripparancs belép a RIP konfigurációs módba. - A
version 2parancs átkapcsolja a RIP-et a 2-es verzióra, amely támogatja a VLSM-et és a CIDR-t. - Alapértelmezés szerint a RIP classful hálózatokként hirdeti meg a hálózatokat. A
no auto-summaryparanccsal engedélyezhetjük a classless hálózatok hirdetését. network IP-ADDRESS [WILDCARD-MASK]- A parancs arra utasítja a routert, hogy:
- Keressen olyan interfészeket, amelyek IP-címe a megadott tartományba esik, és aktiválja rajtuk a RIP-et
- Alakítson ki szomszédsági kapcsolatot a csatlakozó RIP szomszédokkal
- Hirdesse az interfész hálózati prefixét (És NEM a
networkparancsban megadott prefixet)
- A parancs arra utasítja a routert, hogy:
A Network parancs működése
- A
network IP-ADDRESSparancs nem közvetlenül azt mondja meg a routernek, hogy mely hálózatokat hirdesse meg.- Azt mondja meg, hogy mely interfészeken engedélyezze a megadott útválasztó protokollt az IP-címük alapján, és a router ezután a bekapcsolt interfészek hálózati prefixét hirdeti meg.
Enhanced Interior Gateway Routing Protocol (EIGRP)
Az Enhanced Interior Gateway Routing Protocol (EIGRP) egy distance vector IGP, amely eredetileg Cisco-specifikus (proprietary) volt, de egyes részeit később publikálták más gyártók számára is.
EIGRP Információk
- Gyorsabban reagál a hálózati változásokra, mint a RIP
- Nem rendelkezik a RIP 15-ös ugrásszám (hop count) korlátjával
- Az üzeneteket multicast formájában küldi a 224.0.0.10 címre
- Az egyetlen IGP, amely képes unequal-cost terheléselosztásra (load-balancing) (alapértelmezés szerint legfeljebb 4 útvonalon keresztül)
EIGRP Konfiguráció
- A
router eigrp AUTONOMOUS-SYSTEM-NUMBERparancs belép az EIGRP konfigurációs módba a megadott autonomous system csoportban.- Az AS (Autonomous System) számnak egyeznie kell a routerek között, különben nem alakítanak ki szomszédságot és nem osztanak meg útvonal-információkat.
network IP-ADDRESS [WILDCARD-MASK]- A parancs classful címet feltételez, ha nem adunk meg maszkot.
- Ez ismét az interfész hálózati prefixét hirdeti meg (És NEM a
networkparancsban megadott prefixet).
- Ez ismét az interfész hálózati prefixét hirdeti meg (És NEM a
- A parancs classful címet feltételez, ha nem adunk meg maszkot.
EIGRP Metrika
Az EIGRP alapértelmezés szerint a sávszélességet (bandwidth) és a késleltetést (delay) használja a metrika kiszámításához.
Pontosabban: metrika = a leglassabb link sávszélessége + az összes link késleltetése
- Léteznek egyéb beállítások is a metrika számítási módjának megváltoztatására, amelyeket az úgynevezett K értékekkel lehet ki- és bekapcsolni. Alapértelmezés szerint kizárólag a bandwidth és a delay engedélyezett, a többi ki van kapcsolva.
| K érték neve | Alapértelmezett érték |
|---|---|
| K1 | 1 (Engedélyezve) |
| K2 | 0 (Letiltva) |
| K3 | 1 (Engedélyezve) |
| K4 | 0 (Letiltva) |
| K5 | 0 (Letiltva) |
EIGRP Router ID
Az EIGRP router ID 3 módszer egyikével kerül kiválasztásra, az alábbi prioritási sorrendben:
- Kézi konfiguráció (Manual Configuration)
- A loopback interfészen lévő legmagasabb IP-cím
- A fizikai interfészen lévő legmagasabb IP-cím
EIGRP Terminológia
Feasible Distance: A helyi router metrika értéke az útvonal célállomásáig
Reported Distance (más néven Advertised Distance): A szomszéd router metrika értéke az útvonal célállomásáig
Successor: A célállomáshoz vezető legalacsonyabb metrikával rendelkező útvonal (a legjobb útvonal)
Feasible Successor: Egy alternatív útvonal a célállomáshoz (nem a legjobb útvonal), ==amely teljesíti a feasibility condition feltételt==
Feasibility Condition: Egy útvonal akkor számít feasible successor-nak, ha a reported distance értéke szigorúan alacsonyabb, mint a successor útvonal feasible distance értéke.
EIGRP Nem Egyenlő Költségű Terheléselosztás (Unequal-Cost Load-Balancing)
A show ip protocols parancs kimenetében található egy variance érték, amelynek alapértelmezett értéke 1.
- Variance 1 = kizárólag ECMP (egyenlő költségű) terheléselosztás valósul meg.
- Csak a successor-ral megegyező feasible distance-szel rendelkező útvonalak vesznek részt a terheléselosztásban. (Ha egy útvonalnak azonos a feasible distance értéke a successor-éval, az szintén successor-nak minősül).
- Variance 2 = Unequal-Cost Load-Balancing (nem egyenlő költségű terheléselosztás) valósul meg.
- (Azok a Feasible Successor útvonalak, amelyek feasible distance értéke legfeljebb a successor útvonal feasible distance értékének 2-szerese, részt vesznek a terheléselosztásban).
Megjegyzés az Unequal-Cost Load-Balancingról
Az EIGRP kizárólag olyan feasible successor útvonalakon végez unequal-cost terheléselosztást, amelyek teljesítik a feasibility condition feltételt. Ha egy útvonal nem felel meg a feltételnek, soha nem kerül kiválasztásra a terheléselosztáshoz, függetlenül a variance beállított értékétől.