现象:
从SW1上ping130.131.12.254和150.131.12.254,当把R3关机时,R4成为master
1、此时如果R4上接了pc且为开机状态,那么130.131.12.254和150.131.12.254可以一直ping通
2、此时如果R4没有接pc或者pc是关机状态,过几秒vlanif10和vlanif20就会从up状态变为down状态,同时master会变为Initialize状态,然后130.131.12.254和150.131.12.254就一直ping不通
问题:
因为vlanif接口状态up变为down,使得master变为Initialize状态,导致网关不通,有办法让vlanif接口一直up的吗?
SW1:
interface Vlan-interface1
ip address 1.1.1.1 255.255.255.0
#
interface GigabitEthernet1/0/47
port link-mode route
ip address 172.16.1.1 255.255.255.252
#
interface GigabitEthernet1/0/48
port link-mode route
ip address 172.16.1.5 255.255.255.252
#
ospf 1 router-id 1.1.1.1
area 0.0.0.0
network 1.1.1.0 0.0.0.255
network 172.16.1.0 0.0.0.3
network 172.16.1.4 0.0.0.3
R1:
interface LoopBack0
ip address 1.1.2.1 255.255.255.255
#
interface GigabitEthernet6/0
port link-mode route
ip address 172.16.1.2 255.255.255.252
#
interface GigabitEthernet6/1
port link-mode route
ip address 145.131.12.1 255.255.255.252
#
ospf 1 router-id 1.1.2.1
area 0.0.0.0
network 145.131.12.0 0.0.0.3
network 172.16.1.0 0.0.0.3
R2:
interface LoopBack0
ip address 1.1.2.2 255.255.255.255
#
interface GigabitEthernet6/0
port link-mode route
ip address 172.16.1.6 255.255.255.252
#
interface GigabitEthernet6/1
port link-mode route
ip address 146.131.12.1 255.255.255.252
#
ospf 1 router-id 1.1.2.2
area 0.0.0.0
network 146.131.12.0 0.0.0.3
network 172.16.1.4 0.0.0.3
R3:
interface Vlan-interface10
ip address 130.131.12.252 255.255.255.0
vrrp vrid 10 virtual-ip 130.131.12.254
vrrp vrid 10 priority 120
#
interface Vlan-interface20
ip address 150.131.12.252 255.255.255.0
vrrp vrid 20 virtual-ip 150.131.12.254
#
interface GigabitEthernet6/0
port link-mode route
ip address 145.131.12.2 255.255.255.252
#
interface GigabitEthernet0/0
port link-mode bridge
port access vlan 10
#
interface GigabitEthernet0/1
port link-mode bridge
port access vlan 10
#
interface GigabitEthernet0/2
port link-mode bridge
port access vlan 10
#
interface GigabitEthernet5/0
port link-mode bridge
port access vlan 20
#
interface GigabitEthernet5/1
port link-mode bridge
port access vlan 20
#
interface GigabitEthernet6/1
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 10 20
#
ospf 1 router-id 145.131.12.2
area 0.0.0.0
network 130.131.12.0 0.0.0.255
network 145.131.12.0 0.0.0.3
network 150.131.12.0 0.0.0.255
R4:
interface Vlan-interface10
ip address 130.131.12.253 255.255.255.0
vrrp vrid 10 virtual-ip 130.131.12.254
#
interface Vlan-interface20
ip address 150.131.12.253 255.255.255.0
vrrp vrid 20 virtual-ip 150.131.12.254
vrrp vrid 20 priority 120
#
interface GigabitEthernet6/0
port link-mode route
ip address 146.131.12.2 255.255.255.252
#
interface GigabitEthernet0/0
port link-mode bridge
port access vlan 10
#
interface GigabitEthernet0/1
port link-mode bridge
port access vlan 10
#
interface GigabitEthernet0/2
port link-mode bridge
port access vlan 10
#
interface GigabitEthernet5/0
port link-mode bridge
port access vlan 20
#
interface GigabitEthernet5/1
port link-mode bridge
port access vlan 20
#
interface GigabitEthernet6/1
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 10 20
#
ospf 1 router-id 146.131.12.2
area 0.0.0.0
network 130.131.12.0 0.0.0.255
network 146.131.12.0 0.0.0.3
network 150.131.12.0 0.0.0.255
(0)
最佳答案
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论