Pages

network cisco ccna gns3 certification arteq

network cisco ccna gns3 certification arteq
a network runs through it

Search insearchofthecert

Friday, August 31, 2012

doyle redist pg643...



m

int lo1
ip add 172.20.33.193 255.255.255.192
int lo2
ip add 172.20.35.1 255.255.255.0
int lo3
ip add 172.20.34.49 255.255.255.240

int f0/0
ip add 172.20.11.1 255.255.255.0
no shut

l

int f0/0
ip add 172.20.11.2 255.255.255.0
no shut

int f0/1
ip add 172.20.10.2 255.255.255.0
no shut

c

int lo1
ip add 172.20.20.1 255.255.255.0

int f0/1
ip add 172.20.10.1 255.255.255.0
no shut


routerm#sh run | beg ospf
router ospf 1
 network 172.20.11.0 0.0.0.255 area 0
 network 172.20.33.192 0.0.0.63 area 0
 network 172.20.34.48 0.0.0.15 area 0
 network 172.20.35.0 0.0.0.255 area 0

routerl#sh run | begin ospf
 router ospf 1
 network 172.20.11.0 0.0.0.255 area 0

routerl#sh run | beg eigrp
 router eigrp 1
 network 172.20.10.0 0.0.0.255
routerc#sh run | beg eigrp
router eigrp 1
 network 172.20.10.0 0.0.0.255
 network 172.20.20.0 0.0.0.255

router eigrp 1
redistribute ospf 1 metric 10000 100 255 1 15003
passive-interface f0/0
network 172.20.0.0

router ospf 1
redistribute eigrp 1 metric 30 metric-type 1 subnets
network 172.20.11.2 0.0.0.0 area 0

so this works nicely... a bit of overkill... i'll let doyle explain... the guy  really knows how to rap about this shit...

This configuration redistributes routes discovered by EIGRP process 1 into OSPF process 1. The metric portion of the command assigns an OSPF cost of 30 to each redistributed route. The redistribution makes Lajoie an ASBR in the OSPF domain, and the redistributed routes are advertised as external routes. The metric-type portion of the command specifies that the external type of the routes is E1. The subnets keyword, used only when redistributing routes into OSPF, specifies that subnet details will be redistributed. Without it, only major
network addresses are redistributed.

routerm#sh ip route | excl L | inc loop
      
Gateway of last resort is not set

      172.20.0.0/16 is variably subnetted, 10 subnets, 4 masks
O E1     172.20.10.0/24 [110/31] via 172.20.11.2, 00:18:57, FastEthernet0/0
C        172.20.11.0/24 is directly connected, FastEthernet0/0
O E1     172.20.20.0/24 [110/31] via 172.20.11.2, 00:15:55, FastEthernet0/0
C        172.20.33.192/26 is directly connected, Loopback1
C        172.20.34.48/28 is directly connected, Loopback3
C        172.20.35.0/24 is directly connected, Loopback2

routerc#sh ip route | excl L | incl loop
     
Gateway of last resort is not set

      172.20.0.0/16 is variably subnetted, 8 subnets, 2 masks
C        172.20.10.0/24 is directly connected, FastEthernet0/1
D EX     172.20.11.0/24
           [170/284160] via 172.20.10.2, 00:16:55, FastEthernet0/1
C        172.20.20.0/24 is directly connected, Loopback1
D EX     172.20.33.193/32
           [170/284160] via 172.20.10.2, 00:15:58, FastEthernet0/1
D EX     172.20.34.49/32
           [170/284160] via 172.20.10.2, 00:15:58, FastEthernet0/1
D EX     172.20.35.1/32

this command is really becoming a favorite for good reason... it just doesn't scrape very well...



this would be easier and the effect is the same....

redist eigrp 1 metric-type 1 sub





routerm#sh ip route | excl L | inc loop
      
Gateway of last resort is not set

      172.20.0.0/16 is variably subnetted, 10 subnets, 4 masks
O E1     172.20.10.0/24 [110/21] via 172.20.11.2, 00:02:30, FastEthernet0/0
C        172.20.11.0/24 is directly connected, FastEthernet0/0
O E1     172.20.20.0/24 [110/21] via 172.20.11.2, 00:02:30, FastEthernet0/0
C        172.20.33.192/26 is directly connected, Loopback1
C        172.20.34.48/28 is directly connected, Loopback3
C        172.20.35.0/24 is directly connected, Loopback2

add a new loopback to router c and advertise it with rip 2...

routerl#sh ip route | exc L | inc loop
      
Gateway of last resort is not set

      172.20.0.0/16 is variably subnetted, 9 subnets, 2 masks
C        172.20.10.0/24 is directly connected, FastEthernet0/1
C        172.20.11.0/24 is directly connected, FastEthernet0/0
D        172.20.20.0/24 [90/156160] via 172.20.10.1, 00:48:18, FastEthernet0/1
O        172.20.33.193/32 [110/2] via 172.20.11.1, 00:48:18, FastEthernet0/0
O        172.20.34.49/32 [110/2] via 172.20.11.1, 00:48:18, FastEthernet0/0
O        172.20.35.1/32 [110/2] via 172.20.11.1, 00:48:18, FastEthernet0/0
R        172.20.50.0/24 [120/1] via 172.20.10.1, 00:00:20, FastEthernet0/1

and redistribute into ospf... you could also include a default-metric value, like 68, ie...

router ospf 1
 redistribute eigrp 1 metric-type 1 subnets
 redistribute rip metric-type 1 subnets
 network 172.20.11.0 0.0.0.255 area 0
 default-metric 68

looks a little sexier...

routerm#sh ip route | excl L | inc loop
    
Gateway of last resort is not set

      172.20.0.0/16 is variably subnetted, 11 subnets, 4 masks
O E1     172.20.10.0/24 [110/69] via 172.20.11.2, 00:03:05, FastEthernet0/0
C        172.20.11.0/24 is directly connected, FastEthernet0/0
O E1     172.20.20.0/24 [110/69] via 172.20.11.2, 00:03:05, FastEthernet0/0
C        172.20.33.192/26 is directly connected, Loopback1
C        172.20.34.48/28 is directly connected, Loopback3
C        172.20.35.0/24 is directly connected, Loopback2
O E1     172.20.50.0/24 [110/69] via 172.20.11.2, 00:03:05, FastEthernet0/0

routerl#sh ip route | exc L | inc loop
     
Gateway of last resort is not set

      172.20.0.0/16 is variably subnetted, 9 subnets, 2 masks
C        172.20.10.0/24 is directly connected, FastEthernet0/1
C        172.20.11.0/24 is directly connected, FastEthernet0/0
D        172.20.20.0/24 [90/156160] via 172.20.10.1, 01:01:22, FastEthernet0/1
O        172.20.33.193/32 [110/2] via 172.20.11.1, 01:01:22, FastEthernet0/0
O        172.20.34.49/32 [110/2] via 172.20.11.1, 01:01:22, FastEthernet0/0
O        172.20.35.1/32 [110/2] via 172.20.11.1, 01:01:22, FastEthernet0/0
R        172.20.50.0/24 [120/1] via 172.20.10.1, 00:00:10, FastEthernet0/1

because you love rip...

the default will be 20 for ospf.. 69's kinda nice...



No comments:

Post a Comment