from: http://www.cisco.com/en/US/tech/tk872/technologies_configuration_example09186a0080b40d8a.shtml
if i'm not mistaken the below diagram is gns3...
that is somehow significant...
r1
ipv6 unicast-routing
ipv6 cef
interface Serial2/0
no ip address
ipv6 address 2001:ABAB::/64 eui-64
ipv6 enable
ipv6 ospf 1 area 2
serial restart-delay 0
clock rate 128000
ipv6 router ospf 1
router-id 3.3.3.3
area 2 stub
r2
ipv6 unicast-routing
ipv6 cef
interface FastEthernet0/0
no ip address
speed auto
duplex auto
ipv6 address 2003::1/124
ipv6 enable
ipv6 ospf 1 area 0
interface Serial2/0
no ip address
ipv6 address 2002:ABAB::/64 eui-64
ipv6 enable
ipv6 ospf 1 area 2
serial restart-delay 0
ipv6 router ospf 1
router-id 1.1.1.1
area 2 stub no-summary
r3
ipv6 unicast-routing
ipv6 cef
interface FastEthernet0/0
no ip address
speed auto
duplex auto
ipv6 address 2003::2/124
ipv6 enable
ipv6 ospf 1 area 0
interface Serial2/1
no ip address
ipv6 address 2003::1:1/124
ipv6 enable
ipv6 rip ext enable
serial restart-delay 0
ipv6 router ospf 1
router-id 2.2.2.2
default-metric 25
redistribute rip ext metric-type 1 include-connected
!
ipv6 router rip ext
redistribute ospf 1 match internal external 1 external 2 include-connected
r4
ipv6 unicast-routing
ipv6 cef
interface Loopback0
no ip address
ipv6 address 2004:ABAB::/64 eui-64
ipv6 enable
ipv6 rip ext enable
interface Serial2/1
no ip address
ipv6 address 2003::1:2/124
ipv6 enable
ipv6 rip ext enable
serial restart-delay 0
ipv6 router rip ext
gratuitous hot chick...
Search insearchofthecert
Showing posts with label rip. Show all posts
Showing posts with label rip. Show all posts
Sunday, September 23, 2012
ospfv3 w/rip...
Monday, September 3, 2012
rip authentication...
same same... except change to ver 2...
on r5 and r6 add
key chain suck-key
key 1
key-string suck- key
and on the applicable interfaces
ip rip authentication key-chain suck-key
*Sep 3 16:50:46: RIP: received packet with text authentication suck- key
*Sep 3 16:50:46: RIP: received v2 update from 172.16.2.2 on FastEthernet0/1
*Sep 3 16:50:46: 1.0.0.0/8 via 0.0.0.0 in 1 hops
*Sep 3 16:50:46: 10.0.0.0/8 via 0.0.0.0 in 1 hops
*Sep 3 16:50:46: 192.168.1.0/24 via 0.0.0.0 in 1 hops
*Sep 3 16:50:46: 192.168.2.0/24 via 0.0.0.0 in 1 hops
set both sides to md5 authentication...
ip rip authenti mode md5
r6#
*Sep 3 16:54:58: RIP: received packet with MD5 authentication
that was very refreshing...
on r5 and r6 add
key chain suck-key
key 1
key-string suck- key
and on the applicable interfaces
ip rip authentication key-chain suck-key
r6#sh key chain
Key-chain suck-key:
key 1 -- text "suck- key"
accept lifetime (always valid) - (always valid) [valid now]
send lifetime (always valid) - (always valid) [valid now]
Key-chain suck-key:
key 1 -- text "suck- key"
accept lifetime (always valid) - (always valid) [valid now]
send lifetime (always valid) - (always valid) [valid now]
*Sep 3 16:50:46: RIP: received v2 update from 172.16.2.2 on FastEthernet0/1
*Sep 3 16:50:46: 1.0.0.0/8 via 0.0.0.0 in 1 hops
*Sep 3 16:50:46: 10.0.0.0/8 via 0.0.0.0 in 1 hops
*Sep 3 16:50:46: 192.168.1.0/24 via 0.0.0.0 in 1 hops
*Sep 3 16:50:46: 192.168.2.0/24 via 0.0.0.0 in 1 hops
set both sides to md5 authentication...
ip rip authenti mode md5
r6#
*Sep 3 16:54:58: RIP: received packet with MD5 authentication
that was very refreshing...
Labels:
authentication,
ccnp,
ccnp route,
rip
rip redist...
you might as well inject me with the plague...
add rip to r4, r5, r6... include some loopbacks on r6... clean out any redist or v-links...
r6#sh ip route | ex L | in loop
Gateway of last resort is not set
6.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 6.6.6.0/24 is directly connected, Loopback6
8.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 8.8.8.0/24 is directly connected, Loopback8
172.16.0.0/16 is variably subnetted, 4 subnets, 2 masks
C 172.16.1.0/24 is directly connected, FastEthernet0/0
C 172.16.2.0/24 is directly connected, FastEthernet0/1
r1#sh ip route | ex L | in 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, Loopback1
10.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
C 10.1.1.0/24 is directly connected, FastEthernet0/0
C 10.1.2.0/24 is directly connected, FastEthernet1/1
O IA 192.168.1.0/24 [110/782] via 10.1.1.2, 00:14:26, FastEthernet0/0
O IA 192.168.2.0/24 [110/782] via 10.1.2.2, 00:14:26, FastEthernet1/1
r4
router ospf 1
redist rip sub
router rip
redist ospf 1 metr 1
r5
router ospf 1
redist rip sub
router rip
redist ospf 1 metr 1
R 1.0.0.0/8 [120/1] via 172.16.2.2, 00:00:23, FastEthernet0/1
[120/1] via 172.16.1.2, 00:00:04, FastEthernet0/0
6.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 6.6.6.0/24 is directly connected, Loopback6
8.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 8.8.8.0/24 is directly connected, Loopback8
R 10.0.0.0/8 [120/1] via 172.16.2.2, 00:00:23, FastEthernet0/1
[120/1] via 172.16.1.2, 00:00:04, FastEthernet0/0
172.16.0.0/16 is variably subnetted, 4 subnets, 2 masks
C 172.16.1.0/24 is directly connected, FastEthernet0/0
C 172.16.2.0/24 is directly connected, FastEthernet0/1
R 192.168.1.0/24 [120/1] via 172.16.2.2, 00:00:23, FastEthernet0/1
[120/1] via 172.16.1.2, 00:00:04, FastEthernet0/0
R 192.168.2.0/24 [120/1] via 172.16.2.2, 00:00:23, FastEthernet0/1
[120/1] via 172.16.1.2, 00:00:04, FastEthernet0/0
this topology is great... did i mention don't save the routing stuff...
add rip to r4, r5, r6... include some loopbacks on r6... clean out any redist or v-links...
r4#sh run | beg rip
router rip
network 172.16.0.0
router rip
network 172.16.0.0
r5#sh run | beg rip
router rip
network 172.16.0.0
router rip
network 172.16.0.0
r6#sh run | beg rip
router rip
network 6.0.0.0
network 8.0.0.0
network 172.16.0.0
router rip
network 6.0.0.0
network 8.0.0.0
network 172.16.0.0
Gateway of last resort is not set
6.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 6.6.6.0/24 is directly connected, Loopback6
8.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 8.8.8.0/24 is directly connected, Loopback8
172.16.0.0/16 is variably subnetted, 4 subnets, 2 masks
C 172.16.1.0/24 is directly connected, FastEthernet0/0
C 172.16.2.0/24 is directly connected, FastEthernet0/1
r1#sh ip route | ex L | in 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, Loopback1
10.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
C 10.1.1.0/24 is directly connected, FastEthernet0/0
C 10.1.2.0/24 is directly connected, FastEthernet1/1
O IA 192.168.1.0/24 [110/782] via 10.1.1.2, 00:14:26, FastEthernet0/0
O IA 192.168.2.0/24 [110/782] via 10.1.2.2, 00:14:26, FastEthernet1/1
r4
router ospf 1
redist rip sub
router rip
redist ospf 1 metr 1
r5
router ospf 1
redist rip sub
router rip
redist ospf 1 metr 1
r1#sh ip route | ex L | in loop
Gateway of last resort is not set
1.0.0.0/8 is variably subnetted, 3 subnets, 3 masks
O E2 1.0.0.0/8 [110/20] via 10.1.2.2, 00:00:08, FastEthernet1/1
C 1.1.1.0/24 is directly connected, Loopback1
O E2 6.0.0.0/8 [110/20] via 10.1.1.2, 00:00:33, FastEthernet0/0
O E2 8.0.0.0/8 [110/20] via 10.1.1.2, 00:00:33, FastEthernet0/0
10.0.0.0/8 is variably subnetted, 5 subnets, 3 masks
O E2 10.0.0.0/8 [110/20] via 10.1.2.2, 00:00:08, FastEthernet1/1
C 10.1.1.0/24 is directly connected, FastEthernet0/0
C 10.1.2.0/24 is directly connected, FastEthernet1/1
172.16.0.0/24 is subnetted, 2 subnets
O E2 172.16.1.0 [110/20] via 10.1.1.2, 00:00:33, FastEthernet0/0
O E2 172.16.2.0 [110/20] via 10.1.2.2, 00:00:08, FastEthernet1/1
O IA 192.168.1.0/24 [110/782] via 10.1.1.2, 00:17:03, FastEthernet0/0
O IA 192.168.2.0/24 [110/782] via 10.1.2.2, 00:17:03, FastEthernet1/1
Gateway of last resort is not set
1.0.0.0/8 is variably subnetted, 3 subnets, 3 masks
O E2 1.0.0.0/8 [110/20] via 10.1.2.2, 00:00:08, FastEthernet1/1
C 1.1.1.0/24 is directly connected, Loopback1
O E2 6.0.0.0/8 [110/20] via 10.1.1.2, 00:00:33, FastEthernet0/0
O E2 8.0.0.0/8 [110/20] via 10.1.1.2, 00:00:33, FastEthernet0/0
10.0.0.0/8 is variably subnetted, 5 subnets, 3 masks
O E2 10.0.0.0/8 [110/20] via 10.1.2.2, 00:00:08, FastEthernet1/1
C 10.1.1.0/24 is directly connected, FastEthernet0/0
C 10.1.2.0/24 is directly connected, FastEthernet1/1
172.16.0.0/24 is subnetted, 2 subnets
O E2 172.16.1.0 [110/20] via 10.1.1.2, 00:00:33, FastEthernet0/0
O E2 172.16.2.0 [110/20] via 10.1.2.2, 00:00:08, FastEthernet1/1
O IA 192.168.1.0/24 [110/782] via 10.1.1.2, 00:17:03, FastEthernet0/0
O IA 192.168.2.0/24 [110/782] via 10.1.2.2, 00:17:03, FastEthernet1/1
r6#sh ip route | ex L | in loop
Gateway of last resort is not setR 1.0.0.0/8 [120/1] via 172.16.2.2, 00:00:23, FastEthernet0/1
[120/1] via 172.16.1.2, 00:00:04, FastEthernet0/0
6.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 6.6.6.0/24 is directly connected, Loopback6
8.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 8.8.8.0/24 is directly connected, Loopback8
R 10.0.0.0/8 [120/1] via 172.16.2.2, 00:00:23, FastEthernet0/1
[120/1] via 172.16.1.2, 00:00:04, FastEthernet0/0
172.16.0.0/16 is variably subnetted, 4 subnets, 2 masks
C 172.16.1.0/24 is directly connected, FastEthernet0/0
C 172.16.2.0/24 is directly connected, FastEthernet0/1
R 192.168.1.0/24 [120/1] via 172.16.2.2, 00:00:23, FastEthernet0/1
[120/1] via 172.16.1.2, 00:00:04, FastEthernet0/0
R 192.168.2.0/24 [120/1] via 172.16.2.2, 00:00:23, FastEthernet0/1
[120/1] via 172.16.1.2, 00:00:04, FastEthernet0/0
this topology is great... did i mention don't save the routing stuff...
Saturday, August 18, 2012
rip and ospf uurrf...
will it ever end...
finally onto ospf... can you smell me now...
add only the serial link on r2, on r3 add everything... are you scared yet? i always get nervous when the directions are to avoid things that you would naturally do, LIKE INCLUDE THE GODDAMN NETWORKS...
r3#sh run | beg router
router ospf 1
network 172.16.0.0 0.0.255.255 area 0
network 192.168.0.0 0.0.255.255 area 0
and now the dreaded point-to-point statements on r3's lo's so that they are represented as networks and not hosts... arrrrgh...
r3
interface Loopback0
ip address 172.16.3.1 255.255.255.0
ip ospf network point-to-point
!
interface Loopback20
ip address 192.168.20.1 255.255.255.0
ip ospf network point-to-point
!
interface Loopback25
ip address 192.168.25.1 255.255.255.0
ip ospf network point-to-point
!
interface Loopback30
ip address 192.168.30.1 255.255.255.0
ip ospf network point-to-point
!
interface Loopback35
ip address 192.168.35.1 255.255.255.0
!
interface Loopback40
ip address 192.168.40.1 255.255.255.0
ip ospf network point-to-point
go ahead and configure some passive interfaces... i'm going on to redistribution... passive interfaces are very important for saving cpu cycles, link bandwidth and router memory (last i checked this stuff is friggin cheap there, mr. cisco)
i'm not sure what the fuss is with redistribution... odom puts it this way, redistribute from, to... like copy from, to, in most every operating system...
redistribute from ospf to rip...
if a default metric is not specified, routes will have an infinite metric and won't be advertised...
r1#sh ip route rip
omitted
Gateway of last resort is not set
172.16.0.0/16 is variably subnetted, 7 subnets, 2 masks
R 172.16.2.0/24 [120/1] via 172.16.12.2, 00:00:13, Serial1/0
R 172.16.3.0/24 [120/4] via 172.16.12.2, 00:00:13, Serial1/0
R 172.16.23.0/24 [120/1] via 172.16.12.2, 00:00:13, Serial1/0
R 192.168.20.0/24 [120/4] via 172.16.12.2, 00:00:13, Serial1/0
R 192.168.25.0/24 [120/4] via 172.16.12.2, 00:00:13, Serial1/0
R 192.168.30.0/24 [120/4] via 172.16.12.2, 00:00:13, Serial1/0
192.168.35.0/32 is subnetted, 1 subnets
R 192.168.35.1 [120/4] via 172.16.12.2, 00:00:13, Serial1/0
R 192.168.40.0/24 [120/4] via 172.16.12.2, 00:00:13, Serial1/0
the moment we've all been waiting for... you can't ping the loopbacks from r1 to r3... there is no route back... the routes show up in the route table but...
r3#
this is monumental and worth all the pain to get here...
r3#sh ip route ospf
omitted
Gateway of last resort is 172.16.23.2 to network 0.0.0.0
O*E2 0.0.0.0/0 [110/1] via 172.16.23.2, 00:00:06, Serial1/2
now you can ping the loopbacks... the alternative; redistribute both ways, always...
r3#sh ip route ospf
omitted
Gateway of last resort is not set
172.16.0.0/16 is variably subnetted, 7 subnets, 2 masks
O E2 172.16.1.0/24 [110/20] via 172.16.23.2, 00:00:44, Serial1/2
O E2 172.16.2.0/24 [110/20] via 172.16.23.2, 00:00:44, Serial1/2
O E2 172.16.12.0/24 [110/20] via 172.16.23.2, 00:00:44, Serial1/2
O E2 192.168.48.0/24 [110/20] via 172.16.23.2, 00:01:37, Serial1/2
O E2 192.168.49.0/24 [110/20] via 172.16.23.2, 00:01:37, Serial1/2
O E2 192.168.50.0/24 [110/20] via 172.16.23.2, 00:01:37, Serial1/2
O E2 192.168.51.0/24 [110/20] via 172.16.23.2, 00:01:37, Serial1/2
O E2 192.168.70.0/24 [110/20] via 172.16.23.2, 00:01:37, Serial1/2
much better... i killed the summary garbage from earlier so the loopbacks are represented individually...
you don't get the gateway, but you do get the all the externals... i prefer that...
screw around with the default metrics and witness the output in the ip route... it's very exciting...
actually, what is exciting is changing the metric-type...
that's pretty...
the difference is cumulative cost, including that to the asbr, not just the asbr to the destination...big difference... i'll let this guy explain it...
http://ciscotips.wordpress.com/2007/10/24/e1e2-routes-in-ospf/
In OSPF we have 2 types of external routes. E1 and E2
For example
R1#show ip route
Codes: C – connected, S – static, I – IGRP, 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, E – EGP
Route redistribution is the process of taking routes learned via one routing protocol and injecting those routes into another routing domain. (Static and connected routes can also be redistributed.) When a router running OSPF takes routes learned by another routing protocol and makes them available to the other OSPF-enabled routers it’s communicating with, that router becomes an Autonomous System Border Router (ASBR). Let’s say R1 is running both OSPF and RIP. R4 is in the same OSPF domain as R1, and we want R4 to learn the routes that R1 is learning via RIP. This means we have to perform route redistribution on the ASBR. The routes that are being redistributed from RIP into OSPF will appear as E2 routes on R4:R4#show ip route ospfO E2 5.1.1.1 [110/20] via 172.34.34.3, 00:33:21, Ethernet06.0.0.0/32 is subnetted, 1 subnets
R1(config)#router ospf 1
R1(config-router)#redistribute rip subnets metric-type 1 Now on R4, the routes appear as E1 routes and have a larger metric, since the entire path cost is now reflected in the routing table.O E1 5.1.1.1 [110/94] via 172.34.34.3, 00:33:21, Ethernet06.0.0.0/32 is subnetted, 1 subnets
finally onto ospf... can you smell me now...
add only the serial link on r2, on r3 add everything... are you scared yet? i always get nervous when the directions are to avoid things that you would naturally do, LIKE INCLUDE THE GODDAMN NETWORKS...
r2#sh run | begin ospf
router ospf 1
network 172.16.23.0 0.0.0.255 area 0
router ospf 1
network 172.16.23.0 0.0.0.255 area 0
router ospf 1
network 172.16.0.0 0.0.255.255 area 0
network 192.168.0.0 0.0.255.255 area 0
and now the dreaded point-to-point statements on r3's lo's so that they are represented as networks and not hosts... arrrrgh...
r3
interface Loopback0
ip address 172.16.3.1 255.255.255.0
ip ospf network point-to-point
!
interface Loopback20
ip address 192.168.20.1 255.255.255.0
ip ospf network point-to-point
!
interface Loopback25
ip address 192.168.25.1 255.255.255.0
ip ospf network point-to-point
!
interface Loopback30
ip address 192.168.30.1 255.255.255.0
ip ospf network point-to-point
!
interface Loopback35
ip address 192.168.35.1 255.255.255.0
!
interface Loopback40
ip address 192.168.40.1 255.255.255.0
ip ospf network point-to-point
r2#sh ip ospf neigh
Neighbor ID Pri State Dead Time Address Interface
192.168.40.1 0 FULL/ - 00:00:33 172.16.23.3 Serial1/2
Neighbor ID Pri State Dead Time Address Interface
192.168.40.1 0 FULL/ - 00:00:33 172.16.23.3 Serial1/2
r3#sh ip ospf neigh
Neighbor ID Pri State Dead Time Address Interface
172.16.2.1 0 FULL/ - 00:00:30 172.16.23.2 Serial1/2
Neighbor ID Pri State Dead Time Address Interface
172.16.2.1 0 FULL/ - 00:00:30 172.16.23.2 Serial1/2
r2#sh ip route ospf
omitted
omitted
Gateway of last resort is not set
172.16.0.0/16 is variably subnetted, 8 subnets, 2 masks
O 172.16.3.0/24 [110/1563] via 172.16.23.3, 00:00:38, Serial1/2
O 192.168.20.0/24 [110/1563] via 172.16.23.3, 00:19:22, Serial1/2
O 192.168.25.0/24 [110/1563] via 172.16.23.3, 00:19:12, Serial1/2
O 192.168.30.0/24 [110/1563] via 172.16.23.3, 00:19:12, Serial1/2
192.168.35.0/32 is subnetted, 1 subnets
O 192.168.35.1 [110/1563] via 172.16.23.3, 00:28:01, Serial1/2
O 192.168.40.0/24 [110/1563] via 172.16.23.3, 00:18:39, Serial1/2
172.16.0.0/16 is variably subnetted, 8 subnets, 2 masks
O 172.16.3.0/24 [110/1563] via 172.16.23.3, 00:00:38, Serial1/2
O 192.168.20.0/24 [110/1563] via 172.16.23.3, 00:19:22, Serial1/2
O 192.168.25.0/24 [110/1563] via 172.16.23.3, 00:19:12, Serial1/2
O 192.168.30.0/24 [110/1563] via 172.16.23.3, 00:19:12, Serial1/2
192.168.35.0/32 is subnetted, 1 subnets
O 192.168.35.1 [110/1563] via 172.16.23.3, 00:28:01, Serial1/2
O 192.168.40.0/24 [110/1563] via 172.16.23.3, 00:18:39, Serial1/2
go ahead and configure some passive interfaces... i'm going on to redistribution... passive interfaces are very important for saving cpu cycles, link bandwidth and router memory (last i checked this stuff is friggin cheap there, mr. cisco)
i'm not sure what the fuss is with redistribution... odom puts it this way, redistribute from, to... like copy from, to, in most every operating system...
redistribute from ospf to rip...
r1#sh ip route rip
omitted
omitted
Gateway of last resort is not set
172.16.0.0/16 is variably subnetted, 6 subnets, 2 masks
R 172.16.2.0/24 [120/1] via 172.16.12.2, 00:00:04, Serial1/0
R 172.16.23.0/24 [120/1] via 172.16.12.2, 00:00:04, Serial1/0
172.16.0.0/16 is variably subnetted, 6 subnets, 2 masks
R 172.16.2.0/24 [120/1] via 172.16.12.2, 00:00:04, Serial1/0
R 172.16.23.0/24 [120/1] via 172.16.12.2, 00:00:04, Serial1/0
if a default metric is not specified, routes will have an infinite metric and won't be advertised...
r2(config)#router rip
r2(config-router)#redistribute ospf 1 metric 4
r2(config-router)#redistribute ospf 1 metric 4
omitted
Gateway of last resort is not set
172.16.0.0/16 is variably subnetted, 7 subnets, 2 masks
R 172.16.2.0/24 [120/1] via 172.16.12.2, 00:00:13, Serial1/0
R 172.16.3.0/24 [120/4] via 172.16.12.2, 00:00:13, Serial1/0
R 172.16.23.0/24 [120/1] via 172.16.12.2, 00:00:13, Serial1/0
R 192.168.20.0/24 [120/4] via 172.16.12.2, 00:00:13, Serial1/0
R 192.168.25.0/24 [120/4] via 172.16.12.2, 00:00:13, Serial1/0
R 192.168.30.0/24 [120/4] via 172.16.12.2, 00:00:13, Serial1/0
192.168.35.0/32 is subnetted, 1 subnets
R 192.168.35.1 [120/4] via 172.16.12.2, 00:00:13, Serial1/0
R 192.168.40.0/24 [120/4] via 172.16.12.2, 00:00:13, Serial1/0
the moment we've all been waiting for... you can't ping the loopbacks from r1 to r3... there is no route back... the routes show up in the route table but...
r3#sh ip route ospf
omitted
Gateway of last resort is not setomitted
r3#
this is monumental and worth all the pain to get here...
r2(config-router)#router ospf 1
r2(config-router)#default-inform originate always
r2(config-router)#end
r2(config-router)#default-inform originate always
r2(config-router)#end
omitted
Gateway of last resort is 172.16.23.2 to network 0.0.0.0
O*E2 0.0.0.0/0 [110/1] via 172.16.23.2, 00:00:06, Serial1/2
now you can ping the loopbacks... the alternative; redistribute both ways, always...
r2(config)#router ospf 1
r2(config-router)#no default-info origin always
r2(config-router)#redistribute rip
% Only classful networks will be redistributed
r2(config-router)#redistribute rip subnets
r2(config-router)#no default-info origin always
r2(config-router)#redistribute rip
% Only classful networks will be redistributed
r2(config-router)#redistribute rip subnets
omitted
Gateway of last resort is not set
172.16.0.0/16 is variably subnetted, 7 subnets, 2 masks
O E2 172.16.1.0/24 [110/20] via 172.16.23.2, 00:00:44, Serial1/2
O E2 172.16.2.0/24 [110/20] via 172.16.23.2, 00:00:44, Serial1/2
O E2 172.16.12.0/24 [110/20] via 172.16.23.2, 00:00:44, Serial1/2
O E2 192.168.48.0/24 [110/20] via 172.16.23.2, 00:01:37, Serial1/2
O E2 192.168.49.0/24 [110/20] via 172.16.23.2, 00:01:37, Serial1/2
O E2 192.168.50.0/24 [110/20] via 172.16.23.2, 00:01:37, Serial1/2
O E2 192.168.51.0/24 [110/20] via 172.16.23.2, 00:01:37, Serial1/2
O E2 192.168.70.0/24 [110/20] via 172.16.23.2, 00:01:37, Serial1/2
much better... i killed the summary garbage from earlier so the loopbacks are represented individually...
you don't get the gateway, but you do get the all the externals... i prefer that...
screw around with the default metrics and witness the output in the ip route... it's very exciting...
actually, what is exciting is changing the metric-type...
r2(config)#router ospf 1
r2(config-router)#redistribute rip subnets metric-type 1
r2(config-router)#end
r2(config-router)#redistribute rip subnets metric-type 1
r2(config-router)#end
r3#sh ip route ospf
omitted
Gateway of last resort is not set
172.16.0.0/16 is variably subnetted, 7 subnets, 2 masks
O E1 172.16.1.0/24 [110/1582] via 172.16.23.2, 00:00:32, Serial1/2
O E1 172.16.2.0/24 [110/1582] via 172.16.23.2, 00:00:32, Serial1/2
O E1 172.16.12.0/24 [110/1582] via 172.16.23.2, 00:00:32, Serial1/2
O E1 192.168.48.0/24 [110/1582] via 172.16.23.2, 00:00:32, Serial1/2
O E1 192.168.49.0/24 [110/1582] via 172.16.23.2, 00:00:32, Serial1/2
O E1 192.168.50.0/24 [110/1582] via 172.16.23.2, 00:00:32, Serial1/2
O E1 192.168.51.0/24 [110/1582] via 172.16.23.2, 00:00:32, Serial1/2
O E1 192.168.70.0/24 [110/1582] via 172.16.23.2, 00:00:32, Serial1/2
omitted
Gateway of last resort is not set
172.16.0.0/16 is variably subnetted, 7 subnets, 2 masks
O E1 172.16.1.0/24 [110/1582] via 172.16.23.2, 00:00:32, Serial1/2
O E1 172.16.2.0/24 [110/1582] via 172.16.23.2, 00:00:32, Serial1/2
O E1 172.16.12.0/24 [110/1582] via 172.16.23.2, 00:00:32, Serial1/2
O E1 192.168.48.0/24 [110/1582] via 172.16.23.2, 00:00:32, Serial1/2
O E1 192.168.49.0/24 [110/1582] via 172.16.23.2, 00:00:32, Serial1/2
O E1 192.168.50.0/24 [110/1582] via 172.16.23.2, 00:00:32, Serial1/2
O E1 192.168.51.0/24 [110/1582] via 172.16.23.2, 00:00:32, Serial1/2
O E1 192.168.70.0/24 [110/1582] via 172.16.23.2, 00:00:32, Serial1/2
that's pretty...
the difference is cumulative cost, including that to the asbr, not just the asbr to the destination...big difference... i'll let this guy explain it...
http://ciscotips.wordpress.com/2007/10/24/e1e2-routes-in-ospf/
In OSPF we have 2 types of external routes. E1 and E2
For example
R1#show ip route
Codes: C – connected, S – static, I – IGRP, 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, E – EGP
Route redistribution is the process of taking routes learned via one routing protocol and injecting those routes into another routing domain. (Static and connected routes can also be redistributed.) When a router running OSPF takes routes learned by another routing protocol and makes them available to the other OSPF-enabled routers it’s communicating with, that router becomes an Autonomous System Border Router (ASBR). Let’s say R1 is running both OSPF and RIP. R4 is in the same OSPF domain as R1, and we want R4 to learn the routes that R1 is learning via RIP. This means we have to perform route redistribution on the ASBR. The routes that are being redistributed from RIP into OSPF will appear as E2 routes on R4:R4#show ip route ospfO E2 5.1.1.1 [110/20] via 172.34.34.3, 00:33:21, Ethernet06.0.0.0/32 is subnetted, 1 subnets
E2 is the default route type for routes learned via redistribution.
The key with E2 routes is that the cost of these routes reflects only
the cost of the path from the ASBR to the final destination. It will
not reflect the correct “Cost” or path.
Now if we want the cost of the routes to reflect the entire path,
not just the path between the ASBR and the destination network. The routes must be redistributed into OSPF as E1 routes on the ASBR, as shown here.
.R1(config)#router ospf 1
R1(config-router)#redistribute rip subnets metric-type 1 Now on R4, the routes appear as E1 routes and have a larger metric, since the entire path cost is now reflected in the routing table.O E1 5.1.1.1 [110/94] via 172.34.34.3, 00:33:21, Ethernet06.0.0.0/32 is subnetted, 1 subnets
Tuesday, January 10, 2012
suitable for framing...
because of split horizon on point-to-point frame links, a distance vector protocol needs to have broadcast added to it's map statement, like so...
frame-relay map ip 10.0.20.30 201 broadcast
remember the remote ip gets mapped to the local dlci... the REMOTE ip gets mapped to the LOCAL dlci.. and the links have to be in the same subnet... in this case router 3 is receiving the rip route because only router 2 is advertising it...
r2620_02#sh ip route
Codes:
Gateway of last resort is not set
2.0.0.0/24 is subnetted, 1 subnets
C 2.2.2.0 is directly connected, Loopback0
10.0.0.0/24 is subnetted, 1 subnets
C 10.0.20.0 is directly connected, Serial0/0
C 192.168.1.0/24 is directly connected, FastEthernet0/0
r2620_02#
versus...
frame-relay map ip 10.0.20.2 301 (no broadcast statement)
r2620_03#sh ip route
Codes:
Gateway of last resort is not set
R 2.0.0.0/8 [120/1] via 10.0.20.2, 00:00:25, Serial0/0
3.0.0.0/24 is subnetted, 1 subnets
C 3.3.3.0 is directly connected, Loopback0
10.0.0.0/24 is subnetted, 1 subnets
C 10.0.20.0 is directly connected, Serial0/0
C 192.168.1.0/24 is directly connected, FastEthernet0/0
r2620_03#
once broadcast is added to the frame map,
r2620_03(config-if)#frame map ip 10.0.20.2 301 broadcast
(use clear ip route * to force an update)
r2620_02#sh ip route
Codes:
Gateway of last resort is not set
2.0.0.0/24 is subnetted, 1 subnets
C 2.2.2.0 is directly connected, Loopback0
R 3.0.0.0/8 [120/1] via 10.0.20.30, 00:00:05, Serial0/0
10.0.0.0/24 is subnetted, 1 subnets
C 10.0.20.0 is directly connected, Serial0/0
C 192.168.1.0/24 is directly connected, FastEthernet0/0
r2620_02#
naturally you could use no ip split-horizon or subinterfaces instead but this was more fun...
frame-relay map ip 10.0.20.30 201 broadcast
remember the remote ip gets mapped to the local dlci... the REMOTE ip gets mapped to the LOCAL dlci.. and the links have to be in the same subnet... in this case router 3 is receiving the rip route because only router 2 is advertising it...
r2620_02#sh ip route
Codes:
Gateway of last resort is not set
2.0.0.0/24 is subnetted, 1 subnets
C 2.2.2.0 is directly connected, Loopback0
10.0.0.0/24 is subnetted, 1 subnets
C 10.0.20.0 is directly connected, Serial0/0
C 192.168.1.0/24 is directly connected, FastEthernet0/0
r2620_02#
versus...
frame-relay map ip 10.0.20.2 301 (no broadcast statement)
r2620_03#sh ip route
Codes:
Gateway of last resort is not set
R 2.0.0.0/8 [120/1] via 10.0.20.2, 00:00:25, Serial0/0
3.0.0.0/24 is subnetted, 1 subnets
C 3.3.3.0 is directly connected, Loopback0
10.0.0.0/24 is subnetted, 1 subnets
C 10.0.20.0 is directly connected, Serial0/0
C 192.168.1.0/24 is directly connected, FastEthernet0/0
r2620_03#
once broadcast is added to the frame map,
r2620_03(config-if)#frame map ip 10.0.20.2 301 broadcast
(use clear ip route * to force an update)
r2620_02#sh ip route
Codes:
Gateway of last resort is not set
2.0.0.0/24 is subnetted, 1 subnets
C 2.2.2.0 is directly connected, Loopback0
R 3.0.0.0/8 [120/1] via 10.0.20.30, 00:00:05, Serial0/0
10.0.0.0/24 is subnetted, 1 subnets
C 10.0.20.0 is directly connected, Serial0/0
C 192.168.1.0/24 is directly connected, FastEthernet0/0
r2620_02#
naturally you could use no ip split-horizon or subinterfaces instead but this was more fun...
Saturday, December 24, 2011
rip defect route propagation...
simply rip, 2 routers connected serially to 1... notice the gateway of last resort is not set... if you follow the output you'll see default-information originate put to good use in a rip environment... might save some typing... r2620_01(config)#do sh run | begin router rip
router rip
network 1.0.0.0
network 10.0.0.0
r2620_01#sh ip route
Gateway of last resort is not set
1.0.0.0/24 is subnetted, 1 subnets
C 1.1.1.0 is directly connected, Loopback0
R 2.0.0.0/8 [120/1] via 10.0.20.2, 00:00:20, Serial0/0
R 3.0.0.0/8 [120/1] via 10.0.30.2, 00:00:04, Serial0/1
10.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
C 10.0.30.0/24 is directly connected, Serial0/1
C 10.0.30.2/32 is directly connected, Serial0/1
C 10.0.20.2/32 is directly connected, Serial0/0
C 10.0.20.0/24 is directly connected, Serial0/0
r2620_01#
r2620_02#sh ip route
Gateway of last resort is not set
R 1.0.0.0/8 [120/1] via 10.0.20.1, 00:00:27, Serial0/0
2.0.0.0/24 is subnetted, 1 subnets
C 2.2.2.0 is directly connected, Loopback0
R 3.0.0.0/8 [120/1] via 10.0.20.1, 00:00:27, Serial0/0
10.0.0.0/8 is variably subnetted, 5 subnets, 3 masks
R 10.0.30.0/24 [120/1] via 10.0.20.1, 00:00:27, Serial0/0
R 10.0.30.2/32 [120/1] via 10.0.20.1, 00:00:27, Serial0/0
C 10.0.20.0/24 is directly connected, Serial0/0
C 10.0.20.1/32 is directly connected, Serial0/0
r2620_02#
r2620_03#sh ip route
Gateway of last resort is not set
R 1.0.0.0/8 [120/1] via 10.0.30.1, 00:00:24, Serial0/0
R 2.0.0.0/8 [120/1] via 10.0.30.1, 00:00:24, Serial0/0
3.0.0.0/24 is subnetted, 1 subnets
C 3.3.3.0 is directly connected, Loopback0
10.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
C 10.0.30.0/24 is directly connected, Serial0/0
C 10.0.30.1/32 is directly connected, Serial0/0
R 10.0.20.2/32 [120/1] via 10.0.30.1, 00:00:24, Serial0/0
R 10.0.20.0/24 [120/1] via 10.0.30.1, 00:00:24, Serial0/0
r2620_03#
r2620_01(config)#router rip
r2620_01(config-router)#default-information originate
r2620_01(config-router)#end
r2620_01#
r2620_02#sh ip route
Gateway of last resort is 10.0.20.1 to network 0.0.0.0
R 1.0.0.0/8 [120/1] via 10.0.20.1, 00:00:11, Serial0/0
2.0.0.0/24 is subnetted, 1 subnets
C 2.2.2.0 is directly connected, Loopback0
R 3.0.0.0/8 [120/1] via 10.0.20.1, 00:00:11, Serial0/0
10.0.0.0/8 is variably subnetted, 5 subnets, 3 masks
R 10.0.30.0/24 [120/1] via 10.0.20.1, 00:00:11, Serial0/0
R 10.0.30.2/32 [120/1] via 10.0.20.1, 00:00:11, Serial0/0
C 10.0.20.0/24 is directly connected, Serial0/0
C 10.0.20.1/32 is directly connected, Serial0/0
R* 0.0.0.0/0 [120/1] via 10.0.20.1, 00:00:11, Serial0/0
r2620_03#sh ip route
Gateway of last resort is 10.0.30.1 to network 0.0.0.0
R 1.0.0.0/8 [120/1] via 10.0.30.1, 00:00:19, Serial0/0
R 2.0.0.0/8 [120/1] via 10.0.30.1, 00:00:19, Serial0/0
3.0.0.0/24 is subnetted, 1 subnets
C 3.3.3.0 is directly connected, Loopback0
10.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
C 10.0.30.0/24 is directly connected, Serial0/0
C 10.0.30.1/32 is directly connected, Serial0/0
R 10.0.20.2/32 [120/1] via 10.0.30.1, 00:00:19, Serial0/0
R 10.0.20.0/24 [120/1] via 10.0.30.1, 00:00:19, Serial0/0
R* 0.0.0.0/0 [120/1] via 10.0.30.1, 00:00:19, Serial0/0
r2620_03#
so rip propagated some default routes as noted by the asterisks in the output of r2 and r3... sigh... but not on r1... this is very exciting...
r2620_01#sh ip route
Gateway of last resort is not set
1.0.0.0/24 is subnetted, 1 subnets
C 1.1.1.0 is directly connected, Loopback0
R 2.0.0.0/8 [120/1] via 10.0.20.2, 00:00:20, Serial0/0
R 3.0.0.0/8 [120/1] via 10.0.30.2, 00:00:20, Serial0/1
10.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
C 10.0.30.0/24 is directly connected, Serial0/1
C 10.0.30.2/32 is directly connected, Serial0/1
C 10.0.20.2/32 is directly connected, Serial0/0
C 10.0.20.0/24 is directly connected, Serial0/0
r2620_01#
Labels:
ccna,
cisco,
default-information originate,
rip
Friday, November 4, 2011
some network output...
i'm starting out with rip, then eigrp and ospf... you can see below how it's shaping up... still have many things to do, vlan and interface descriptions, ios upgrades, serial connections, trunking, stp, vtp, etc... i'd like to say i'm having fun, but it's gone from a treat to an obsession... vpn, firewall, sdm, frame... damn...
sw3550#sh cdp neigh
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone
Device ID Local Intrfce Holdtme Capability Platform Port ID
r2620_03 Fas 0/18 148 R 2620XM Fas 0/0
r2620_02 Fas 0/8 123 R S I Cisco 2620Fas 0/0
r2620_01 Fas 0/1 176 R 2620XM Fas 0/0
sw3550#
sw3550#sh ip route
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
i - IS-IS, 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
Gateway of last resort is not set
R 1.0.0.0/8 [120/1] via 192.168.1.100, 00:00:07, Vlan1
R 2.0.0.0/8 [120/1] via 10.0.0.2, 00:00:21, Vlan2
C 100.0.0.0/8 is directly connected, Loopback0
R 3.0.0.0/8 [120/1] via 172.16.0.2, 00:00:14, Vlan3
C 172.16.0.0/16 is directly connected, Vlan3
10.0.0.0/24 is subnetted, 1 subnets
C 10.0.0.0 is directly connected, Vlan2
C 192.168.1.0/24 is directly connected, Vlan1
sw3550#
as an old college friend of mine used to say:
may the bulls run wild...
Subscribe to:
Posts (Atom)








