Saturday, June 1, 2013

Configuration Redistribute OSPF - RIPv2

Step 1: Config Router R1.

Router> en
Router# conf t
Router(config)# hostname R1
config)# no ip domain-lookup
config)#int lo0
config-if)#ip addr 192.168.1.1 255.255.255.0
config-if)#exit
config)#int s0/1
config-if)#ip addr 192.168.2.1 255.255.255.0
config-if)#clock rate 64000 ← DCE
config-if)#no shut
config-if)#exit
Step 2: configuration on Router R2.
Router> en Router# conf t
Router(config)# hostname R2
config)# no ip domain-lookup
config)#int s0/0
config-if)#ip addr 192.168.2.2 255.255.255.0
config-if)#no shut
config-if)#exit
config)#int s0/1
config-if)#ip addr 192.168.3.1 255.255.255.0
config-if)#clock rate 64000 ← DCE
config-if)#no shut
config-if)#exit
Step 3: configuration on Router R3.
Router> en Router# conf t
Router(config)# hostname R3
config)# no ip domain-lookup
config)#int s0/0
config-if)#ip addr 192.168.3.2 255.255.255.0
config-if)#no shut
config-if)#exit
config)#int lo0
config-if)#ip addr 192.168.4.1 255.255.255.0
config-if)#exit
Step 4: configuration RIPv2

config)#router rip
config-router)#version 2
config-router)#network 192.168.1.0
config-router)#network 192.168.2.0
config-router)#no auto-summary
config-router)#end
config)#router rip
config-router)#version 2
config-router)#network 192.168.2.0
config-router)#no auto-summary
config-router)#exit
Step 5: configuration OSPF

config)#router ospf 1
config-router)#network 192.168.3.0 0.0.0.255 area 0
config-router)#exit
config)#
config)#router ospf 1
config-router)#network 192.168.3.0 0.0.0.255 area 0
config-router)#network 192.168.4.0 0.0.0.255 area 0
config-router)#end
Step 6: Redistribute RIPv2 - OSPF

config)#router rip
config-router)#redistribute ospf 1 metric 1
config-router)#exit
config)#router ospf 1
config-router)#redistribute rip metric 1 subnets
config-router)#end
Step 7: Check iptable
– View iptable on Router R1 show ip route.
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
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
C 192.168.1.0/24 is directly connected, Loopback0
C 192.168.2.0/24 is directly connected, Serial0/1
R 192.168.3.0/24 [120/1] via 192.168.2.2, 00:00:21, Serial0/1
192.168.4.0/32 is subnetted, 1 subnets
R 192.168.4.1 [120/1] via 192.168.2.2, 00:00:21, Serial0/1
R1#
– View iptable on Router R2 show ip route.
R2#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
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 192.168.1.0/24 [120/1] via 192.168.2.1, 00:00:17, Serial0/0
C 192.168.2.0/24 is directly connected, Serial0/0
C 192.168.3.0/24 is directly connected, Serial0/1
192.168.4.0/32 is subnetted, 1 subnets
O 192.168.4.1 [110/65] via 192.168.3.2, 00:04:17, Serial0/1
R2#
– View iptable on Router R2 show ip route.
R3#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
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
O E2 192.168.1.0/24 [110/1] via 192.168.3.1, 00:00:30, Serial0/0
O E2 192.168.2.0/24 [110/1] via 192.168.3.1, 00:00:30, Serial0/0
C 192.168.3.0/24 is directly connected, Serial0/0
C 192.168.4.0/24 is directly connected, Loopback0
R3#
Step 8: Test ping:
R1#ping 192.168.3.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.3.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 2/4/6 ms
R1#ping 192.168.3.2
Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.3.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 3/6/9 ms
R1#ping 192.168.4.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.4.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 5/8/11 ms
R1#
R2#ping 192.168.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 2/4/5 ms
R2#ping 192.168.4.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.4.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/3/6 ms
R2#
R3#ping 192.168.2.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.2.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 5/7/10 ms
R3#ping 192.168.2.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.2.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 2/4/6 ms
R3#ping 192.168.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 5/7/9 ms
R3#

Phản ứng:

1 comment:

 
Blogger Gadgets