说明:在R1,R2和R3之间运行OSPF,路由器R3和R4之间运行RIPv2,其中路由器上的
R1上的四个回环地址是为了在R2上进行汇总,路由器R4上的4个地址是为了在R3进行汇总
同时由于R3是边界路由器,所以使用再分布功能。
实施步骤
1 配置个接口路由器的地址
2 配置个路由器进程
第1配置各个接口路由器地址
R1
hostname R1
interface s1/1
ip add 192.168.12.1 255.255.255.0
no shut
interface loopback0
ip add 1.1.4.1 255.255.255.0
interface loopback1
ip add 1.1.5.1 255.255.255.0
interface loopback2
ip add 1.1.6.1 255.255.255.0
interface loopback3
ip add 1.1.7.1 255.255.255.0
R2
hostname R2
interface s1/0
clock rate 64000
ip add 192.168.12.2 255.255.255.0
no shut
interface s1/1
clock rate 64000
ip add 192.168.23.1 255.255.255.0
no shut
R3
hostname R3
interface s1/0
ip add 192.168.23.2 255.255.255.0
no shut
interface s1/2
ip add 192.168.34.1 255.255.255.0
no shut
R4
hostname R4
interface s1/3
ip add 192.168.34.2 255.255.255.0
no shut
interface loopback0
ip add 4.4.1.1 255.255.255.0
interface loopback1
ip add 4.4.2.1 255.255.255.0
interface loopback2
ip add 4.4.3.1 255.255.255.0
interface loopback3
ip add 4.4.4.1 255.255.255.0
第2步配置各个路由进程
R1
router ospf 2001
router-id 1.1.1.1
network 192.168.12.0 0.0.0.255 area 1
network 1.1.4.0 0.0.0.255 area 1
R2
router ospf 2001
router-id 2.2.2.2
network 192.168.12.0 0.0.0.255 area 1
network 192.168.23.0 0.0.0.255 area 0
network 2.2.2.2.0 0.0.0.255 area 0
area 1 range 1.1.4.0 255.255.252.0
R3
router ospf 2001
router-id 3.3.3.3
network 3.3.3.0 0.0.0.255 area 0
network 192.168.23.0 0.0.0.255 area 0
summary-address 4.4.0.0 255.255.252.0
redistribute rip subnets tag 5
router rip
version 2
no auto-summary
network 192.168.34.0
redistribute ospf 2001
default-metric 2
R4
router rip
version 2
no auto-summary
network 4.0.0.0
network 192.168.24.0
阅读(1120) | 评论(0) | 转发(0) |