免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2059 | 回复: 0
打印 上一主题 下一主题

OSPF问题 [复制链接]

论坛徽章:
0
1 [报告]
发表于 2011-04-08 20:58 |显示全部楼层
R1和R6上分别做好Virtual link后,所有路由器的配置如下:



R1#sh run

Building configuration...

Current configuration : 864 bytes

!

version 12.4

no service timestamps log datetime msec

no service timestamps debug datetime msec

no service password-encryption

!

hostname R1

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

interface FastEthernet0/0

no ip address

duplex auto

speed auto

shutdown

!

interface FastEthernet0/1

no ip address

duplex auto

speed auto

shutdown

!

interface Serial0/0/0

ip address 12.1.1.1 255.255.255.0

clock rate 64000

!

interface Serial0/0/1

ip address 15.1.1.1 255.255.255.0

!

interface Serial0/1/0

ip address 16.1.1.1 255.255.255.0

!

interface Serial0/1/1

no ip address

shutdown

!

interface Vlan1

no ip address

shutdown

!

router ospf 1

log-adjacency-changes

area 1 virtual-link 67.1.1.6

network 12.1.1.0 0.0.0.255 area 0

network 15.1.1.0 0.0.0.255 area 1

network 16.1.1.0 0.0.0.255 area 1

!

ip classless

!

!

!

!

!

!

!

line con 0

line vty 0 4

login

!

!

!

end



R2#sh run

Building configuration...

Current configuration : 852 bytes

!

version 12.4

no service timestamps log datetime msec

no service timestamps debug datetime msec

no service password-encryption

!

hostname R2

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

interface FastEthernet0/0

no ip address

duplex auto

speed auto

shutdown

!

interface FastEthernet0/1

no ip address

duplex auto

speed auto

shutdown

!

interface Serial0/0/0

ip address 12.1.1.2 255.255.255.0

!

interface Serial0/0/1

ip address 23.1.1.2 255.255.255.0

clock rate 64000

!

interface Serial0/1/0

ip address 24.1.1.2 255.255.255.0

clock rate 64000

!

interface Serial0/1/1

no ip address

shutdown

!

interface Vlan1

no ip address

shutdown

!

router ospf 1

log-adjacency-changes

network 12.1.1.0 0.0.0.255 area 0

network 23.1.1.0 0.0.0.255 area 3

network 24.1.1.0 0.0.0.255 area 3

!

ip classless

!

!

!

!

!

!

!

line con 0

line vty 0 4

login

!

!

!

end



R3#sh run

Building configuration...

Current configuration : 663 bytes

!

version 12.4

no service timestamps log datetime msec

no service timestamps debug datetime msec

no service password-encryption

!

hostname R3

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

interface FastEthernet0/0

no ip address

duplex auto

speed auto

shutdown

!

interface FastEthernet0/1

no ip address

duplex auto

speed auto

shutdown

!

interface Serial0/0/0

ip address 23.1.1.3 255.255.255.0

!

interface Serial0/0/1

no ip address

shutdown

!

interface Vlan1

no ip address

shutdown

!

router ospf 1

log-adjacency-changes

network 23.1.1.0 0.0.0.255 area 3

network 24.1.1.0 0.0.0.255 area 3

!

ip classless

!

!

!

!

!

!

!

line con 0

line vty 0 4

login

!

!

!

end



R4#sh run

Building configuration...

Current configuration : 628 bytes

!

version 12.4

no service timestamps log datetime msec

no service timestamps debug datetime msec

no service password-encryption

!

hostname R4

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

interface FastEthernet0/0

no ip address

duplex auto

speed auto

shutdown

!

interface FastEthernet0/1

no ip address

duplex auto

speed auto

shutdown

!

interface Serial0/0/0

ip address 24.1.1.4 255.255.255.0

!

interface Serial0/0/1

no ip address

shutdown

!

interface Vlan1

no ip address

shutdown

!

router ospf 1

log-adjacency-changes

network 24.1.1.0 0.0.0.255 area 3

!

ip classless

!

!

!

!

!

!

!

line con 0

line vty 0 4

login

!

!

!

end



R5#sh run

Building configuration...

Current configuration : 646 bytes

!

version 12.4

no service timestamps log datetime msec

no service timestamps debug datetime msec

no service password-encryption

!

hostname R5

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

interface FastEthernet0/0

no ip address

duplex auto

speed auto

shutdown

!

interface FastEthernet0/1

no ip address

duplex auto

speed auto

shutdown

!

interface Serial0/0/0

ip address 15.1.1.5 255.255.255.0

clock rate 64000

!

interface Serial0/0/1

no ip address

shutdown

!

interface Vlan1

no ip address

shutdown

!

router ospf 1

log-adjacency-changes

network 15.1.1.0 0.0.0.255 area 1

!

ip classless

!

!

!

!

!

!

!

line con 0

line vty 0 4

login

!

!

!

end



R6#sh run

Building configuration...

Current configuration : 739 bytes

!

version 12.4

no service timestamps log datetime msec

no service timestamps debug datetime msec

no service password-encryption

!

hostname R6

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

interface FastEthernet0/0

no ip address

duplex auto

speed auto

shutdown

!

interface FastEthernet0/1

no ip address

duplex auto

speed auto

shutdown

!

interface Serial0/0/0

ip address 16.1.1.6 255.255.255.0

clock rate 64000

!

interface Serial0/0/1

ip address 67.1.1.6 255.255.255.0

clock rate 64000

!

interface Vlan1

no ip address

shutdown

!

router ospf 1

log-adjacency-changes

area 1 virtual-link 16.1.1.1

network 16.1.1.0 0.0.0.255 area 1

network 67.1.1.0 0.0.0.255 area 2

!

ip classless

!

!

!

!

!

!

!

line con 0

line vty 0 4

login

!

!

!

end



R7#sh run

Building configuration...

Current configuration : 628 bytes

!

version 12.4

no service timestamps log datetime msec

no service timestamps debug datetime msec

no service password-encryption

!

hostname R7

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

interface FastEthernet0/0

no ip address

duplex auto

speed auto

shutdown

!

interface FastEthernet0/1

no ip address

duplex auto

speed auto

shutdown

!

interface Serial0/0/0

ip address 67.1.1.7 255.255.255.0

!

interface Serial0/0/1

no ip address

shutdown

!

interface Vlan1

no ip address

shutdown

!

router ospf 1

log-adjacency-changes

network 67.1.1.0 0.0.0.255 area 2

!

ip classless

!

!

!

!

!

!

!

line con 0

line vty 0 4

login

!

!

!

end



现在的情况是R7无法PING通R3和R4。不知道是不是虚拟机的问题呢?                                                       
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP