turn over that leader board... our spanning trees are ready to take your calls...
11 months...
that's an average of 1820 a month...
and 573 posts...
for an average of 52 posts a month...
do not be mistaken... i did it all for me... you are collateral damage...
Sunday, September 30, 2012
cookbook cost...
to change the cost of an ospf link use...
ip ospf cost (cost)
i cannot think of a good reason to ever do this... it might be instructive for a lab so that you could see something weird, or to illustrate why not to do this... use at your own risk...
onto something useful...
the summary of all summaries, as it were...
a default route is not automatically distributed to a neighbor...
however default-information originate will ship it next door...
light up ospf on r3 and r4 for area 1
r1#sh ip route
Gateway of last resort is not set
1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 1.1.1.0/24 is directly connected, Loopback1
L 1.1.1.1/32 is directly connected, Loopback1
10.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
C 10.1.1.0/24 is directly connected, FastEthernet0/0
L 10.1.1.1/32 is directly connected, FastEthernet0/0
C 10.1.2.0/24 is directly connected, FastEthernet1/1
L 10.1.2.1/32 is directly connected, FastEthernet1/1
O IA 192.168.1.0/24 [110/782] via 10.1.1.2, 00:03:55, FastEthernet0/0
now set up a default route on r2...
r2#sh ip route
Gateway of last resort is 192.168.1.2 to network 0.0.0.0
S* 0.0.0.0/0 [1/0] via 192.168.1.2
1.0.0.0/24 is subnetted, 1 subnets
O 1.1.1.0 [110/2] via 10.1.1.1, 00:05:29, FastEthernet0/0
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.1.1.0/24 is directly connected, FastEthernet0/0
L 10.1.1.2/32 is directly connected, FastEthernet0/0
192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.1.0/24 is directly connected, Serial1/1
L 192.168.1.1/32 is directly connected, Serial1/1
r1#sh ip route
Gateway of last resort is not set
1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 1.1.1.0/24 is directly connected, Loopback1
L 1.1.1.1/32 is directly connected, Loopback1
10.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
C 10.1.1.0/24 is directly connected, FastEthernet0/0
L 10.1.1.1/32 is directly connected, FastEthernet0/0
C 10.1.2.0/24 is directly connected, FastEthernet1/1
L 10.1.2.1/32 is directly connected, FastEthernet1/1
O IA 192.168.1.0/24 [110/782] via 10.1.1.2, 00:08:09, FastEthernet0/0
note that on r2 the gateway of last resort is locally significant only...
default-information originate will distribute it...
r2(config)#router ospf 1
r2(config-router)#default-info originate
r1#sh ip route
Gateway of last resort is 10.1.1.2 to network 0.0.0.0
O*E2 0.0.0.0/0 [110/1] via 10.1.1.2, 00:00:24, FastEthernet0/0
1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 1.1.1.0/24 is directly connected, Loopback1
L 1.1.1.1/32 is directly connected, Loopback1
10.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
C 10.1.1.0/24 is directly connected, FastEthernet0/0
L 10.1.1.1/32 is directly connected, FastEthernet0/0
C 10.1.2.0/24 is directly connected, FastEthernet1/1
L 10.1.2.1/32 is directly connected, FastEthernet1/1
O IA 192.168.1.0/24 [110/782] via 10.1.1.2, 00:10:36, FastEthernet0/0
it shows as external type 2 by default...
r4#sh ip route
Gateway of last resort is 192.168.1.1 to network 0.0.0.0
O*E2 0.0.0.0/0 [110/1] via 192.168.1.1, 00:01:53, Serial1/1
1.0.0.0/24 is subnetted, 1 subnets
O IA 1.1.1.0 [110/783] via 192.168.1.1, 00:09:00, Serial1/1
10.0.0.0/24 is subnetted, 1 subnets
O IA 10.1.1.0 [110/782] via 192.168.1.1, 00:09:00, Serial1/1
172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks
C 172.16.1.0/24 is directly connected, FastEthernet0/0
L 172.16.1.2/32 is directly connected, FastEthernet0/0
192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.1.0/24 is directly connected, Serial1/1
L 192.168.1.2/32 is directly connected, Serial1/1
but you can change that...
r1#sh ip route
Gateway of last resort is 10.1.1.2 to network 0.0.0.0
O*E1 0.0.0.0/0 [110/2] via 10.1.1.2, 00:00:35, FastEthernet0/0
1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 1.1.1.0/24 is directly connected, Loopback1
L 1.1.1.1/32 is directly connected, Loopback1
10.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
C 10.1.1.0/24 is directly connected, FastEthernet0/0
L 10.1.1.1/32 is directly connected, FastEthernet0/0
C 10.1.2.0/24 is directly connected, FastEthernet1/1
L 10.1.2.1/32 is directly connected, FastEthernet1/1
O IA 192.168.1.0/24 [110/782] via 10.1.1.2, 00:16:43, FastEthernet0/0
note the difference between type 1 and type 2... type 1 includes the internal cost...
ip ospf cost (cost)
i cannot think of a good reason to ever do this... it might be instructive for a lab so that you could see something weird, or to illustrate why not to do this... use at your own risk...
onto something useful...
the summary of all summaries, as it were...
a default route is not automatically distributed to a neighbor...
however default-information originate will ship it next door...
light up ospf on r3 and r4 for area 1
r1#sh ip route
Gateway of last resort is not set
1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 1.1.1.0/24 is directly connected, Loopback1
L 1.1.1.1/32 is directly connected, Loopback1
10.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
C 10.1.1.0/24 is directly connected, FastEthernet0/0
L 10.1.1.1/32 is directly connected, FastEthernet0/0
C 10.1.2.0/24 is directly connected, FastEthernet1/1
L 10.1.2.1/32 is directly connected, FastEthernet1/1
O IA 192.168.1.0/24 [110/782] via 10.1.1.2, 00:03:55, FastEthernet0/0
now set up a default route on r2...
r2#sh ip route
Gateway of last resort is 192.168.1.2 to network 0.0.0.0
S* 0.0.0.0/0 [1/0] via 192.168.1.2
1.0.0.0/24 is subnetted, 1 subnets
O 1.1.1.0 [110/2] via 10.1.1.1, 00:05:29, FastEthernet0/0
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.1.1.0/24 is directly connected, FastEthernet0/0
L 10.1.1.2/32 is directly connected, FastEthernet0/0
192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.1.0/24 is directly connected, Serial1/1
L 192.168.1.1/32 is directly connected, Serial1/1
r1#sh ip route
Gateway of last resort is not set
1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 1.1.1.0/24 is directly connected, Loopback1
L 1.1.1.1/32 is directly connected, Loopback1
10.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
C 10.1.1.0/24 is directly connected, FastEthernet0/0
L 10.1.1.1/32 is directly connected, FastEthernet0/0
C 10.1.2.0/24 is directly connected, FastEthernet1/1
L 10.1.2.1/32 is directly connected, FastEthernet1/1
O IA 192.168.1.0/24 [110/782] via 10.1.1.2, 00:08:09, FastEthernet0/0
note that on r2 the gateway of last resort is locally significant only...
default-information originate will distribute it...
r2(config)#router ospf 1
r2(config-router)#default-info originate
r1#sh ip route
Gateway of last resort is 10.1.1.2 to network 0.0.0.0
O*E2 0.0.0.0/0 [110/1] via 10.1.1.2, 00:00:24, FastEthernet0/0
1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 1.1.1.0/24 is directly connected, Loopback1
L 1.1.1.1/32 is directly connected, Loopback1
10.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
C 10.1.1.0/24 is directly connected, FastEthernet0/0
L 10.1.1.1/32 is directly connected, FastEthernet0/0
C 10.1.2.0/24 is directly connected, FastEthernet1/1
L 10.1.2.1/32 is directly connected, FastEthernet1/1
O IA 192.168.1.0/24 [110/782] via 10.1.1.2, 00:10:36, FastEthernet0/0
it shows as external type 2 by default...
r4#sh ip route
Gateway of last resort is 192.168.1.1 to network 0.0.0.0
O*E2 0.0.0.0/0 [110/1] via 192.168.1.1, 00:01:53, Serial1/1
1.0.0.0/24 is subnetted, 1 subnets
O IA 1.1.1.0 [110/783] via 192.168.1.1, 00:09:00, Serial1/1
10.0.0.0/24 is subnetted, 1 subnets
O IA 10.1.1.0 [110/782] via 192.168.1.1, 00:09:00, Serial1/1
172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks
C 172.16.1.0/24 is directly connected, FastEthernet0/0
L 172.16.1.2/32 is directly connected, FastEthernet0/0
192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.1.0/24 is directly connected, Serial1/1
L 192.168.1.2/32 is directly connected, Serial1/1
but you can change that...
r2(config-router)#default-info originate metric-type 1
Gateway of last resort is 10.1.1.2 to network 0.0.0.0
O*E1 0.0.0.0/0 [110/2] via 10.1.1.2, 00:00:35, FastEthernet0/0
1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 1.1.1.0/24 is directly connected, Loopback1
L 1.1.1.1/32 is directly connected, Loopback1
10.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
C 10.1.1.0/24 is directly connected, FastEthernet0/0
L 10.1.1.1/32 is directly connected, FastEthernet0/0
C 10.1.2.0/24 is directly connected, FastEthernet1/1
L 10.1.2.1/32 is directly connected, FastEthernet1/1
O IA 192.168.1.0/24 [110/782] via 10.1.1.2, 00:16:43, FastEthernet0/0
note the difference between type 1 and type 2... type 1 includes the internal cost...
Labels:
ccnp,
ccnp route,
ios cookbook,
ospf
cookbook ospf 2...
remove ospf from the interfaces... add network statements...
with ospf you can filter lsa's in but not out, unless you filter all of them out... but you love lsa's so don't do that...
r2#sh ip route ospf
Gateway of last resort is not set
1.0.0.0/24 is subnetted, 1 subnets
O 1.1.1.0 [110/2] via 10.1.1.1, 00:00:49, FastEthernet0/0
r2#sh access-list 1
Standard IP access list 1
10 deny 1.1.1.0 (2 matches)
20 permit any
r2#sh run | beg routerStandard IP access list 1
10 deny 1.1.1.0 (2 matches)
20 permit any
router ospf 1
network 10.1.1.0 0.0.0.255 area 0
distribute-list 1 in FastEthernet0/0
r2#sh ip route ospf
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
+ - replicated route, % - next hop override
Gateway of last resort is not set
r2(config-router)#distribute-list 1 out f0/0
% Interface not allowed with OUT for OSPF
r2(config-router)#no access-list 1
r2(config)#do sh ip route ospf
Gateway of last resort is not set
1.0.0.0/24 is subnetted, 1 subnets
O 1.1.1.0 [110/2] via 10.1.1.1, 00:00:09, FastEthernet0/0
so be careful here, and listen to the cook:
It's important to remember that unlike EIGRP and RIP,
OSPF uses a link state
rather than a distance vector algorithm. One place where this difference
becomes clear is in route filtering. At a minimum, every router in an
area must see the LSAs for every other router in the same area.
Depending on the type of area, it may also see summary LSAs representing
routing information from other areas or other autonomous systems. These
LSA packets are flooded throughout the area, with each router
forwarding LSA information on to any downstream devices. Every router
then separately computes the best routing table based on this link state
information.
If you prevented a router from forwarding
some of the LSA information, its downstream routers would not have a
full link state database, and consequently wouldn't be able to generate
an accurate routing table.
julia childs on ospf...
if it cooks...
it's all about the chow...
julia loves cookin you up some lsa's...
no... please... not the mcgahan topology... anything but the mcgahan topology...
suffer...
none of the protocols are running... all the good little ccnp candidates save their topologies with only the interfaces configured... right?
r1
router ospf 1
netw 0.0.0.0 255.255.255.255 area 0
r2
router ospf 1
netw 0.0.0.0 255.255.255.255 area 0
of course, only julia would cook up something like this
r2#sh ip ospf neigh
Neighbor ID Pri State Dead Time Address Interface
1.1.1.1 1 FULL/BDR 00:00:33 10.1.1.1 FastEthernet0/0
cisco introduced using ospf on ipv4 interfaces with 12.3(11)T... smoke em if you got em... remove router ospf 1 on both... then...
r2#sh run int f0/0
Building configuration...
Current configuration : 99 bytes
!
interface FastEthernet0/0
ip address 10.1.1.2 255.255.255.0
ip ospf 1 area 0
duplex full
r2#sh ip ospf neigh
Neighbor ID Pri State Dead Time Address Interface
1.1.1.1 1 FULL/BDR 00:00:35 10.1.1.1 FastEthernet0/0
JULIA!!!
julia loves cookin you up some lsa's...
no... please... not the mcgahan topology... anything but the mcgahan topology...
suffer...
none of the protocols are running... all the good little ccnp candidates save their topologies with only the interfaces configured... right?
r1
router ospf 1
netw 0.0.0.0 255.255.255.255 area 0
r2
router ospf 1
netw 0.0.0.0 255.255.255.255 area 0
of course, only julia would cook up something like this
r2#sh ip ospf neigh
Neighbor ID Pri State Dead Time Address Interface
1.1.1.1 1 FULL/BDR 00:00:33 10.1.1.1 FastEthernet0/0
cisco introduced using ospf on ipv4 interfaces with 12.3(11)T... smoke em if you got em... remove router ospf 1 on both... then...
r1#sh run int lo1
Building configuration...
Current configuration : 111 bytes
!
interface Loopback1
ip address 1.1.1.1 255.255.255.0
ip ospf network point-to-point
ip ospf 1 area 0
Building configuration...
Current configuration : 111 bytes
!
interface Loopback1
ip address 1.1.1.1 255.255.255.0
ip ospf network point-to-point
ip ospf 1 area 0
r1#sh run int f0/0
Building configuration...
Current configuration : 99 bytes
!
interface FastEthernet0/0
ip address 10.1.1.1 255.255.255.0
ip ospf 1 area 0
duplex full
Building configuration...
Current configuration : 99 bytes
!
interface FastEthernet0/0
ip address 10.1.1.1 255.255.255.0
ip ospf 1 area 0
duplex full
Building configuration...
Current configuration : 99 bytes
!
interface FastEthernet0/0
ip address 10.1.1.2 255.255.255.0
ip ospf 1 area 0
duplex full
r2#sh ip ospf neigh
Neighbor ID Pri State Dead Time Address Interface
1.1.1.1 1 FULL/BDR 00:00:35 10.1.1.1 FastEthernet0/0
JULIA!!!
crookbook 6...
show eigrp's...
r1#sh ip proto
*** IP Routing is NSF aware ***
Routing Protocol is "eigrp 1"
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Default networks flagged in outgoing updates
Default networks accepted from incoming updates
EIGRP-IPv4 Protocol for AS(1)
Metric weight K1=1, K2=0, K3=1, K4=0, K5=0
NSF-aware route hold timer is 240
Router-ID: 1.1.1.1
Topology : 0 (base)
Active Timer: 3 min
Distance: internal 90 external 170
Maximum path: 4
Maximum hopcount 100
Maximum metric variance 1
Automatic Summarization: disabled
Address Summarization:
192.168.1.0/28 for Se2/0
Summarizing 2 components with metric 128256
192.168.1.0/27 for Se2/0
Summarizing 4 components with metric 128256
Maximum path: 4
Routing for Networks:
1.0.0.0
10.0.0.0
192.168.1.0
Routing Information Sources:
Gateway Distance Last Update
10.1.1.2 90 00:13:21
Distance: internal 90 external 170
r1#sh ip route eigrp
Gateway of last resort is not set
2.0.0.0/24 is subnetted, 1 subnets
D 2.2.2.0 [90/2297856] via 10.1.1.2, 04:53:05, Serial2/0
D EX 3.0.0.0/8 [170/2560512000] via 10.1.1.2, 00:14:24, Serial2/0
4.0.0.0/24 is subnetted, 1 subnets
D EX 4.4.4.0 [170/2560512000] via 10.1.1.2, 00:14:24, Serial2/0
172.16.0.0/24 is subnetted, 1 subnets
D EX 172.16.1.0 [170/2560512000] via 10.1.1.2, 00:14:24, Serial2/0
192.168.1.0/24 is variably subnetted, 8 subnets, 4 masks
D 192.168.1.0/27 is a summary, 04:10:37, Null0
D 192.168.1.0/28 is a summary, 04:08:23, Null0
r1#sh ip eigrp topo
EIGRP-IPv4 Topology Table for AS(1)/ID(1.1.1.1)
Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,
r - reply Status, s - sia Status
P 2.2.2.0/24, 1 successors, FD is 2297856
via 10.1.1.2 (2297856/128256), Serial2/0
P 192.168.1.0/28, 1 successors, FD is 128256
via Summary (128256/0), Null0
P 192.168.1.0/27, 1 successors, FD is 128256
via Summary (128256/0), Null0
P 192.168.1.0/30, 1 successors, FD is 128256
via Connected, Loopback1
P 192.168.1.16/30, 1 successors, FD is 128256
via Connected, Loopback3
P 3.0.0.0/8, 1 successors, FD is 2560512000, tag is 5
via 10.1.1.2 (2560512000/2560000000), Serial2/0
P 172.16.1.0/24, 1 successors, FD is 2560512000, tag is 5
via 10.1.1.2 (2560512000/2560000000), Serial2/0
P 1.1.1.0/24, 1 successors, FD is 128256
via Connected, Loopback0
P 10.1.1.0/24, 1 successors, FD is 2169856
via Connected, Serial2/0
P 4.4.4.0/24, 1 successors, FD is 2560512000, tag is 5
via 10.1.1.2 (2560512000/2560000000), Serial2/0
P 192.168.1.8/30, 1 successors, FD is 128256
via Connected, Loopback2
you are in the show...
*** IP Routing is NSF aware ***
Routing Protocol is "eigrp 1"
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Default networks flagged in outgoing updates
Default networks accepted from incoming updates
EIGRP-IPv4 Protocol for AS(1)
Metric weight K1=1, K2=0, K3=1, K4=0, K5=0
NSF-aware route hold timer is 240
Router-ID: 1.1.1.1
Topology : 0 (base)
Active Timer: 3 min
Distance: internal 90 external 170
Maximum path: 4
Maximum hopcount 100
Maximum metric variance 1
Automatic Summarization: disabled
Address Summarization:
192.168.1.0/28 for Se2/0
Summarizing 2 components with metric 128256
192.168.1.0/27 for Se2/0
Summarizing 4 components with metric 128256
Maximum path: 4
Routing for Networks:
1.0.0.0
10.0.0.0
192.168.1.0
Routing Information Sources:
Gateway Distance Last Update
10.1.1.2 90 00:13:21
Distance: internal 90 external 170
r1#sh ip route eigrp
Gateway of last resort is not set
2.0.0.0/24 is subnetted, 1 subnets
D 2.2.2.0 [90/2297856] via 10.1.1.2, 04:53:05, Serial2/0
D EX 3.0.0.0/8 [170/2560512000] via 10.1.1.2, 00:14:24, Serial2/0
4.0.0.0/24 is subnetted, 1 subnets
D EX 4.4.4.0 [170/2560512000] via 10.1.1.2, 00:14:24, Serial2/0
172.16.0.0/24 is subnetted, 1 subnets
D EX 172.16.1.0 [170/2560512000] via 10.1.1.2, 00:14:24, Serial2/0
192.168.1.0/24 is variably subnetted, 8 subnets, 4 masks
D 192.168.1.0/27 is a summary, 04:10:37, Null0
D 192.168.1.0/28 is a summary, 04:08:23, Null0
r1#sh ip eigrp neigh
EIGRP-IPv4 Neighbors for AS(1)
H Address Interface Hold Uptime SRTT RTO Q Seq
(sec) (ms) Cnt Num
0 10.1.1.2 Se2/0 13 04:53:43 15 100 0 56
EIGRP-IPv4 Neighbors for AS(1)
H Address Interface Hold Uptime SRTT RTO Q Seq
(sec) (ms) Cnt Num
0 10.1.1.2 Se2/0 13 04:53:43 15 100 0 56
r1#sh ip eigrp int
EIGRP-IPv4 Interfaces for AS(1)
Xmit Queue PeerQ Mean Pacing Time Multicast Pending
Interface Peers Un/Reliable Un/Reliable SRTT Un/Reliable Flow Timer Routes
Se2/0 1 0/0 0/0 15 0/15 71 0
Lo0 0 0/0 0/0 0 0/0 0 0
Lo1 0 0/0 0/0 0 0/0 0 0
Lo2 0 0/0 0/0 0 0/0 0 0
Lo3 0 0/0 0/0 0 0/0 0 0
EIGRP-IPv4 Interfaces for AS(1)
Xmit Queue PeerQ Mean Pacing Time Multicast Pending
Interface Peers Un/Reliable Un/Reliable SRTT Un/Reliable Flow Timer Routes
Se2/0 1 0/0 0/0 15 0/15 71 0
Lo0 0 0/0 0/0 0 0/0 0 0
Lo1 0 0/0 0/0 0 0/0 0 0
Lo2 0 0/0 0/0 0 0/0 0 0
Lo3 0 0/0 0/0 0 0/0 0 0
r1#sh ip eigrp accounting
EIGRP-IPv4 Accounting for AS(1)/ID(1.1.1.1)
Total Prefix Count: 11 States: A-Adjacency, P-Pending, D-Down
State Address/Source Interface Prefix Restart Restart/
Count Count Reset(s)
A 10.1.1.2 Se2/0 4 0 0
EIGRP-IPv4 Accounting for AS(1)/ID(1.1.1.1)
Total Prefix Count: 11 States: A-Adjacency, P-Pending, D-Down
State Address/Source Interface Prefix Restart Restart/
Count Count Reset(s)
A 10.1.1.2 Se2/0 4 0 0
EIGRP-IPv4 Topology Table for AS(1)/ID(1.1.1.1)
Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,
r - reply Status, s - sia Status
P 2.2.2.0/24, 1 successors, FD is 2297856
via 10.1.1.2 (2297856/128256), Serial2/0
P 192.168.1.0/28, 1 successors, FD is 128256
via Summary (128256/0), Null0
P 192.168.1.0/27, 1 successors, FD is 128256
via Summary (128256/0), Null0
P 192.168.1.0/30, 1 successors, FD is 128256
via Connected, Loopback1
P 192.168.1.16/30, 1 successors, FD is 128256
via Connected, Loopback3
P 3.0.0.0/8, 1 successors, FD is 2560512000, tag is 5
via 10.1.1.2 (2560512000/2560000000), Serial2/0
P 172.16.1.0/24, 1 successors, FD is 2560512000, tag is 5
via 10.1.1.2 (2560512000/2560000000), Serial2/0
P 1.1.1.0/24, 1 successors, FD is 128256
via Connected, Loopback0
P 10.1.1.0/24, 1 successors, FD is 2169856
via Connected, Serial2/0
P 4.4.4.0/24, 1 successors, FD is 2560512000, tag is 5
via 10.1.1.2 (2560512000/2560000000), Serial2/0
P 192.168.1.8/30, 1 successors, FD is 128256
via Connected, Loopback2
you are in the show...
crookbook 5...
route tagging... you can tag redistributed routes, external routes... it's very exciting... you can tag them, and then look at the tags, and notice that they have tags... then you can look at the tags again...
i did mention you can notice the redistributed routes are tagged?
r1#sh ip eigrp topo 172.16.1.0/24
EIGRP-IPv4 Topology Entry for AS(1)/ID(1.1.1.1) for 172.16.1.0/24
State is Passive, Query origin flag is 1, 1 Successor(s), FD is 2560512000
Descriptor Blocks:
10.1.1.2 (Serial2/0), from 10.1.1.2, Send flag is 0x0
Composite metric is (2560512000/2560000000), route is External
Vector metric:
Minimum bandwidth is 1 Kbit
Total delay is 20000 microseconds
Reliability is 1/255
Load is 1/255
Minimum MTU is 1500
Hop count is 1
Originating router is 2.2.2.2
External data:
AS number of route is 0
External protocol is RIP, external metric is 0
Administrator tag is 0 (0x00000000)
without route tagging the route, you have the loser tag of 0...
since you don't want to be a tag loser, make some friggin tags...
use route-map conventions, start by permitting, as normal...
r2#sh access-list 1
Standard IP access list 1
10 permit 172.16.1.0, wildcard bits 0.0.0.255
20 permit any
r2#sh run | begin route-map
route-map ripper permit 10
match ip address 1
set tag 5
match the permitted ip address with the route map and set the tag to 5...
now add the route map to the redistribution statement...
r2(config)#router eigrp 1
r2(config-router)#redistrib rip metric 1 0 1 1 1500 route-map ripper
you are now a route tag winner...
r1#sh ip eigrp topo 172.16.1.0/24
EIGRP-IPv4 Topology Entry for AS(1)/ID(1.1.1.1) for 172.16.1.0/24
State is Passive, Query origin flag is 1, 1 Successor(s), FD is 2560512000
Descriptor Blocks:
10.1.1.2 (Serial2/0), from 10.1.1.2, Send flag is 0x0
Composite metric is (2560512000/2560000000), route is External
Vector metric:
Minimum bandwidth is 1 Kbit
Total delay is 20000 microseconds
Reliability is 1/255
Load is 1/255
Minimum MTU is 1500
Hop count is 1
Originating router is 2.2.2.2
External data:
AS number of route is 0
External protocol is RIP, external metric is 0
Administrator tag is 5 (0x00000005)
r1#sh ip eigrp topo
EIGRP-IPv4 Topology Table for AS(1)/ID(1.1.1.1)
Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,
r - reply Status, s - sia Status
P 2.2.2.0/24, 1 successors, FD is 2297856
via 10.1.1.2 (2297856/128256), Serial2/0
P 192.168.1.0/28, 1 successors, FD is 128256
via Summary (128256/0), Null0
P 192.168.1.0/27, 1 successors, FD is 128256
via Summary (128256/0), Null0
P 192.168.1.0/30, 1 successors, FD is 128256
via Connected, Loopback1
P 192.168.1.16/30, 1 successors, FD is 128256
via Connected, Loopback3
P 3.0.0.0/8, 1 successors, FD is 2560512000, tag is 5
via 10.1.1.2 (2560512000/2560000000), Serial2/0
P 172.16.1.0/24, 1 successors, FD is 2560512000, tag is 5
via 10.1.1.2 (2560512000/2560000000), Serial2/0
P 1.1.1.0/24, 1 successors, FD is 128256
via Connected, Loopback0
P 10.1.1.0/24, 1 successors, FD is 2169856
via Connected, Serial2/0
P 4.4.4.0/24, 1 successors, FD is 2560512000, tag is 5
via 10.1.1.2 (2560512000/2560000000), Serial2/0
P 192.168.1.8/30, 1 successors, FD is 128256
via Connected, Loopback2
admire your route tags now...
i did mention you can notice the redistributed routes are tagged?
r1#sh ip eigrp topo 172.16.1.0/24
EIGRP-IPv4 Topology Entry for AS(1)/ID(1.1.1.1) for 172.16.1.0/24
State is Passive, Query origin flag is 1, 1 Successor(s), FD is 2560512000
Descriptor Blocks:
10.1.1.2 (Serial2/0), from 10.1.1.2, Send flag is 0x0
Composite metric is (2560512000/2560000000), route is External
Vector metric:
Minimum bandwidth is 1 Kbit
Total delay is 20000 microseconds
Reliability is 1/255
Load is 1/255
Minimum MTU is 1500
Hop count is 1
Originating router is 2.2.2.2
External data:
AS number of route is 0
External protocol is RIP, external metric is 0
Administrator tag is 0 (0x00000000)
without route tagging the route, you have the loser tag of 0...
since you don't want to be a tag loser, make some friggin tags...
use route-map conventions, start by permitting, as normal...
r2#sh access-list 1
Standard IP access list 1
10 permit 172.16.1.0, wildcard bits 0.0.0.255
20 permit any
r2#sh run | begin route-map
route-map ripper permit 10
match ip address 1
set tag 5
match the permitted ip address with the route map and set the tag to 5...
now add the route map to the redistribution statement...
r2(config)#router eigrp 1
r2(config-router)#redistrib rip metric 1 0 1 1 1500 route-map ripper
you are now a route tag winner...
r1#sh ip eigrp topo 172.16.1.0/24
EIGRP-IPv4 Topology Entry for AS(1)/ID(1.1.1.1) for 172.16.1.0/24
State is Passive, Query origin flag is 1, 1 Successor(s), FD is 2560512000
Descriptor Blocks:
10.1.1.2 (Serial2/0), from 10.1.1.2, Send flag is 0x0
Composite metric is (2560512000/2560000000), route is External
Vector metric:
Minimum bandwidth is 1 Kbit
Total delay is 20000 microseconds
Reliability is 1/255
Load is 1/255
Minimum MTU is 1500
Hop count is 1
Originating router is 2.2.2.2
External data:
AS number of route is 0
External protocol is RIP, external metric is 0
Administrator tag is 5 (0x00000005)
r1#sh ip eigrp topo
EIGRP-IPv4 Topology Table for AS(1)/ID(1.1.1.1)
Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,
r - reply Status, s - sia Status
P 2.2.2.0/24, 1 successors, FD is 2297856
via 10.1.1.2 (2297856/128256), Serial2/0
P 192.168.1.0/28, 1 successors, FD is 128256
via Summary (128256/0), Null0
P 192.168.1.0/27, 1 successors, FD is 128256
via Summary (128256/0), Null0
P 192.168.1.0/30, 1 successors, FD is 128256
via Connected, Loopback1
P 192.168.1.16/30, 1 successors, FD is 128256
via Connected, Loopback3
P 3.0.0.0/8, 1 successors, FD is 2560512000, tag is 5
via 10.1.1.2 (2560512000/2560000000), Serial2/0
P 172.16.1.0/24, 1 successors, FD is 2560512000, tag is 5
via 10.1.1.2 (2560512000/2560000000), Serial2/0
P 1.1.1.0/24, 1 successors, FD is 128256
via Connected, Loopback0
P 10.1.1.0/24, 1 successors, FD is 2169856
via Connected, Serial2/0
P 4.4.4.0/24, 1 successors, FD is 2560512000, tag is 5
via 10.1.1.2 (2560512000/2560000000), Serial2/0
P 192.168.1.8/30, 1 successors, FD is 128256
via Connected, Loopback2
admire your route tags now...
Labels:
ccnp,
ccnp route,
eigrp,
route tagging
crookbook eigrp summ...
add loopbacks to r1... add auto-summary...
it is very contrived, suck it up...
interface Loopback1
ip address 192.168.1.1 255.255.255.252
!
interface Loopback2
ip address 192.168.1.9 255.255.255.252
!
interface Loopback3
ip address 192.168.1.17 255.255.255.252
r2#sh ip route eigrp
Gateway of last resort is not set
D 1.0.0.0/8 [90/2297856] via 10.1.1.1, 00:00:16, Serial2/0
D 192.168.1.0/24 [90/2297856] via 10.1.1.1, 00:00:16, Serial2/0
auto summary makes summarization at the classful border...
lose it...
r2#sh ip route eigrp
Gateway of last resort is not set
1.0.0.0/24 is subnetted, 1 subnets
D 1.1.1.0 [90/2297856] via 10.1.1.1, 00:00:11, Serial2/0
192.168.1.0/30 is subnetted, 3 subnets
D 192.168.1.0 [90/2297856] via 10.1.1.1, 00:00:11, Serial2/0
D 192.168.1.8 [90/2297856] via 10.1.1.1, 00:00:11, Serial2/0
D 192.168.1.16 [90/2297856] via 10.1.1.1, 00:00:11, Serial2/0
and you get them all...
to summarize at the longest prefix, count...
0 to 16 includes 0 and that means 17, so the summary needs to be more than 16 and less than 32... 256 minus 32 = 224 or /24 + 3 or /27...
int s2/0
ip summary-add eigrp 1 192.168.1.0 255.255.255.224
r2#sh ip route eigrp
Gateway of last resort is not set
1.0.0.0/24 is subnetted, 1 subnets
D 1.1.1.0 [90/2297856] via 10.1.1.1, 00:06:45, Serial2/0
192.168.1.0/27 is subnetted, 1 subnets
D 192.168.1.0 [90/2297856] via 10.1.1.1, 00:00:16, Serial2/0
/28 doesn't get it...
int s2/0
ip summary-add eigrp 1 192.168.1.0 255.255.255.240
r2#sh ip route eigrp
Gateway of last resort is not set
1.0.0.0/24 is subnetted, 1 subnets
D 1.1.1.0 [90/2297856] via 10.1.1.1, 00:09:25, Serial2/0
192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
D 192.168.1.0/27 [90/2297856] via 10.1.1.1, 00:02:56, Serial2/0
D 192.168.1.0/28 [90/2297856] via 10.1.1.1, 00:00:42, Serial2/0
this has been a public service announcement...
it is very contrived, suck it up...
interface Loopback1
ip address 192.168.1.1 255.255.255.252
!
interface Loopback2
ip address 192.168.1.9 255.255.255.252
!
interface Loopback3
ip address 192.168.1.17 255.255.255.252
r2#sh ip route eigrp
Gateway of last resort is not set
D 1.0.0.0/8 [90/2297856] via 10.1.1.1, 00:00:16, Serial2/0
D 192.168.1.0/24 [90/2297856] via 10.1.1.1, 00:00:16, Serial2/0
auto summary makes summarization at the classful border...
lose it...
r2#sh ip route eigrp
Gateway of last resort is not set
1.0.0.0/24 is subnetted, 1 subnets
D 1.1.1.0 [90/2297856] via 10.1.1.1, 00:00:11, Serial2/0
192.168.1.0/30 is subnetted, 3 subnets
D 192.168.1.0 [90/2297856] via 10.1.1.1, 00:00:11, Serial2/0
D 192.168.1.8 [90/2297856] via 10.1.1.1, 00:00:11, Serial2/0
D 192.168.1.16 [90/2297856] via 10.1.1.1, 00:00:11, Serial2/0
and you get them all...
to summarize at the longest prefix, count...
0 to 16 includes 0 and that means 17, so the summary needs to be more than 16 and less than 32... 256 minus 32 = 224 or /24 + 3 or /27...
int s2/0
ip summary-add eigrp 1 192.168.1.0 255.255.255.224
r2#sh ip route eigrp
Gateway of last resort is not set
1.0.0.0/24 is subnetted, 1 subnets
D 1.1.1.0 [90/2297856] via 10.1.1.1, 00:06:45, Serial2/0
192.168.1.0/27 is subnetted, 1 subnets
D 192.168.1.0 [90/2297856] via 10.1.1.1, 00:00:16, Serial2/0
/28 doesn't get it...
int s2/0
ip summary-add eigrp 1 192.168.1.0 255.255.255.240
r2#sh ip route eigrp
Gateway of last resort is not set
1.0.0.0/24 is subnetted, 1 subnets
D 1.1.1.0 [90/2297856] via 10.1.1.1, 00:09:25, Serial2/0
192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
D 192.168.1.0/27 [90/2297856] via 10.1.1.1, 00:02:56, Serial2/0
D 192.168.1.0/28 [90/2297856] via 10.1.1.1, 00:00:42, Serial2/0
this has been a public service announcement...
Labels:
ccnp,
ccnp route,
ios cookbook,
summarization
crookbook 4...
passive interface...
with eigrp if you set an interface to passive you will lose the adjacency on that interface...
r2(config)#router eigrp 1
r2(config-router)#passive-int s2/0
r2(config-router)#
*Sep 30 09:19:48: %DUAL-5-NBRCHANGE: EIGRP-IPv4 1: Neighbor 10.1.1.1 (Serial2/0) is down: interface passive
this might be useful if you want to shut down eigrp, without shutting down the network configuration...
also, using passive-interface default will shut it down for all interfaces, and then you can selectively enable it on a per interface basis with the no passive-interface (interface) command...
offset lists can be used to modify metrics... go for it...
timers: i see no need changing the defaults... unlike ospf, mismatched timers in eigrp will not take down the adjacency, but expected delivery of hello's to the neighbor will be affected by the set time...
some things are better left alone...
it is no secret that i am not a fan of authentication, however...
r1
key chain suck-key
key 1
key-string suck-key
int s2/0
ip authentication mode eigrp 1 md5
ip authentication key-chain eigrp 1 suck-key
do it on both sides... if you must... of course it is de-testable...
with eigrp if you set an interface to passive you will lose the adjacency on that interface...
r2(config)#router eigrp 1
r2(config-router)#passive-int s2/0
r2(config-router)#
*Sep 30 09:19:48: %DUAL-5-NBRCHANGE: EIGRP-IPv4 1: Neighbor 10.1.1.1 (Serial2/0) is down: interface passive
this might be useful if you want to shut down eigrp, without shutting down the network configuration...
also, using passive-interface default will shut it down for all interfaces, and then you can selectively enable it on a per interface basis with the no passive-interface (interface) command...
offset lists can be used to modify metrics... go for it...
timers: i see no need changing the defaults... unlike ospf, mismatched timers in eigrp will not take down the adjacency, but expected delivery of hello's to the neighbor will be affected by the set time...
some things are better left alone...
it is no secret that i am not a fan of authentication, however...
r1
key chain suck-key
key 1
key-string suck-key
int s2/0
ip authentication mode eigrp 1 md5
ip authentication key-chain eigrp 1 suck-key
do it on both sides... if you must... of course it is de-testable...
crookbook part 3...
add a loopback on r2, and change the configuration to r3 into a rip network...
r2
int lo4
ip add 4.4.4.4 255.255.255.0
router eigrp 1
no netw 172.16.1.0 0.0.0.255
router rip
netw 172.16.0.0
netw 4.0.0.0
r3
no router eigrp 1
router rip
netw 172.16.0.0
netw 3.0.0.0
r2#sh ip route | ex L | inc loop
Gateway of last resort is not set
1.0.0.0/24 is subnetted, 1 subnets
D 1.1.1.0 [90/2297856] via 10.1.1.1, 01:13:03, Serial2/0
2.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 2.2.2.0/24 is directly connected, Loopback0
R 3.0.0.0/8 [120/1] via 172.16.1.3, 00:00:15, FastEthernet0/0
4.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 4.4.4.0/24 is directly connected, Loopback4
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.1.1.0/24 is directly connected, Serial2/0
172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks
C 172.16.1.0/24 is directly connected, FastEthernet0/0
redistribute rip into eigrp and eigrp into rip...
r2
router rip
redistribute eigrp 1 metric 5
router eigrp 1
redistribute rip metric 1 0 1 1 1500
r3#sh ip route | ex L | incl loop
Gateway of last resort is not set
R 1.0.0.0/8 [120/5] via 172.16.1.2, 00:00:25, FastEthernet0/0
R 2.0.0.0/8 [120/5] via 172.16.1.2, 00:00:25, FastEthernet0/0
3.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 3.3.3.0/24 is directly connected, Loopback0
R 4.0.0.0/8 [120/1] via 172.16.1.2, 00:00:25, FastEthernet0/0
R 10.0.0.0/8 [120/5] via 172.16.1.2, 00:00:25, FastEthernet0/0
172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks
C 172.16.1.0/24 is directly connected, FastEthernet0/0
note the redistributed eigrp routes are signified by R on the rip router...
while it is a different story on r1...
r1#sh ip route | exc L | inc loop
Gateway of last resort is not set
1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 1.1.1.0/24 is directly connected, Loopback0
2.0.0.0/24 is subnetted, 1 subnets
D 2.2.2.0 [90/2297856] via 10.1.1.2, 01:23:54, Serial2/0
D EX 3.0.0.0/8 [170/2560512000] via 10.1.1.2, 00:06:05, Serial2/0
4.0.0.0/24 is subnetted, 1 subnets
D EX 4.4.4.0 [170/2560512000] via 10.1.1.2, 00:06:05, Serial2/0
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.1.1.0/24 is directly connected, Serial2/0
172.16.0.0/24 is subnetted, 1 subnets
D EX 172.16.1.0 [170/2560512000] via 10.1.1.2, 00:06:05, Serial2/0
do the metrics really matter?
i'll let the crookbook satisfy that..
r2
int lo4
ip add 4.4.4.4 255.255.255.0
router eigrp 1
no netw 172.16.1.0 0.0.0.255
router rip
netw 172.16.0.0
netw 4.0.0.0
r3
no router eigrp 1
router rip
netw 172.16.0.0
netw 3.0.0.0
r2#sh ip route | ex L | inc loop
Gateway of last resort is not set
1.0.0.0/24 is subnetted, 1 subnets
D 1.1.1.0 [90/2297856] via 10.1.1.1, 01:13:03, Serial2/0
2.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 2.2.2.0/24 is directly connected, Loopback0
R 3.0.0.0/8 [120/1] via 172.16.1.3, 00:00:15, FastEthernet0/0
4.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 4.4.4.0/24 is directly connected, Loopback4
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.1.1.0/24 is directly connected, Serial2/0
172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks
C 172.16.1.0/24 is directly connected, FastEthernet0/0
redistribute rip into eigrp and eigrp into rip...
r2
router rip
redistribute eigrp 1 metric 5
router eigrp 1
redistribute rip metric 1 0 1 1 1500
r3#sh ip route | ex L | incl loop
Gateway of last resort is not set
R 1.0.0.0/8 [120/5] via 172.16.1.2, 00:00:25, FastEthernet0/0
R 2.0.0.0/8 [120/5] via 172.16.1.2, 00:00:25, FastEthernet0/0
3.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 3.3.3.0/24 is directly connected, Loopback0
R 4.0.0.0/8 [120/1] via 172.16.1.2, 00:00:25, FastEthernet0/0
R 10.0.0.0/8 [120/5] via 172.16.1.2, 00:00:25, FastEthernet0/0
172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks
C 172.16.1.0/24 is directly connected, FastEthernet0/0
note the redistributed eigrp routes are signified by R on the rip router...
while it is a different story on r1...
r1#sh ip route | exc L | inc loop
Gateway of last resort is not set
1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 1.1.1.0/24 is directly connected, Loopback0
2.0.0.0/24 is subnetted, 1 subnets
D 2.2.2.0 [90/2297856] via 10.1.1.2, 01:23:54, Serial2/0
D EX 3.0.0.0/8 [170/2560512000] via 10.1.1.2, 00:06:05, Serial2/0
4.0.0.0/24 is subnetted, 1 subnets
D EX 4.4.4.0 [170/2560512000] via 10.1.1.2, 00:06:05, Serial2/0
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.1.1.0/24 is directly connected, Serial2/0
172.16.0.0/24 is subnetted, 1 subnets
D EX 172.16.1.0 [170/2560512000] via 10.1.1.2, 00:06:05, Serial2/0
do the metrics really matter?
i'll let the crookbook satisfy that..
EIGRP metric weight K1=1, K2=0, K3=1, K4=0, K5=0
EIGRP uses these K values
as coefficients in an involved equation that specifies how to combine
all of these different individual metrics into a single numerical value,
the composite EIGRP metric. You will notice that only K1 and K3 are
nonzero. The result is that, by default, EIGRP uses only bandwidth and
delay when computing its metric. So, in fact, you can generally fill in
just about anything for the other parameters in the default-metric
command, and it won't make any difference.
We note as an aside that while you can change these different K values by using the metric weights command,
we strongly advise against changing the defaults. These values were of
some use in IGRP, and when Cisco introduced EIGRP, with its superior
DUAL algorithm, they carried the parameters forward. However, it was
discovered that in practice it was relatively easy to make routing
extremely unstable by changing them. And it's almost impossible to make
things any better by changing these weight values in EIGRP.
so there...
Labels:
ccnp,
ccnp route,
eigrp,
ios cookbook
eigrp crookbook eigrp 02...
add another router...
add to eigrp 1
r2
router eigrp 1
netw 172.16.1.0 0.0.0.255
r3
router eigrp 1
netw 172.16.1.0 0.0.0.255
netw 3.0.0.0
r3(config-router)#
*Sep 30 07:23:29: %DUAL-5-NBRCHANGE: EIGRP-IPv4 1: Neighbor 172.16.1.2 (FastEthernet0/0) is up: new adjacency
r1#sh ip route eigrp
Gateway of last resort is not set
2.0.0.0/24 is subnetted, 1 subnets
D 2.2.2.0 [90/2297856] via 10.1.1.2, 00:24:40, Serial2/0
3.0.0.0/24 is subnetted, 1 subnets
D 3.3.3.0 [90/2300416] via 10.1.1.2, 00:01:03, Serial2/0
172.16.0.0/24 is subnetted, 1 subnets
D 172.16.1.0 [90/2172416] via 10.1.1.2, 00:01:45, Serial2/0
filter r3's loopback...
r2(config)#access-list 1 deny 3.3.3.0
r2(config)#access-list 1 permit any
r2(config)#router eigrp 1
r2(config-router)#distribute-list 1 in f0/0
this filters the loopback incoming to r2, and permits the rest...
r1#sh ip route eigrp
Gateway of last resort is not set
2.0.0.0/24 is subnetted, 1 subnets
D 2.2.2.0 [90/2297856] via 10.1.1.2, 00:27:55, Serial2/0
172.16.0.0/24 is subnetted, 1 subnets
D 172.16.1.0 [90/2172416] via 10.1.1.2, 00:05:00, Serial2/0
r3#sh ip route eigrp
Gateway of last resort is not set
1.0.0.0/24 is subnetted, 1 subnets
D 1.1.1.0 [90/2300416] via 172.16.1.2, 00:06:58, FastEthernet0/0
2.0.0.0/24 is subnetted, 1 subnets
D 2.2.2.0 [90/156160] via 172.16.1.2, 00:06:58, FastEthernet0/0
10.0.0.0/24 is subnetted, 1 subnets
D 10.1.1.0 [90/2172416] via 172.16.1.2, 00:06:58, FastEthernet0/0
you can do the same outgoing from r2 to r3... we'll drop the advertisement to r3 of r1's loopback...
r2(config)#access-list 2 deny 1.1.1.0
r2(config)#access-list 2 permit any
r2(config)#router eigrp 1
r2(config-router)#distribute-list 2 out f0/0
r3#sh ip route eigrp
Gateway of last resort is not set
2.0.0.0/24 is subnetted, 1 subnets
D 2.2.2.0 [90/156160] via 172.16.1.2, 00:11:05, FastEthernet0/0
10.0.0.0/24 is subnetted, 1 subnets
D 10.1.1.0 [90/2172416] via 172.16.1.2, 00:11:05, FastEthernet0/0
r2#sh ip proto
*** IP Routing is NSF aware ***
Routing Protocol is "eigrp 1"
Outgoing update filter list for all interfaces is not set
FastEthernet0/0 filtered by 2 (per-user), default is not set
Incoming update filter list for all interfaces is not set
FastEthernet0/0 filtered by 1 (per-user), default is not set
Default networks flagged in outgoing updates
Default networks accepted from incoming updates
EIGRP-IPv4 Protocol for AS(1)
Metric weight K1=1, K2=0, K3=1, K4=0, K5=0
NSF-aware route hold timer is 240
Router-ID: 2.2.2.2
Topology : 0 (base)
Active Timer: 3 min
Distance: internal 90 external 170
Maximum path: 4
Maximum hopcount 100
Maximum metric variance 1
Automatic Summarization: disabled
Maximum path: 4
Routing for Networks:
2.0.0.0
10.0.0.0
172.16.1.0/24
Routing Information Sources:
Gateway Distance Last Update
10.1.1.1 90 00:09:00
172.16.1.3 90 00:03:39
Distance: internal 90 external 170
prefix lists are mostly used to filter eigrp with bgp and the converse... we'll get to that later...
add to eigrp 1
r2
router eigrp 1
netw 172.16.1.0 0.0.0.255
r3
router eigrp 1
netw 172.16.1.0 0.0.0.255
netw 3.0.0.0
r3(config-router)#
*Sep 30 07:23:29: %DUAL-5-NBRCHANGE: EIGRP-IPv4 1: Neighbor 172.16.1.2 (FastEthernet0/0) is up: new adjacency
r1#sh ip route eigrp
Gateway of last resort is not set
2.0.0.0/24 is subnetted, 1 subnets
D 2.2.2.0 [90/2297856] via 10.1.1.2, 00:24:40, Serial2/0
3.0.0.0/24 is subnetted, 1 subnets
D 3.3.3.0 [90/2300416] via 10.1.1.2, 00:01:03, Serial2/0
172.16.0.0/24 is subnetted, 1 subnets
D 172.16.1.0 [90/2172416] via 10.1.1.2, 00:01:45, Serial2/0
filter r3's loopback...
r2(config)#access-list 1 deny 3.3.3.0
r2(config)#access-list 1 permit any
r2(config)#router eigrp 1
r2(config-router)#distribute-list 1 in f0/0
this filters the loopback incoming to r2, and permits the rest...
r1#sh ip route eigrp
Gateway of last resort is not set
2.0.0.0/24 is subnetted, 1 subnets
D 2.2.2.0 [90/2297856] via 10.1.1.2, 00:27:55, Serial2/0
172.16.0.0/24 is subnetted, 1 subnets
D 172.16.1.0 [90/2172416] via 10.1.1.2, 00:05:00, Serial2/0
r3#sh ip route eigrp
Gateway of last resort is not set
1.0.0.0/24 is subnetted, 1 subnets
D 1.1.1.0 [90/2300416] via 172.16.1.2, 00:06:58, FastEthernet0/0
2.0.0.0/24 is subnetted, 1 subnets
D 2.2.2.0 [90/156160] via 172.16.1.2, 00:06:58, FastEthernet0/0
10.0.0.0/24 is subnetted, 1 subnets
D 10.1.1.0 [90/2172416] via 172.16.1.2, 00:06:58, FastEthernet0/0
you can do the same outgoing from r2 to r3... we'll drop the advertisement to r3 of r1's loopback...
r2(config)#access-list 2 deny 1.1.1.0
r2(config)#access-list 2 permit any
r2(config)#router eigrp 1
r2(config-router)#distribute-list 2 out f0/0
r3#sh ip route eigrp
Gateway of last resort is not set
2.0.0.0/24 is subnetted, 1 subnets
D 2.2.2.0 [90/156160] via 172.16.1.2, 00:11:05, FastEthernet0/0
10.0.0.0/24 is subnetted, 1 subnets
D 10.1.1.0 [90/2172416] via 172.16.1.2, 00:11:05, FastEthernet0/0
r2#sh ip proto
*** IP Routing is NSF aware ***
Routing Protocol is "eigrp 1"
Outgoing update filter list for all interfaces is not set
FastEthernet0/0 filtered by 2 (per-user), default is not set
Incoming update filter list for all interfaces is not set
FastEthernet0/0 filtered by 1 (per-user), default is not set
Default networks flagged in outgoing updates
Default networks accepted from incoming updates
EIGRP-IPv4 Protocol for AS(1)
Metric weight K1=1, K2=0, K3=1, K4=0, K5=0
NSF-aware route hold timer is 240
Router-ID: 2.2.2.2
Topology : 0 (base)
Active Timer: 3 min
Distance: internal 90 external 170
Maximum path: 4
Maximum hopcount 100
Maximum metric variance 1
Automatic Summarization: disabled
Maximum path: 4
Routing for Networks:
2.0.0.0
10.0.0.0
172.16.1.0/24
Routing Information Sources:
Gateway Distance Last Update
10.1.1.1 90 00:09:00
172.16.1.3 90 00:03:39
Distance: internal 90 external 170
prefix lists are mostly used to filter eigrp with bgp and the converse... we'll get to that later...
Labels:
ccnp,
ccnp route,
eigrp,
ios cookbook
ios crookbook...
over the years i've spent a wad of cash on network books and training materials. most i still have, others have gotten away... in the last few months cisco has been offering ebooks at cisco press for a very reduced rate... i have bought quite a few, and while i used to prefer hard copy, i have come to appreciate the portability of pdf, especially the ease with which i can scrape important pieces into anki for long term study...
i bumped into ios cookbook a while back, and with your friendly neighborhood google, you can find what appears to be a bootleg online... i think it's in china or some shit, and i don't really care... if it's online, feel free to use it i say, and let the publishers go after the crooks... that's not my concern, and i don't make any money from any of this anyway...
there are many sections in the so called cookbooks, and they cut directly to the chase for configurations purposes... this seems useful... i decided to go through it starting with the routing protocol sections as a structured practice...
i'll start with eigrp... this is meant for those who have already been through the theory of the major concerns presented in numerous ways by many more adept than myself... as usual, i'll start at the beginning and follow through...
simple eigrp...
r1
int lo0
ip add 1.1.1.1 255.255.255.0
int s2/0
ip add 10.1.1.1 255.255.255.0
clock rate 128000
no shut
router eigrp 1
netw 10.0.0.0
netw 1.0.0.0
no auto-summ
r2
int lo0
ip add 2.2.2.2 255.255.255.0
int s2/0
ip add 10.1.1.2 255.255.255.0
clock rate 128000
no shut
router eigrp 1
netw 2.0.0.0
no auto-summ
the code i have for the routers in gns3 uses no auto-summary by default... i will not be typing that again...
the router-id is selected using the same precedence as ospf... or you could manually configure it as well... wildcards can also be used in the network statements...
r2#sh ip eigrp topo
EIGRP-IPv4 Topology Table for AS(1)/ID(2.2.2.2)
Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,
r - reply Status, s - sia Status
P 2.2.2.0/24, 1 successors, FD is 128256
via Connected, Loopback0
P 1.1.1.0/24, 1 successors, FD is 2297856
via 10.1.1.1 (2297856/128256), Serial2/0
P 10.1.1.0/24, 1 successors, FD is 2169856
via Connected, Serial2/0
r1#sh ip proto
*** IP Routing is NSF aware ***
Routing Protocol is "eigrp 1"
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Default networks flagged in outgoing updates
Default networks accepted from incoming updates
EIGRP-IPv4 Protocol for AS(1)
Metric weight K1=1, K2=0, K3=1, K4=0, K5=0
NSF-aware route hold timer is 240
Router-ID: 1.1.1.1
Topology : 0 (base)
Active Timer: 3 min
Distance: internal 90 external 170
Maximum path: 4
Maximum hopcount 100
Maximum metric variance 1
Automatic Summarization: disabled
Maximum path: 4
Routing for Networks:
1.0.0.0
10.0.0.0
Routing Information Sources:
Gateway Distance Last Update
10.1.1.2 90 00:03:24
Distance: internal 90 external 170
note default k values 1 0 1 0 0...
r2#sh ip route eigrp
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
+ - replicated route, % - next hop override
Gateway of last resort is not set
1.0.0.0/24 is subnetted, 1 subnets
D 1.1.1.0 [90/2297856] via 10.1.1.1, 00:05:47, Serial2/0
r1#sh ip eigrp neigh
EIGRP-IPv4 Neighbors for AS(1)
H Address Interface Hold Uptime SRTT RTO Q Seq
(sec) (ms) Cnt Num
0 10.1.1.2 Se2/0 11 00:19:23 13 100 0 7
next...
i bumped into ios cookbook a while back, and with your friendly neighborhood google, you can find what appears to be a bootleg online... i think it's in china or some shit, and i don't really care... if it's online, feel free to use it i say, and let the publishers go after the crooks... that's not my concern, and i don't make any money from any of this anyway...
there are many sections in the so called cookbooks, and they cut directly to the chase for configurations purposes... this seems useful... i decided to go through it starting with the routing protocol sections as a structured practice...
i'll start with eigrp... this is meant for those who have already been through the theory of the major concerns presented in numerous ways by many more adept than myself... as usual, i'll start at the beginning and follow through...
simple eigrp...
r1
int lo0
ip add 1.1.1.1 255.255.255.0
int s2/0
ip add 10.1.1.1 255.255.255.0
clock rate 128000
no shut
router eigrp 1
netw 10.0.0.0
netw 1.0.0.0
no auto-summ
r2
int lo0
ip add 2.2.2.2 255.255.255.0
int s2/0
ip add 10.1.1.2 255.255.255.0
clock rate 128000
no shut
router eigrp 1
netw 2.0.0.0
no auto-summ
the code i have for the routers in gns3 uses no auto-summary by default... i will not be typing that again...
the router-id is selected using the same precedence as ospf... or you could manually configure it as well... wildcards can also be used in the network statements...
r2#sh ip eigrp topo
EIGRP-IPv4 Topology Table for AS(1)/ID(2.2.2.2)
Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,
r - reply Status, s - sia Status
P 2.2.2.0/24, 1 successors, FD is 128256
via Connected, Loopback0
P 1.1.1.0/24, 1 successors, FD is 2297856
via 10.1.1.1 (2297856/128256), Serial2/0
P 10.1.1.0/24, 1 successors, FD is 2169856
via Connected, Serial2/0
r1#sh ip proto
*** IP Routing is NSF aware ***
Routing Protocol is "eigrp 1"
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Default networks flagged in outgoing updates
Default networks accepted from incoming updates
EIGRP-IPv4 Protocol for AS(1)
Metric weight K1=1, K2=0, K3=1, K4=0, K5=0
NSF-aware route hold timer is 240
Router-ID: 1.1.1.1
Topology : 0 (base)
Active Timer: 3 min
Distance: internal 90 external 170
Maximum path: 4
Maximum hopcount 100
Maximum metric variance 1
Automatic Summarization: disabled
Maximum path: 4
Routing for Networks:
1.0.0.0
10.0.0.0
Routing Information Sources:
Gateway Distance Last Update
10.1.1.2 90 00:03:24
Distance: internal 90 external 170
note default k values 1 0 1 0 0...
r2#sh ip route eigrp
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
+ - replicated route, % - next hop override
Gateway of last resort is not set
1.0.0.0/24 is subnetted, 1 subnets
D 1.1.1.0 [90/2297856] via 10.1.1.1, 00:05:47, Serial2/0
r1#sh ip eigrp neigh
EIGRP-IPv4 Neighbors for AS(1)
H Address Interface Hold Uptime SRTT RTO Q Seq
(sec) (ms) Cnt Num
0 10.1.1.2 Se2/0 11 00:19:23 13 100 0 7
next...
Labels:
ccnp,
ccnp route,
eigrp,
ios cookbook
Saturday, September 29, 2012
quote of the day, doyle, dv versus path vector...
from ospf and is-is, jeff doyle
All of the vector protocols with the exception of BGP are commonly called distance vector protocols. BGP is called a path vector protocol, because it tracks not paths through routers but paths through autonomous systems. Is there really any difference between distance vector and path vector? At least one acquaintance likes to differentiate them by saying that a distance vector route is a sum of quantities, whereas path vector is a sequence of quantities. My own opinion is that it is all semantics. Although BGP has a different application than an IGP, and does indeed describe its routes as a series of AS numbers, it is still a distance vector protocol.
lsa flooding clarification...
the term flooding has a connotation that is misleading concerning lsa's...
according to doyle:
this is correct, but vague...
lsa's are contained in update packets that are exchanged between routers that share the same data link, but the update packets themselves never leave the link... this is the finer point..
doyle does better in his book, OSPF and IS-IS: Choosing an IGP for Large-Scale Networks:
OSPF uses an Update packet to send LSAs from one router to another during the flooding process. Whereas LSAs are flooded throughout an area, Update packets are exchanged only between directly connected routers. That is, their scope is the local link. If an LSA received in an Update packet must be forwarded to another router, it is put into a new Update packet for the next hop. This is in keeping with the fact that none of the five OSPF message types are forwarded beyond the local link.
according to doyle:
A router originates a link-state advertisement to describe one or more destinations. An OSPF Update packet transports LSAs from one neighbor to another. Although LSAs are flooded throughout an area or OSPF domain, Update packets never leave a data link.
this is correct, but vague...
lsa's are contained in update packets that are exchanged between routers that share the same data link, but the update packets themselves never leave the link... this is the finer point..
doyle does better in his book, OSPF and IS-IS: Choosing an IGP for Large-Scale Networks:
OSPF uses an Update packet to send LSAs from one router to another during the flooding process. Whereas LSAs are flooded throughout an area, Update packets are exchanged only between directly connected routers. That is, their scope is the local link. If an LSA received in an Update packet must be forwarded to another router, it is put into a new Update packet for the next hop. This is in keeping with the fact that none of the five OSPF message types are forwarded beyond the local link.
Friday, September 28, 2012
n(n-1)/2...
it is real...
because i'm insane i had to count them...
start from the outside with 1 and count clockwise towards the inside... it's actually not easy...
or count the routers as in the formula... n = router
6(6-1)/2
6(5)/2
30/2
15
because i'm insane i had to count them...
start from the outside with 1 and count clockwise towards the inside... it's actually not easy...
or count the routers as in the formula... n = router
6(6-1)/2
6(5)/2
30/2
15
Wednesday, September 26, 2012
ipv6 tunnel...
tunneling ipv6 through ipv4...
establish connectivity with an ospf network, as below...
variations on a theme...
r1#sh run int tun 0
Building configuration...
Current configuration : 136 bytes
!
interface Tunnel0
no ip address
ipv6 address 2001::1/64
ipv6 ospf 1 area 0
tunnel source 1.1.1.1
tunnel destination 2.2.2.2
r2# sh run int tun 0
Building configuration...
Current configuration : 136 bytes
!
interface Tunnel0
no ip address
ipv6 address 2001::2/64
ipv6 ospf 1 area 0
tunnel source 2.2.2.2
tunnel destination 1.1.1.1
it's really that easy after you've built ospf...
establish connectivity with an ospf network, as below...
variations on a theme...
r1#sh run int tun 0
Building configuration...
Current configuration : 136 bytes
!
interface Tunnel0
no ip address
ipv6 address 2001::1/64
ipv6 ospf 1 area 0
tunnel source 1.1.1.1
tunnel destination 2.2.2.2
r2# sh run int tun 0
Building configuration...
Current configuration : 136 bytes
!
interface Tunnel0
no ip address
ipv6 address 2001::2/64
ipv6 ospf 1 area 0
tunnel source 2.2.2.2
tunnel destination 1.1.1.1
it's really that easy after you've built ospf...
r1#sh ipv6 int tun 0
Tunnel0 is up, line protocol is up
IPv6 is enabled, link-local address is FE80::C80A:61FF:FEA8:8
No Virtual link-local address(es):
Global unicast address(es):
2001::1, subnet is 2001::/64
Joined group address(es):
FF02::1
FF02::2
FF02::5
FF02::1:FF00:1
FF02::1:FFA8:8
MTU is 1476 bytes
ICMP error messages limited to one every 100 milliseconds
ICMP redirects are enabled
ICMP unreachables are sent
ND DAD is enabled, number of DAD attempts: 1
ND reachable time is 30000 milliseconds (using 30000)
ND RAs are suppressed (periodic)
Hosts use stateless autoconfig for addresses.
Tunnel0 is up, line protocol is up
IPv6 is enabled, link-local address is FE80::C80A:61FF:FEA8:8
No Virtual link-local address(es):
Global unicast address(es):
2001::1, subnet is 2001::/64
Joined group address(es):
FF02::1
FF02::2
FF02::5
FF02::1:FF00:1
FF02::1:FFA8:8
MTU is 1476 bytes
ICMP error messages limited to one every 100 milliseconds
ICMP redirects are enabled
ICMP unreachables are sent
ND DAD is enabled, number of DAD attempts: 1
ND reachable time is 30000 milliseconds (using 30000)
ND RAs are suppressed (periodic)
Hosts use stateless autoconfig for addresses.
r2#sh inter tun 0
Tunnel0 is up, line protocol is up
Hardware is Tunnel
MTU 17916 bytes, BW 100 Kbit/sec, DLY 50000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation TUNNEL, loopback not set
Keepalive not set
Tunnel source 2.2.2.2, destination 1.1.1.1
Tunnel protocol/transport GRE/IP
Key disabled, sequencing disabled
Checksumming of packets disabled
Tunnel TTL 255, Fast tunneling enabled
Tunnel transport MTU 1476 bytes
Tunnel transmit bandwidth 8000 (kbps)
Tunnel receive bandwidth 8000 (kbps)
Last input 00:00:04, output 00:00:06, output hang never
Last clearing of "show interface" counters 00:14:14
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/0 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
98 packets input, 10264 bytes, 0 no buffer
Received 0 broadcasts (0 IP multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
109 packets output, 11472 bytes, 0 underruns
0 output errors, 0 collisions, 0 interface resets
0 unknown protocol drops
0 output buffer failures, 0 output buffers swapped out
Tunnel0 is up, line protocol is up
Hardware is Tunnel
MTU 17916 bytes, BW 100 Kbit/sec, DLY 50000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation TUNNEL, loopback not set
Keepalive not set
Tunnel source 2.2.2.2, destination 1.1.1.1
Tunnel protocol/transport GRE/IP
Key disabled, sequencing disabled
Checksumming of packets disabled
Tunnel TTL 255, Fast tunneling enabled
Tunnel transport MTU 1476 bytes
Tunnel transmit bandwidth 8000 (kbps)
Tunnel receive bandwidth 8000 (kbps)
Last input 00:00:04, output 00:00:06, output hang never
Last clearing of "show interface" counters 00:14:14
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/0 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
98 packets input, 10264 bytes, 0 no buffer
Received 0 broadcasts (0 IP multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
109 packets output, 11472 bytes, 0 underruns
0 output errors, 0 collisions, 0 interface resets
0 unknown protocol drops
0 output buffer failures, 0 output buffers swapped out
Monday, September 24, 2012
ipv6 lovin spoonful...
slam some eigrp up in there...
r3
ipv6 router eigrp 1
router-id 3.3.3.3
int lo0
ipv6 route eigrp 1
int f0/1
ipv6 eigrp 1
r4
ipv6 unicast-rout
ipv6 cef
ipv6 router eigrp 1
router-id 4.4.4.4
int lo0
ipv6 eigrp 1
int f0/1
ipv6 eigrp 1
r3#sh ipv6 route eigrp
IPv6 Routing Table - default - 11 entries
Codes: C - Connected, L - Local, S - Static, U - Per-user Static route
B - BGP, R - RIP, H - NHRP, I1 - ISIS L1
I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary, D - EIGRP
EX - EIGRP external, ND - ND Default, NDp - ND Prefix, DCE - Destination
NDr - Redirect, O - OSPF Intra, OI - OSPF Inter, OE1 - OSPF ext 1
OE2 - OSPF ext 2, ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2, l - LISP
D 2004:4444::/64 [90/156160]
via FE80::C809:BFF:FEF0:6, FastEthernet0/1
IPv6 Routing Table - default - 11 entries
Codes: C - Connected, L - Local, S - Static, U - Per-user Static route
B - BGP, R - RIP, H - NHRP, I1 - ISIS L1
I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary, D - EIGRP
EX - EIGRP external, ND - ND Default, NDp - ND Prefix, DCE - Destination
NDr - Redirect, O - OSPF Intra, OI - OSPF Inter, OE1 - OSPF ext 1
OE2 - OSPF ext 2, ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2, l - LISP
D 2004:4444::/64 [90/156160]
via FE80::C809:BFF:FEF0:6, FastEthernet0/1
r4#sh ipv6 route eigrp
IPv6 Routing Table - default - 6 entries
Codes: C - Connected, L - Local, S - Static, U - Per-user Static route
B - BGP, R - RIP, H - NHRP, I1 - ISIS L1
I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary, D - EIGRP
EX - EIGRP external, ND - ND Default, NDp - ND Prefix, DCE - Destination
NDr - Redirect, O - OSPF Intra, OI - OSPF Inter, OE1 - OSPF ext 1
OE2 - OSPF ext 2, ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2, l - LISP
D 2003:3333::/64 [90/156160]
via FE80::C808:BFF:FEF0:6, FastEthernet0/1
IPv6 Routing Table - default - 6 entries
Codes: C - Connected, L - Local, S - Static, U - Per-user Static route
B - BGP, R - RIP, H - NHRP, I1 - ISIS L1
I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary, D - EIGRP
EX - EIGRP external, ND - ND Default, NDp - ND Prefix, DCE - Destination
NDr - Redirect, O - OSPF Intra, OI - OSPF Inter, OE1 - OSPF ext 1
OE2 - OSPF ext 2, ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2, l - LISP
D 2003:3333::/64 [90/156160]
via FE80::C808:BFF:FEF0:6, FastEthernet0/1
and do the redist dance
r3
ipv6 router eigrp 1
redist ospf 1 metric 5 1 1 1 1500 include-conn
ipv6 router ospf 1
redist eigrp 1 include-conn
r1#sh ipv6 route | ex L
IPv6 Routing Table - default - 8 entries
EX - EIGRP external, ND - ND Default, NDp - ND Prefix, DCE - Destination
NDr - Redirect, O - OSPF Intra, OI - OSPF Inter, OE1 - OSPF ext 1
C 2001::/64 [0/0]
via Serial1/0, directly connected
via Serial1/0, receive
C 2001:1111::/64 [0/0]
R 2003::/64 [120/6]
via FE80::C806:BFF:FEF0:8, Serial1/0
R 2003:3333::1/128 [120/6]
via FE80::C806:BFF:FEF0:8, Serial1/0
R 2004:4444::/64 [120/6]
via FE80::C806:BFF:FEF0:8, Serial1/0
via Null0, receive
r2#sh ipv6 route | ex L
IPv6 Routing Table - default - 11 entries
EX - EIGRP external, ND - ND Default, NDp - ND Prefix, DCE - Destination
NDr - Redirect, O - OSPF Intra, OI - OSPF Inter, OE1 - OSPF ext 1
C 2001::/64 [0/0]
via Serial1/0, directly connected
via Serial1/0, receive
R 2001:1111::/64 [120/2]
via FE80::C805:BFF:FEF0:8, Serial1/0
C 2002::/64 [0/0]
via FastEthernet0/0, directly connected
via FastEthernet0/0, receive
C 2002:2222::/64 [0/0]
OE2 2003::/64 [110/20]
via FE80::C808:BFF:FEF0:8, FastEthernet0/0
O 2003:3333::1/128 [110/1]
via FE80::C808:BFF:FEF0:8, FastEthernet0/0
OE2 2004:4444::/64 [110/20]
via FE80::C808:BFF:FEF0:8, FastEthernet0/0
via Null0, receive
r3#sh ipv6 route | ex L
IPv6 Routing Table - default - 11 entries
EX - EIGRP external, ND - ND Default, NDp - ND Prefix, DCE - Destination
NDr - Redirect, O - OSPF Intra, OI - OSPF Inter, OE1 - OSPF ext 1
OE2 2001::/64 [110/20]
via FE80::C806:BFF:FEF0:8, FastEthernet0/0
OE2 2001:1111::/64 [110/20]
via FE80::C806:BFF:FEF0:8, FastEthernet0/0
C 2002::/64 [0/0]
via FastEthernet0/0, directly connected
via FastEthernet0/0, receive
O 2002:2222::1/128 [110/1]
via FE80::C806:BFF:FEF0:8, FastEthernet0/0
C 2003::/64 [0/0]
via FastEthernet0/1, directly connected
via FastEthernet0/1, receive
C 2003:3333::/64 [0/0]
D 2004:4444::/64 [90/156160]
via FE80::C809:BFF:FEF0:6, FastEthernet0/1
via Null0, receive
r4#sh ipv6 route | ex L
IPv6 Routing Table - default - 10 entries
EX - EIGRP external, ND - ND Default, NDp - ND Prefix, DCE - Destination
NDr - Redirect, O - OSPF Intra, OI - OSPF Inter, OE1 - OSPF ext 1
EX 2001::/64 [170/512002816]
via FE80::C808:BFF:FEF0:6, FastEthernet0/1
EX 2001:1111::/64 [170/512002816]
via FE80::C808:BFF:FEF0:6, FastEthernet0/1
EX 2002::/64 [170/512002816]
via FE80::C808:BFF:FEF0:6, FastEthernet0/1
EX 2002:2222::1/128 [170/512002816]
via FE80::C808:BFF:FEF0:6, FastEthernet0/1
C 2003::/64 [0/0]
via FastEthernet0/1, directly connected
via FastEthernet0/1, receive
D 2003:3333::/64 [90/156160]
via FE80::C808:BFF:FEF0:6, FastEthernet0/1
C 2004:4444::/64 [0/0]
via Null0, receive
r1#ping ipv6 2004:4444::1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2004:4444::1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/11/24 ms
r1#
that deserves this...
ipv6 love cont...
you know what's coming...
configure ospf area 0 between r2 and r3...
r2
ipv6 router ospf 1
router-id 2.2.2.2
int lo0
ipv6 ospf 1 area 0
int f0/0
ipv6 ospf 1 area 0
r3
ipv6 router ospf 1
router-id 3.3.3.3
int lo0
ipv6 ospf 1 area 0
int f0/0
ipv6 ospf 1 area 0
that was easy...
r2#sh ipv6 ospf neigh
OSPFv3 Router with ID (2.2.2.2) (Process ID 1)
Neighbor ID Pri State Dead Time Interface ID Interface
3.3.3.3 1 FULL/DR 00:00:37 2 FastEthernet0/0
r3#sh ipv6 ospf neigh
OSPFv3 Router with ID (3.3.3.3) (Process ID 1)
Neighbor ID Pri State Dead Time Interface ID Interface
2.2.2.2 1 FULL/BDR 00:00:32 2 FastEthernet0/0
add ripNg to r1
ipv6 router rip ripper
int lo0
ipv6 rip ripper enable
int s1/0
ipv6 rip ripper enable
and add ripNg to r2
ipv6 router rip ripper
int s1/0
ipv6 rip ripper enable
r2#sh ipv6 route | excl L
IPv6 Routing Table - default - 9 entries
EX - EIGRP external, ND - ND Default, NDp - ND Prefix, DCE - Destination
NDr - Redirect, O - OSPF Intra, OI - OSPF Inter, OE1 - OSPF ext 1
C 2001::/64 [0/0]
via Serial1/0, directly connected
via Serial1/0, receive
R 2001:1111::/64 [120/2]
via FE80::C805:BFF:FEF0:8, Serial1/0
C 2002::/64 [0/0]
via FastEthernet0/0, directly connected
via FastEthernet0/0, receive
C 2002:2222::/64 [0/0]
O 2003:3333::1/128 [110/1]
via FE80::C808:BFF:FEF0:8, FastEthernet0/0
via Null0, receive
r1#sh ipv6 route | excl L
IPv6 Routing Table - default - 5 entries
EX - EIGRP external, ND - ND Default, NDp - ND Prefix, DCE - Destination
NDr - Redirect, O - OSPF Intra, OI - OSPF Inter, OE1 - OSPF ext 1
C 2001::/64 [0/0]
via Serial1/0, directly connected
via Serial1/0, receive
C 2001:1111::/64 [0/0]
via Null0, receive
go ahead and redistribute rip into ospf and ospf into rip...
r2
ipv6 router ospf 1
redistrib rip ripper include-conn
ipv6 router rip ripper
redistrib ospf 1 metric 5
r1#sh ipv6 route | excl L
IPv6 Routing Table - default - 6 entries
EX - EIGRP external, ND - ND Default, NDp - ND Prefix, DCE - Destination
NDr - Redirect, O - OSPF Intra, OI - OSPF Inter, OE1 - OSPF ext 1
C 2001::/64 [0/0]
via Serial1/0, directly connected
via Serial1/0, receive
C 2001:1111::/64 [0/0]
R 2003:3333::1/128 [120/6]
via FE80::C806:BFF:FEF0:8, Serial1/0
via Null0, receive
r3#sh ipv6 route | excl L
IPv6 Routing Table - default - 10 entries
EX - EIGRP external, ND - ND Default, NDp - ND Prefix, DCE - Destination
NDr - Redirect, O - OSPF Intra, OI - OSPF Inter, OE1 - OSPF ext 1
OE2 2001::/64 [110/20]
via FE80::C806:BFF:FEF0:8, FastEthernet0/0
OE2 2001:1111::/64 [110/20]
via FE80::C806:BFF:FEF0:8, FastEthernet0/0
C 2002::/64 [0/0]
via FastEthernet0/0, directly connected
via FastEthernet0/0, receive
O 2002:2222::1/128 [110/1]
via FE80::C806:BFF:FEF0:8, FastEthernet0/0
C 2003::/64 [0/0]
via FastEthernet0/1, directly connected
via FastEthernet0/1, receive
C 2003:3333::/64 [0/0]
via Null0, receive
having fun yet?
configure ospf area 0 between r2 and r3...
r2
ipv6 router ospf 1
router-id 2.2.2.2
int lo0
ipv6 ospf 1 area 0
int f0/0
ipv6 ospf 1 area 0
r3
ipv6 router ospf 1
router-id 3.3.3.3
int lo0
ipv6 ospf 1 area 0
int f0/0
ipv6 ospf 1 area 0
that was easy...
r2#sh ipv6 ospf neigh
OSPFv3 Router with ID (2.2.2.2) (Process ID 1)
Neighbor ID Pri State Dead Time Interface ID Interface
3.3.3.3 1 FULL/DR 00:00:37 2 FastEthernet0/0
r3#sh ipv6 ospf neigh
OSPFv3 Router with ID (3.3.3.3) (Process ID 1)
Neighbor ID Pri State Dead Time Interface ID Interface
2.2.2.2 1 FULL/BDR 00:00:32 2 FastEthernet0/0
add ripNg to r1
ipv6 router rip ripper
int lo0
ipv6 rip ripper enable
int s1/0
ipv6 rip ripper enable
and add ripNg to r2
ipv6 router rip ripper
int s1/0
ipv6 rip ripper enable
r2#sh ipv6 route | excl L
IPv6 Routing Table - default - 9 entries
EX - EIGRP external, ND - ND Default, NDp - ND Prefix, DCE - Destination
NDr - Redirect, O - OSPF Intra, OI - OSPF Inter, OE1 - OSPF ext 1
C 2001::/64 [0/0]
via Serial1/0, directly connected
via Serial1/0, receive
R 2001:1111::/64 [120/2]
via FE80::C805:BFF:FEF0:8, Serial1/0
C 2002::/64 [0/0]
via FastEthernet0/0, directly connected
via FastEthernet0/0, receive
C 2002:2222::/64 [0/0]
O 2003:3333::1/128 [110/1]
via FE80::C808:BFF:FEF0:8, FastEthernet0/0
via Null0, receive
r1#sh ipv6 route | excl L
IPv6 Routing Table - default - 5 entries
EX - EIGRP external, ND - ND Default, NDp - ND Prefix, DCE - Destination
NDr - Redirect, O - OSPF Intra, OI - OSPF Inter, OE1 - OSPF ext 1
C 2001::/64 [0/0]
via Serial1/0, directly connected
via Serial1/0, receive
C 2001:1111::/64 [0/0]
via Null0, receive
go ahead and redistribute rip into ospf and ospf into rip...
r2
ipv6 router ospf 1
redistrib rip ripper include-conn
ipv6 router rip ripper
redistrib ospf 1 metric 5
r1#sh ipv6 route | excl L
IPv6 Routing Table - default - 6 entries
EX - EIGRP external, ND - ND Default, NDp - ND Prefix, DCE - Destination
NDr - Redirect, O - OSPF Intra, OI - OSPF Inter, OE1 - OSPF ext 1
C 2001::/64 [0/0]
via Serial1/0, directly connected
via Serial1/0, receive
C 2001:1111::/64 [0/0]
R 2003:3333::1/128 [120/6]
via FE80::C806:BFF:FEF0:8, Serial1/0
via Null0, receive
r3#sh ipv6 route | excl L
IPv6 Routing Table - default - 10 entries
EX - EIGRP external, ND - ND Default, NDp - ND Prefix, DCE - Destination
NDr - Redirect, O - OSPF Intra, OI - OSPF Inter, OE1 - OSPF ext 1
OE2 2001::/64 [110/20]
via FE80::C806:BFF:FEF0:8, FastEthernet0/0
OE2 2001:1111::/64 [110/20]
via FE80::C806:BFF:FEF0:8, FastEthernet0/0
C 2002::/64 [0/0]
via FastEthernet0/0, directly connected
via FastEthernet0/0, receive
O 2002:2222::1/128 [110/1]
via FE80::C806:BFF:FEF0:8, FastEthernet0/0
C 2003::/64 [0/0]
via FastEthernet0/1, directly connected
via FastEthernet0/1, receive
C 2003:3333::/64 [0/0]
via Null0, receive
having fun yet?
Subscribe to:
Posts (Atom)