设为首页收藏本站language 语言切换
查看: 3090|回复: 9
收起左侧

使用web-iou模拟hsrp,pcping不通虚拟网关

[复制链接]
发表于 2015-1-27 16:23:09 | 显示全部楼层 |阅读模式
本帖最后由 125004763 于 2015-1-27 16:41 编辑

这是拓扑,以下是S1,S2,S3,S4,C1的配置,sh run的结果,请大侠指点
S1#sh run
spanning-tree mode rapid-pvst
spanning-tree extend system-id
spanning-tree vlan 10 priority 24576
spanning-tree vlan 20 priority 28672
!
vlan internal allocation policy ascending
interface Ethernet0/0
switchport trunk encapsulation dot1q
switchport mode trunk
duplex auto
!
interface Ethernet0/1
switchport trunk encapsulation dot1q
switchport mode trunk
duplex auto
!
interface Ethernet0/2
switchport trunk encapsulation dot1q
switchport mode trunk
duplex auto
!
interface Ethernet0/3
no switchport
ip address 192.168.3.1 255.255.255.0
duplex auto
!
interface Vlan1
no ip address
shutdown
!
interface Vlan10
ip address 192.168.1.1 255.255.255.0
standby 10 ip 192.168.1.253
standby 10 priority 110
standby 10 preempt
!         
interface Vlan20
ip address 192.168.2.1 255.255.255.0
standby 20 ip 192.168.2.253
standby 20 priority 90
standby 20 preempt
!
router ospf 1
network 192.168.1.0 0.0.0.255 area 0
network 192.168.2.0 0.0.0.255 area 0
network 192.168.3.0 0.0.0.255 area 0

S2# sh run
spanning-tree mode rapid-pvst
spanning-tree extend system-id
spanning-tree vlan 10 priority 28672
spanning-tree vlan 20 priority 24576
!
vlan internal allocation policy ascending
!
interface Ethernet0/0
switchport trunk encapsulation dot1q
switchport mode trunk
duplex auto
!
interface Ethernet0/1
switchport trunk encapsulation dot1q
switchport mode trunk
duplex auto
!
interface Ethernet0/2
switchport trunk encapsulation dot1q
switchport mode trunk
duplex auto
!
interface Ethernet0/3
no switchport
ip address 192.168.4.1 255.255.255.0
duplex auto
!
interface Vlan1
no ip address
shutdown
!
interface Vlan10
ip address 192.168.1.2 255.255.255.0
standby 10 ip 192.168.1.253
standby 10 priority 90
standby 10 preempt
!
interface Vlan20
ip address 192.168.2.2 255.255.255.0
standby 20 ip 192.168.2.253
standby 20 priority 110
standby 20 preempt
!
router ospf 1
network 192.168.1.0 0.0.0.255 area 0
network 192.168.2.0 0.0.0.255 area 0
network 192.168.4.0 0.0.0.255 area 0
!

S3#sh run

spanning-tree mode pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
interface Ethernet0/0
switchport trunk encapsulation dot1q
switchport mode trunk
duplex auto
!
interface Ethernet0/1
switchport trunk encapsulation dot1q
switchport mode trunk
duplex auto
!         
interface Ethernet0/2
switchport access vlan 10
switchport mode access
duplex auto
!
interface Ethernet0/3
duplex auto
!
interface Vlan1
no ip address

S4#sh run
spanning-tree mode pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
interface Ethernet0/0
switchport trunk encapsulation dot1q
switchport mode trunk
duplex auto
!
interface Ethernet0/1
switchport trunk encapsulation dot1q
switchport mode trunk
duplex auto
!         
interface Ethernet0/2
switchport access vlan 20
switchport mode access
duplex auto
!
interface Ethernet0/3
duplex auto
!
interface Vlan1
no ip address
!

C1#sh run
!
interface Ethernet0/0
ip address 192.168.1.3 255.255.255.0
!
interface Ethernet0/1
no ip address
shutdown
!
interface Ethernet0/2
no ip address
shutdown
!
interface Ethernet0/3
no ip address
shutdown
!
ip default-gateway 192.168.1.253
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
ip route 0.0.0.0 0.0.0.0 Ethernet0/0

拓扑

拓扑
 楼主| 发表于 2015-1-27 16:24:04 | 显示全部楼层
S1#sh run
Building configuration...

Current configuration : 1501 bytes
!
! Last configuration change at 08:55:34 CET Tue Jan 27 2015
!
version 15.0
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname S1
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
clock timezone CET 1
!
ip cef
no ip domain-lookup
!
no ipv6 cef
!
!
!
spanning-tree mode rapid-pvst
spanning-tree extend system-id
spanning-tree vlan 10 priority 24576
spanning-tree vlan 20 priority 28672
!
vlan internal allocation policy ascending
!
!
!
!
!
!
!
interface Ethernet0/0
switchport trunk encapsulation dot1q
switchport mode trunk
duplex auto
!
interface Ethernet0/1
switchport trunk encapsulation dot1q
switchport mode trunk
duplex auto
!
interface Ethernet0/2
switchport trunk encapsulation dot1q
switchport mode trunk
duplex auto
!
interface Ethernet0/3
no switchport
ip address 192.168.3.1 255.255.255.0
duplex auto
!
interface Vlan1
no ip address
shutdown
!
interface Vlan10
ip address 192.168.1.1 255.255.255.0
standby 10 ip 192.168.1.253
standby 10 priority 110
standby 10 preempt
!         
interface Vlan20
ip address 192.168.2.1 255.255.255.0
standby 20 ip 192.168.2.253
standby 20 priority 90
standby 20 preempt
!
router ospf 1
network 192.168.1.0 0.0.0.255 area 0
network 192.168.2.0 0.0.0.255 area 0
network 192.168.3.0 0.0.0.255 area 0
!
!
ip forward-protocol nd
no ip http server
!
!
!
!
!
control-plane
!
!
line con 0
logging synchronous
line aux 0
line vty 0 4
login
transport input all
!
end
沙发 2015-1-27 16:24:04 回复 收起回复
回复 支持 反对

使用道具 举报

 楼主| 发表于 2015-1-27 16:24:33 | 显示全部楼层
S2#sh run
Building configuration...

Current configuration : 1481 bytes
!
! Last configuration change at 08:59:08 CET Tue Jan 27 2015
!
version 15.0
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname S2
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
clock timezone CET 1
!
ip cef
!
no ipv6 cef
!         
!
!
spanning-tree mode rapid-pvst
spanning-tree extend system-id
spanning-tree vlan 10 priority 28672
spanning-tree vlan 20 priority 24576
!
vlan internal allocation policy ascending
!
!
!
!
!
!
!
interface Ethernet0/0
switchport trunk encapsulation dot1q
switchport mode trunk
duplex auto
!
interface Ethernet0/1
switchport trunk encapsulation dot1q
switchport mode trunk
duplex auto
!
interface Ethernet0/2
switchport trunk encapsulation dot1q
switchport mode trunk
duplex auto
!
interface Ethernet0/3
no switchport
ip address 192.168.4.1 255.255.255.0
duplex auto
!
interface Vlan1
no ip address
shutdown
!
interface Vlan10
ip address 192.168.1.2 255.255.255.0
standby 10 ip 192.168.1.253
standby 10 priority 90
standby 10 preempt
!
interface Vlan20
ip address 192.168.2.2 255.255.255.0
standby 20 ip 192.168.2.253
standby 20 priority 110
standby 20 preempt
!
router ospf 1
network 192.168.1.0 0.0.0.255 area 0
network 192.168.2.0 0.0.0.255 area 0
network 192.168.4.0 0.0.0.255 area 0
!
!
ip forward-protocol nd
no ip http server
!
!
!
!
!
control-plane
!
!
line con 0
logging synchronous
line aux 0
line vty 0 4
login
transport input all
!
end
板凳 2015-1-27 16:24:33 回复 收起回复
回复 支持 反对

使用道具 举报

 楼主| 发表于 2015-1-27 16:25:27 | 显示全部楼层
S3#sh run
Building configuration...

Current configuration : 937 bytes
!
! Last configuration change at 08:59:14 CET Tue Jan 27 2015
!
version 15.0
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname S3
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
clock timezone CET 1
!
ip cef
!
no ipv6 cef
!         
!
!
spanning-tree mode pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
!
!
!
!
!
!
interface Ethernet0/0
switchport trunk encapsulation dot1q
switchport mode trunk
duplex auto
!
interface Ethernet0/1
switchport trunk encapsulation dot1q
switchport mode trunk
duplex auto
!         
interface Ethernet0/2
switchport access vlan 10
switchport mode access
duplex auto
!
interface Ethernet0/3
duplex auto
!
interface Vlan1
no ip address
!
!
ip forward-protocol nd
no ip http server
!
!
!
!
!
control-plane
!
!
line con 0
logging synchronous
line aux 0
line vty 0 4
login
transport input all
!
end
地板 2015-1-27 16:25:27 回复 收起回复
回复 支持 反对

使用道具 举报

 楼主| 发表于 2015-1-27 16:26:07 | 显示全部楼层

这是主要的配置

本帖最后由 125004763 于 2015-1-27 16:33 编辑


分别为S1,S2,S3,S4,C1
5# 2015-1-27 16:26:07 回复 收起回复
回复 支持 反对

使用道具 举报

 楼主| 发表于 2015-1-27 16:26:36 | 显示全部楼层
C1#sh run
Building configuration...

Current configuration : 951 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname C1
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
clock timezone CET 1
mmi polling-interval 60
no mmi auto-configure
no mmi pvc
mmi snmp-timeout 180
ip source-route
!
!
!         
!
ip cef
no ipv6 traffic interface-statistics
no ipv6 cef
!
multilink bundle-name authenticated
!
!
!
!
!
!
!
!
!
redundancy
!
!
!
!
!
!
!         
!
!
interface Ethernet0/0
ip address 192.168.1.3 255.255.255.0
!
interface Ethernet0/1
no ip address
shutdown
!
interface Ethernet0/2
no ip address
shutdown
!
interface Ethernet0/3
no ip address
shutdown
!
ip default-gateway 192.168.1.253
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
ip route 0.0.0.0 0.0.0.0 Ethernet0/0
!
!
!
!
!
!
!
control-plane
!
!
line con 0
logging synchronous
line aux 0
line vty 0 4
login
!
exception data-corruption buffer truncate
end
6# 2015-1-27 16:26:36 回复 收起回复
回复 支持 反对

使用道具 举报

 楼主| 发表于 2015-1-27 16:32:01 | 显示全部楼层
S1#sh run
Building configuration...

Current configuration : 1501 bytes
!
! Last configuration change at 08:55:34 CET Tue Jan 27 2015
!
version 15.0
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname S1
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
clock timezone CET 1
!
ip cef
no ip domain-lookup
!
no ipv6 cef
!
!
!
spanning-tree mode rapid-pvst
spanning-tree extend system-id
spanning-tree vlan 10 priority 24576
spanning-tree vlan 20 priority 28672
!
vlan internal allocation policy ascending
!
!
!
!
!
!
!
interface Ethernet0/0
switchport trunk encapsulation dot1q
switchport mode trunk
duplex auto
!
interface Ethernet0/1
switchport trunk encapsulation dot1q
switchport mode trunk
duplex auto
!
interface Ethernet0/2
switchport trunk encapsulation dot1q
switchport mode trunk
duplex auto
!
interface Ethernet0/3
no switchport
ip address 192.168.3.1 255.255.255.0
duplex auto
!
interface Vlan1
no ip address
shutdown
!
interface Vlan10
ip address 192.168.1.1 255.255.255.0
standby 10 ip 192.168.1.253
standby 10 priority 110
standby 10 preempt
!         
interface Vlan20
ip address 192.168.2.1 255.255.255.0
standby 20 ip 192.168.2.253
standby 20 priority 90
standby 20 preempt
!
router ospf 1
network 192.168.1.0 0.0.0.255 area 0
network 192.168.2.0 0.0.0.255 area 0
network 192.168.3.0 0.0.0.255 area 0
!
!
ip forward-protocol nd
no ip http server
!
!
!
!
!
control-plane
!
!
line con 0
logging synchronous
line aux 0
line vty 0 4
login
transport input all
!
end




S2#sh run
Building configuration...

