您的位置:首页 > 其它

OSPF、EIGRP、RIP、静态路由的重分布综合试验

2011-12-30 21:17 330 查看
OSPF、EIGRP、RIP、静态路由的重分布综合试验





.net文件就不发了,简单的直连。

看下R2、R4、R5的sh run文件和路由
R2的核心配置文件
interface FastEthernet0/0

ip address 192.168.1.2 255.255.255.0

duplex auto

speed auto

!

interface FastEthernet0/1

ip address 192.168.2.1 255.255.255.0

duplex auto

speed auto

!

router ospf 100

log-adjacency-changes

redistribute rip subnets

network 192.168.2.0 0.0.0.255 area 0

!

router rip

redistribute ospf 100

network 192.168.1.0

default-metric 2
R4的核心配置
interface FastEthernet0/0

ip address 192.168.3.2 255.255.255.0

duplex auto

speed auto

!

interface FastEthernet0/1

ip address 192.168.4.1 255.255.255.0

duplex auto

speed auto

!

router eigrp 100

redistribute ospf 100

network 192.168.4.0

default-metric 1000 10 1 255 1500

auto-summary

!

router ospf 100

log-adjacency-changes

redistribute eigrp 100 subnets

network 192.168.3.0 0.0.0.255 area 0

default-metric 64
R5的核心配置
interface FastEthernet0/0

ip address 192.168.5.1 255.255.255.0

duplex auto

speed auto

!

interface FastEthernet0/1

ip address 192.168.4.2 255.255.255.0

duplex auto

speed auto

!

router eigrp 100

network 6.6.6.6 0.0.0.0

network 192.168.4.0

network 192.168.5.0

auto-summary

!

router ospf 100

log-adjacency-changes

no auto-cost

!

ip classless

ip route 6.6.6.6 255.255.255.255 FastEthernet0/0
R2的路由表
R 1.0.0.0/8 [120/1] via 192.168.1.1, 00:00:26, FastEthernet0/0

6.0.0.0/32 is subnetted, 1 subnets

O E2 6.6.6.6 [110/64] via 192.168.2.2, 00:10:28, FastEthernet0/1

O E2 192.168.4.0/24 [110/64] via 192.168.2.2, 00:36:14, FastEthernet0/1

O E2 192.168.5.0/24 [110/64] via 192.168.2.2, 00:09:24, FastEthernet0/1

C 192.168.1.0/24 is directly connected, FastEthernet0/0

C 192.168.2.0/24 is directly connected, FastEthernet0/1

O 192.168.3.0/24 [110/2] via 192.168.2.2, 00:37:01, FastEthernet0/1
R4的路由表
O E2 1.0.0.0/8 [110/20] via 192.168.3.1, 00:37:36, FastEthernet0/0

6.0.0.0/32 is subnetted, 1 subnets

D 6.6.6.6 [90/30720] via 192.168.4.2, 00:11:03, FastEthernet0/1

C 192.168.4.0/24 is directly connected, FastEthernet0/1

D 192.168.5.0/24 [90/30720] via 192.168.4.2, 00:09:59, FastEthernet0/1

O E2 192.168.1.0/24 [110/20] via 192.168.3.1, 00:37:36, FastEthernet0/0

O 192.168.2.0/24 [110/2] via 192.168.3.1, 00:37:36, FastEthernet0/0

C 192.168.3.0/24 is directly connected, FastEthernet0/0
R5的路由表
D EX 1.0.0.0/8 [170/2565120] via 192.168.4.1, 00:36:35, FastEthernet0/1

6.0.0.0/32 is subnetted, 1 subnets

S 6.6.6.6 is directly connected, FastEthernet0/0

C 192.168.4.0/24 is directly connected, FastEthernet0/1

C 192.168.5.0/24 is directly connected, FastEthernet0/0

D EX 192.168.1.0/24 [170/2565120] via 192.168.4.1, 00:36:35, FastEthernet0/1

D EX 192.168.2.0/24 [170/2565120] via 192.168.4.1, 00:36:35, FastEthernet0/1

D EX 192.168.3.0/24 [170/2565120] via 192.168.4.1, 00:36:35, FastEthernet0/1
本文出自 “网络技术交流” 博客,请务必保留此出处http://tianfuhua.blog.51cto.com/4154152/755008
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: