首页 > 代码库 > Ospf域间路由通信、Rip重分发配置

Ospf域间路由通信、Rip重分发配置

配置ospf域间可以互相通信,以及ospf到rip之间的通信

技术分享

1.基本配置:

R1:no ip domain lookup

 int loopback 0

 ip add 1.1.1.1 255.255.255.255

 int s0/0

 ip add 12.1.1.1 255.255.255.0

 clo ra 64000  \\配置时钟

 no sh

R2: no ip domain lookup

 int loopback 0

 ip add 2.2.2.2 255.255.255.255

 int s0/0

 ip add 12.1.1.2 255.255.255.0

 clo ra 64000  \\配置时钟

 no sh

 int s0/1

 ip add 23.1.1.2 255.255.255.0

 clo ra 64000

 no sh

R3: no ip domain lookup

int loopback 0

ip add 3.3.3.3 255.255.255.255

int s0/0

ip add 23.1.1.3 255.255.255.0

clo ra 64000  \\配置时钟

no sh

int s0/1

ip add 34.1.1.3 255.255.255.0

clo ra 64000

no sh

R4: no ip domain lookup

int loopback 0

ip add 4.4.4.4 255.255.255.255

int s0/0

ip add 34.1.1.4 255.255.255.0

clo ra 64000  \\配置时钟

no sh

int s0/1

ip add 45.1.1.4 255.255.255.0

clo ra 64000  \\配置时钟

no sh

R5: no ip domain lookup

int loopback 0

ip add 5.5.5.5 255.255.255.0

int s0/0

ip add 45.1.1.5 255.255.255.0

clo ra 64000  \\配置时钟

no sh

2.配置ospf实现域间通信

R1:router ospf 1

router-id 1.1.1.1

net 1.1.1.0 0.0.0.255 ar 1

net 12.1.1.0 0.0.0.255 ar 1

R2: router ospf 1

router-id 2.2.2.2

net 12.1.1.0 0.0.0.255 ar 1

net 2.2.2.0 0.0.0.255 ar 0

net 23.1.1.0 0.0.0.255 ar 0

R3: router ospf 1

router-id 3.3.3.3

net 23.1.1.0 0.0.0.255 ar 0

net 34.1.1.0 0.0.0.255 ar 2

net 3.3.3.0 0.0.0.255 ar 2

R4: router ospf 1

router-id 4.4.4.4

net 34.1.1.0 0.0.0.255 ar 2

net 4.4.4.4 0.0.0.255 ar 2

好了,通过以上配置,ospf域间已经可以互相通信了

查看



本文出自 “zhangzhg” 博客,请务必保留此出处http://zhangzhg.blog.51cto.com/2851373/1606204

Ospf域间路由通信、Rip重分发配置