Current configuration : 1481 bytes
!
! Last configuration change at 08:59:08 CET Tue Jan 27 2015
!
version 15.0
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname S2
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
clock timezone CET 1
!
ip cef
!
no ipv6 cef
!         
!
!
spanning-tree mode rapid-pvst
spanning-tree extend system-id
spanning-tree vlan 10 priority 28672
spanning-tree vlan 20 priority 24576
!
vlan internal allocation policy ascending
!
!
!
!
!
!
!
interface Ethernet0/0
switchport trunk encapsulation dot1q
switchport mode trunk
duplex auto
!
interface Ethernet0/1
switchport trunk encapsulation dot1q
switchport mode trunk
duplex auto
!
interface Ethernet0/2
switchport trunk encapsulation dot1q
switchport mode trunk
duplex auto
!
interface Ethernet0/3
no switchport
ip address 192.168.4.1 255.255.255.0
duplex auto
!
interface Vlan1
no ip address
shutdown
!
interface Vlan10
ip address 192.168.1.2 255.255.255.0
standby 10 ip 192.168.1.253
standby 10 priority 90
standby 10 preempt
!
interface Vlan20
ip address 192.168.2.2 255.255.255.0
standby 20 ip 192.168.2.253
standby 20 priority 110
standby 20 preempt
!
router ospf 1
network 192.168.1.0 0.0.0.255 area 0
network 192.168.2.0 0.0.0.255 area 0
network 192.168.4.0 0.0.0.255 area 0
!
!
ip forward-protocol nd
no ip http server
!
!
!
!
!
control-plane
!
!
line con 0
logging synchronous
line aux 0
line vty 0 4
login
transport input all
!
end





S3#sh run
Building configuration...

Current configuration : 937 bytes
!
! Last configuration change at 08:59:14 CET Tue Jan 27 2015
!
version 15.0
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname S3
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
clock timezone CET 1
!
ip cef
!
no ipv6 cef
!         
!
!
spanning-tree mode pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
!
!
!
!
!
!
interface Ethernet0/0
switchport trunk encapsulation dot1q
switchport mode trunk
duplex auto
!
interface Ethernet0/1
switchport trunk encapsulation dot1q
switchport mode trunk
duplex auto
!         
interface Ethernet0/2
switchport access vlan 10
switchport mode access
duplex auto
!
interface Ethernet0/3
duplex auto
!
interface Vlan1
no ip address
!
!
ip forward-protocol nd
no ip http server
!
!
!
!
!
control-plane
!
!
line con 0
logging synchronous
line aux 0
line vty 0 4
login
transport input all
!
end






S4#sh run
Building configuration...

Current configuration : 937 bytes
!
! Last configuration change at 08:59:21 CET Tue Jan 27 2015
!
version 15.0
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname S4
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
clock timezone CET 1
!
ip cef
!
no ipv6 cef
!         
!
!
spanning-tree mode pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
!
!
!
!
!
!
interface Ethernet0/0
switchport trunk encapsulation dot1q
switchport mode trunk
duplex auto
!
interface Ethernet0/1
switchport trunk encapsulation dot1q
switchport mode trunk
duplex auto
!         
interface Ethernet0/2
switchport access vlan 20
switchport mode access
duplex auto
!
interface Ethernet0/3
duplex auto
!
interface Vlan1
no ip address
!
!
ip forward-protocol nd
no ip http server
!
!
!
!
!
control-plane
!
!
line con 0
logging synchronous
line aux 0
line vty 0 4
login
transport input all
!
end





C1#sh run
Building configuration...

Current configuration : 951 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname C1
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
clock timezone CET 1
mmi polling-interval 60
no mmi auto-configure
no mmi pvc
mmi snmp-timeout 180
ip source-route
!
!
!         
!
ip cef
no ipv6 traffic interface-statistics
no ipv6 cef
!
multilink bundle-name authenticated
!
!
!
!
!
!
!
!
!
redundancy
!
!
!
!
!
!
!         
!
!
interface Ethernet0/0
ip address 192.168.1.3 255.255.255.0
!
interface Ethernet0/1
no ip address
shutdown
!
interface Ethernet0/2
no ip address
shutdown
!
interface Ethernet0/3
no ip address
shutdown
!
ip default-gateway 192.168.1.253
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
ip route 0.0.0.0 0.0.0.0 Ethernet0/0
!
!
!
!
!
!
!
control-plane
!
!
line con 0
logging synchronous
line aux 0
line vty 0 4
login
!
exception data-corruption buffer truncate
end
7# 2015-1-27 16:32:01 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2015-1-27 16:39:57 | 显示全部楼层
iou 作HSRP实验有bug,要用GNS 的ios来做
8# 2015-1-27 16:39:57 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2015-1-27 16:41:01 | 显示全部楼层
web iou 做hsrp 不支持ping  HSRP address not pingable feature not supported
9# 2015-1-27 16:41:01 回复 收起回复
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2025-2-3 15:04 , Processed in 0.064862 second(s), 12 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

快速回复 返回顶部 返回列表