Advanced Routing
Advanced Routing
• Process switching
• Fast switching
• CEF switching
• When the traffic of the router is processed
switched and when it is CEF switched.
• Difference between Next hop and Exit interface.
• It worked with me when I connect two routers
together back to back with Ethernet int and static
routes point to the exit interface.
• Some times in real networks it didn’t work as
Ethernet as exit interface is a broadcast int and an
IP must be specified.
• Plz redo the scenario but put a L2 switch between
the two routers and use static routes with exit int
and see if there is any difference
RIPv2
• Multicast updates to 224.0.0.9 (v1 use broadcast)
• UDP port 520
• Metric = hop count (16 = infinity)
• Updates = all routing table
• AD = 120
• Classless (classfull by default, in all versions I cant
specify the mask in the network command)
RIPv2
• Timers:
– Updates = 30 sec
– Invalid = 180 sec
– Holddown = 180 sec (if a router receives update for
invalid route, it starts holddown time before accepting
such route)
– Flush = 240 sec
• Updates sent every 30 sec, if no update is
received for a route for 180 sec (invalid) route is
marked as possibly down, one minute later (240
sec) it will be flushed
RIPv2
• Auto Summary is ON by default (when cross
major net boundary OR when diff subnet
mask is detected)
• To solve this problem use no-auto + version 2
• No-Auto summary has no effect under ver1
• Network command:
– Advertise net to neighbor on this interface
– Send / receive updates on int
– Adv any int that is included by the network comm
RIPv2
• To still send updates on passive int → under routing process use
neighbor command, it sends unicast updates
– Neighbor x.x.x.x
• To sends updates as broadcast while using v2 → under interface
– Ip rip v2-broadcast
• Authentication → under interface
– ip rip auth mode text / MD5
– ip rip auth key-chain xxxx
– Key chain xxxx
• Key 1
• Key-string yyyy
• Summary address → under interface
– ip summary-address rip x.x.x.x
RIPv2
• Passive interface → under Routing process
– Stop sending updates
– Still can receive updates
– Do not stop adv the int network through other
interfaces.
• Route filtering
➢ Passive int
➢ Distribute list
✓ Prefix list
✓ Access list (standard & extended)
➢ Offset list
➢ AD
RIPv2
• Default Route origination
– Default-information originate → Under routing
process
– Ip summary-add rip 0.0.0.0 0.0.0.0 on int but it
will suppress all other advertisements
• Split horizon is OFF by default on main
interface configured with FR.
• Split horizon is ON by default on multipoint
sub interface in FR.
RIP Lab
– MD5
• -router)# area 0 authentication message-digest → Area level
• -if)# ip ospf authentication message-digest → Interface level
• -if)# ip ospf message-digest-key 1 md5 xxxx OR
OSPF
• OSPF advertises stub network (loopbacks) as
host routes /32. To override this behavior and
advertise the network with its mask use:
– -if)# ip ospf network point-to-point
• ks
OSPF
• Configure all shown
• All routers have
loopbacks
• Area 0 Authen MD5
area level
• Area 1 & 2 authen text
interface level
OSPF Network types
• Point to Point (PPP & HDLC)
– No DR & BDR
– Auto discovery of neighbors
– Hello = 10s , Dead = 40s
OSPF Network types
• Broadcast Multi-access (Ethernet & Token ring)
– DR & BDR
– Auto discovery of neighbors
– Hello = 10s , Dead = 40s
– DR & BDR election based on:
• Highest priority (default is 1), if same then
– -if)# ip ospf priority 0-255
• Highest router ID
– 224.0.0.5 → Joined by all OSPF routers
– 224.0.0.6 → Joined by DR & BDR
– All routers will form:
• FULL neighborship with DR & BDR
• 2WAY neighborship with each other, as the LSAs are sent to the DR
to be resent to other routers so no need to form FULL
neighborship with other routers
Lab
• Configure the Ethernet
network all in area 0
• Test the DR/BDR
concept
• Make sure to see the
routers form FULL
neighborship with DR &
BDR and 2WAY with
other routers.
OSPF Network types
• NBMA (Non Broadcast Multi Access)
1. Non broadcast (FR, ATM & X.25)
• Acts as a LAN
• DR & BDR election
• Hello = 30s, Dead = 120s
• One subnet
• No auto discovery (non broadcast) use neighbor command on hub
• Unicast hellos
• If hub and spoke, hub is DR as it has full connectivity to all spokes, spokes with
priority 0 (in neighbor command on DR) as not to be BDR as they have no full
connectivity to all others
• Reachability issue that spokes will point directly to other spokes (i.e as if
broadcast) so to solve the problem another map statement on the spokes
resolving the other spoke IP through the hub router.
• Configuration steps:
– Manual configuration of neighbors on Hub with priority 0
» -if)# neighbor 1.1.1.1 priority 0
– Spokes configured with priority 0 on FR interface
– Adjust spokes FR to include extra map statement to reach other spoke through hub
OSPF Network types
• NBMA (Non Broadcast Multi Access)
2. Point-to-multipoint (RFC)
• Treats each spoke as point to point
• No DR & BDR election
• Hello = 30s, Dead = 120s
• Auto discovery of neighbors (multicast hellos)
• Single Subnet (Hub & Spokes)
• Advertise FR network end point as host routes /32
• Can use neighbor cost statement to adjust cost to neighbor
– -if)# neighbor x.x.x.x cost #
• Fixes reachability issue with NBMA, the Hub will modify the next
hop in the advertisements to match himself.
• Configuration sequence:
– FR map statements with broadcast keyword
– FR interface with point to multipoint option
» -if)# ip ospf network point-to-multipoint non-broadcast
OSPF Network types
• NBMA (Non Broadcast Multi Access)
3. Point to Multipoint non-broadcast (Cisco)
• Same as point to multipoint (RFC) but with no Auto
Discovery of neighbors (unicast hellos)
• Treats each spoke as point to point
• No DR & BDR election
• Hello = 30s, Dead = 120s
• Manual configuration of neighbors
• Can use neighbor cost statement
• Advertise FR network end points as host routes /32
• Fixes reachability issue with NBMA, the Hub will modify the
next hop in the advertisements to match himself.
OSPF Network types
• NBMA (Non Broadcast Multi Access)
4. Point to Point (Cisco)
• No DR & BDR election
• Hello = 10s, Dead = 40s
• Auto discovery of neighbors (multicast hellos)
• Uses point to point sub-interface on FR cloud between
Hub and Spokes
• Multiple subnets based on the number of connected
spokes
OSPF Network types
• NBMA (Non Broadcast Multi Access)
5. Broadcast (Cisco)
• DR & BDR Election
• Hello = 10s, Dead = 40s
• Auto discovery of neighbors (multicast hellos)
• Same subnet (extra map is needed on the spokes to
resolve the other spoke through the Hub)
Lab
• All routers are in same
subnet, R1 Hub & R2 R3
are spokes
• Test NBMA non-
broadcast, point to
multipoint and point to
multipoint non-broadcast
• All routers have
loopbacks
• Full reachability is
required
OSPF Filtering Techniques
• Filter list (using prefix list) to filter LSA type 3 between Areas, on
ABR
– -router)# area x filter-list in/out
• In → to Area
• Out → From Area
• Area Range to summarize some networks and choose to advertise
it or suppress it to filter LSA type 3, on ABR
– -router)# area x range x.x.x.x y.y.y.y advertise/not-advertise
– X → of area to be summarized
– Summary address will be an OSPF route pointing to Null0 on the router
doing the summarization
• Distribute list used to block the routes from entering the local’s
router routing table but it wont stop the LSA
– Prefix list
– Router Map (to block from a specific source)
OSPF Filtering Techniques
• To block LSA type 5 on ASBR into OSPF domain
use summary-address + not-advertise
– -router)# summary-address x.x.x.x y.y.y.y not-advertise
• Default route origination
– -router)# default-information originate [always]
– A default route MUST be in the routing table to send
the default route otherwise use the always keyword
– Sent as E2 type route
Lab
• FR is point to multipoint
• All routers have loopbacks (i.e 1.1.1.1, 4.4.4.4, 5.5.5.5,..)
• R4 has 192.168.4.0/24 & 192.168.44.0/24
• R5 has 192.168.0.0/24 & 192.168.1.0/24
• On R2 use filter list to filter 192.168.4.0/24
• On R3 summarize R5 loopbacks 0.0/24 & 1.0/24
• On R5 use distribute list to filter R1 loopback 1.1.1.1
OSPF Virtual link
• Virtual link is used to:
– connect an area that is not directly connected to Area 0 through
a transit area
– Connect dis-contigous Area 0
– -router)# area x virtual-link router-id
• X → of transit area
• Router-id → of the destination ABR
• Configured on both ABRs
• The ABRs don’t have to be directly connected.
• Virtual link is treated by OSPF as an Interface in Area 0
• # sh ip ospf virtual-link
– A Virtual link can be authenticated
– Multiple Back to Back virtual links can be configured to connect
multiple Areas to Area 0, like in the next lab.
OSPF Metric
• Cost function = 100 Mbps / interface BW in
Mbps
• Changing the cost of an Interface
– -if)# ip ospf cost x
– This will set the interface cost, that will be added
the rest of the costs in the path to the destination
• Change the Cost calculation
– -router)# auto-cost reference-bandwidth x
• X → default is 100 Mbps
Lab