config t
interface Tunnel1
ip address 129.186.45.4 255.255.255.0
tunnel source 129.186.24.4
tunnel destination 129.186.24.5
Explanation
interface tunnel 1-------------------------------------(to creat tunnel interface)
tunnel source 129.186.24.4 -----------------------(router 4 interface)
ip address 129.186.45.4 255.255.255.0---------(choose from available network)
tunnel destination 129.186.24.5------------------(router 5 interface)
config t
interface Tunnel1
ip address 129.186.45.5 255.255.255.0
tunnel source 129.186.24.5
tunnel destination 129.186.24.4
show commands
R5#show ip int br
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 129.186.54.1 YES NVRAM up up
FastEthernet0/1 129.186.35.5 YES NVRAM up up
Serial1/0 129.186.65.5 YES NVRAM up up
Serial1/1 129.186.24.5 YES NVRAM up up
Serial1/2 unassigned YES NVRAM administratively down down
Serial1/3 unassigned YES NVRAM administratively down down
Loopback0 10.5.5.5 YES NVRAM up up
Tunnel1 129.186.45.5 YES manual up up
The tunnel interface should be in "up" state
show int tunnel 1
ping 129.186.45.4
Router 4
config t
router eigrp 10
network 180.1.40.0
no auto
network 129.186.45.0
Router 5
config t
router eigrp 10
no auto
network 129.186.65.0
network 129.186.45.0
show ip egrp neighbor
show ip route
Router 6
config t
router eigrp 10
no auto
network 129.186.65.0
ping 129.186.65.1
show ip eirp neighbor
show ip route
redistributing EIGRP into OSPF
config t
access-list 15 permit 180.1.40.0 0.0.0.255
route-map EIGRP_2_OSPF
match ip address 15
exit
router ospf 1
redistribute egirp 10 route-map EGIRP_2_OSPF metric 100000 metric-type 1 subnets tag 10
exit
exit
wr
Explnation
access list 15 permit 180.1.40.0 0.0.0.255-------------(creating an access list to permit only the network 180.1.40.0)
route -map EGIRP_2_OSPF-------------------------------(creating a routemap name EGIRP_2_OSPF)
match ip address 15----------------------------------------(matching access list 15)
router ospf 1-----------------------------------(enter ospf process 10)
redistribute-------------------------------------(Redistribute information from another routing protocol)
egirp 10-----------------------------------------(incert egirp procces)
route-map EGIRP_2_OSPF-------------------(incert the routemap whih contains the access list informtion)
metric 10000-----------------------------------
metric-type 1-----------------------------------(to increment the path cost)
subnets------------------------------------------
tag 10--------------------------------------------(tag it to avoid routing loop)
Router 2 has 180.1.40.0 route in its routing table.
R2#show ip route
Codes: 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
Gateway of last resort is not set
170.12.0.0/24 is subnetted, 1 subnets
O E1 170.12.7.0 [110/1850] via 129.186.23.2, 00:01:31, Serial1/1.23
O E1 192.168.8.0/24 [110/1850] via 129.186.23.2, 00:01:31, Serial1/1.23
O E1 192.168.9.0/24 [110/1850] via 129.186.23.2, 00:01:31, Serial1/1.23
O E1 192.168.10.0/24 [110/1850] via 129.186.23.2, 00:01:31, Serial1/1.23
O E1 192.168.4.0/24 [110/1850] via 129.186.23.2, 00:01:31, Serial1/1.23
129.186.0.0/24 is subnetted, 4 subnets
O IA 129.186.54.0 [110/65] via 129.186.24.4, 00:01:31, Serial1/1.24
O IA 129.186.35.0 [110/65] via 129.186.23.2, 00:01:32, Serial1/1.23
[110/65] via 129.186.24.5, 00:01:32, Serial1/1.24
C 129.186.24.0 is directly connected, Serial1/1.24
C 129.186.23.0 is directly connected, Serial1/1.23
O E1 192.168.5.0/24 [110/1850] via 129.186.23.2, 00:01:32, Serial1/1.23
130.13.0.0/24 is subnetted, 1 subnets
C 130.13.11.0 is directly connected, FastEthernet0/0
10.0.0.0/24 is subnetted, 6 subnets
O IA 10.7.7.0 [110/66] via 129.186.23.2, 00:01:34, Serial1/1.23
[110/66] via 129.186.24.5, 00:01:34, Serial1/1.24
O 10.5.5.0 [110/65] via 129.186.24.5, 00:01:34, Serial1/1.24
O 10.4.4.0 [110/65] via 129.186.24.4, 00:01:34, Serial1/1.24
O 10.3.3.0 [110/65] via 129.186.23.2, 00:01:34, Serial1/1.23
C 10.2.2.0 is directly connected, Loopback0
O E1 10.1.1.0 [110/1000001] via 130.13.11.1, 00:01:34, FastEthernet0/0
O E1 192.168.6.0/24 [110/1850] via 129.186.23.2, 00:01:34, Serial1/1.23
O E1 192.168.7.0/24 [110/1850] via 129.186.23.2, 00:01:34, Serial1/1.23
O E1 192.168.0.0/24 [110/1850] via 129.186.23.2, 00:01:34, Serial1/1.23
O E1 192.168.1.0/24 [110/1850] via 129.186.23.2, 00:01:34, Serial1/1.23
O E1 192.168.2.0/24 [110/1850] via 129.186.23.2, 00:01:34, Serial1/1.23
180.1.0.0/24 is subnetted, 1 subnets
O E1 180.1.40.0 [110/10064] via 129.186.24.4, 00:01:00, Serial1/1.24
O E1 192.168.3.0/24 [110/1850] via 129.186.23.2, 00:01:36, Serial1/1.23
check for 180.1.40.0 network in all the routers running ospf 1
Redistributing OSPF routes into EIGRP
router egirp 10
redistribute ospf 1 metric 11111 0 255 255 1
Redistributing OSPF routes into EIGRP
router egirp 10
redistribute ospf 1 metric 11111 0 255 255 1
Loop protection
access-list 20 permit 180.1.0.0 0.0.255.255
!
route-map EIGRP_2_OSPF deny 10
match route-type external
!
route-map EGIRP_2_OSPF deny 20
match ip address 20
!
route-map EGIRP_2_OSPF permit 30
router ospf 1
redistribute eigrp 10 metric 100000 metric-type 1 subnets tag 10 route-map EGIRP_2_OSPF
Explanation
route-map EGIRP_2_OSPF deny 10
match route-type external---------------------(match all the route which came from outside eigrp domain)
!
router ospf 1
redisrtibute eigrp 10 subnets tag 10 metric 100000 metric-type 1 router-map EGIRP_2_OSPF
!
access list 20 permit 180.1.40.0 0.0.255.255 ---------------(vlan connected to R4)
!
route-map EGIRP_2_OSPF deny 20------------------(creating route map for denial)
match ip adress 20--------------------------------------(match access list 20)
!
route-map EGIRP_2_OSPF permit 30----------------(to allow rest of the routes)
Check redistributed routes on router 6
R6#show ip route
Codes: 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
Gateway of last resort is not set
170.12.0.0/24 is subnetted, 1 subnets
D EX 170.12.7.0 [170/2169856] via 129.186.65.5, 06:33:20, Serial1/1
D EX 192.168.8.0/24 [170/2169856] via 129.186.65.5, 06:33:20, Serial1/1
D EX 192.168.9.0/24 [170/2169856] via 129.186.65.5, 06:33:20, Serial1/1
D EX 192.168.10.0/24 [170/2169856] via 129.186.65.5, 06:33:20, Serial1/1
D EX 192.168.4.0/24 [170/2169856] via 129.186.65.5, 06:33:20, Serial1/1
129.186.0.0/16 is variably subnetted, 6 subnets, 2 masks
D 129.186.54.0/24 [90/2172416] via 129.186.65.5, 11:08:53, Serial1/1
D 129.186.45.0/24 [90/297756416] via 129.186.65.5, 11:08:53, Serial1/1
D 129.186.35.0/24 [90/2172416] via 129.186.65.5, 11:08:53, Serial1/1
D 129.186.24.0/24 [90/2681856] via 129.186.65.5, 11:08:53, Serial1/1
D EX 129.186.23.0/24 [170/2169856] via 129.186.65.5, 06:33:21, Serial1/1
C 129.186.65.4/30 is directly connected, Serial1/1
D EX 192.168.5.0/24 [170/2169856] via 129.186.65.5, 06:33:22, Serial1/1
160.5.0.0/24 is subnetted, 1 subnets
C 160.5.1.0 is directly connected, FastEthernet0/1
10.0.0.0/24 is subnetted, 4 subnets
D EX 10.7.7.0 [170/2169856] via 129.186.65.5, 06:33:22, Serial1/1
D EX 10.5.5.0 [170/2169856] via 129.186.65.5, 06:33:22, Serial1/1
D EX 10.4.4.0 [170/297756416] via 129.186.65.5, 08:43:04, Serial1/1
D EX 10.3.3.0 [170/2169856] via 129.186.65.5, 06:33:22, Serial1/1
D EX 192.168.6.0/24 [170/2169856] via 129.186.65.5, 06:33:22, Serial1/1
D EX 192.168.7.0/24 [170/2169856] via 129.186.65.5, 06:33:22, Serial1/1
D EX 192.168.0.0/24 [170/2169856] via 129.186.65.5, 06:33:22, Serial1/1
D EX 192.168.1.0/24 [170/2169856] via 129.186.65.5, 06:33:22, Serial1/1
D EX 192.168.2.0/24 [170/2169856] via 129.186.65.5, 06:33:22, Serial1/1
180.1.0.0/24 is subnetted, 1 subnets
D 180.1.40.0 [90/297758976] via 129.186.65.5, 08:43:04, Serial1/1
D EX 192.168.3.0/24 [170/2169856] via 129.186.65.5, 06:33:24, Serial1/1
config t
int s0/0
ip authentication mode eigrp 10 md5
ip authentication key chain eigrp 10 XXXXXX
key chain XXXXXX
key 1
key-string cisco
accespt-lifetime 8:000:00 1 jan 1993 infinite
send lifetime 8:000:00 1 jan 1993 infinite