VRRP **排错作业** 20211215
32进制 2021-12-15 21:49:17 收藏
分类专栏: 华为网络 文章标签: 华为 网络
编辑 版权
华为网络
专栏收录该内容
0 篇文章0 订阅
VRRP 排错作业
排错题:
如图所示,PC 的 IP 和网关已经配置完成。
R1 和 R2 通过 vrrp 为 PC 提供网关冗余。R1、R2、R3 运行 ospf 。 详细配置见拓扑(拓扑中已提前配置若干错误),拓扑需解压后使用华为模拟器 ensp 打
开。
目前发现 R1 和 R2 都是 vrrp 主设备(双主),且 PC 无法访问 3.3.3.3 。 请查看配置分析问题的原因( )(多选)
A R1 和 R2 vrrp vrid 不一致导致双主
B R1 和 R2 ospf 配置错误导致 PC 访问 3.3.3.3 失败。
C R3 ospf 配置错误导致 PC 无法访问 3.3.3.3
D R1 VRRP 接口跟踪配置错误导致双主。
E 接入交换机配置有误。
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-6X4hfkKS-1639576116609)(/Users/aron/Library/Application Support/typora-user-images/image-20211214211428250.png)]
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-n6lOZP9O-1639576116610)(/Users/aron/Library/Application Support/typora-user-images/image-20211214211459048.png)]
display vrrp
display vrrp
GigabitEthernet0/0/0 | Virtual Router 1
State : Master
Virtual IP : 192.168.10.1
Master IP : 192.168.10.254
PriorityRun : 105
PriorityConfig : 105
MasterPriority : 105
Preempt : YES Delay Time : 0 s
TimerRun : 1 s
TimerConfig : 1 s
Auth type : NONE
Virtual MAC : 0000-5e00-0101
Check TTL : YES
Config type : normal-vrrp
Track IF : GigabitEthernet0/0/1 Priority reduced : 10
IF state : UP
Create time : 2021-12-14 21:02:10 UTC-08:00
Last change time : 2021-12-14 21:02:28 UTC-08:00
display vrrp
GigabitEthernet0/0/0 | Virtual Router 10
State : Master
Virtual IP : 192.168.10.2
Master IP : 192.168.10.253
PriorityRun : 100
PriorityConfig : 100
MasterPriority : 100
Preempt : YES Delay Time : 0 s
TimerRun : 1 s
TimerConfig : 1 s
Auth type : NONE
Virtual MAC : 0000-5e00-010a
Check TTL : YES
Config type : normal-vrrp
Create time : 2021-12-14 21:02:13 UTC-08:00
Last change time : 2021-12-14 21:02:28 UTC-08:00
检查R1、R2配置,发现Vrrp配置:
Virtual IP配置不同
R1 和 R2 vrrp vrid 不一致导致双主
配置vrrp
<R1>sys
<R1>system-view
Enter system view, return user view with Ctrl+Z.
[R1]int g0/0/
[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]vrrp vrid 1 virt
[R1-GigabitEthernet0/0/0]vrrp vrid 1 virtual-ip 192.168.10.1
Error: The virtual IP address already exists.
[R1-GigabitEthernet0/0/0]vrrp
[R1-GigabitEthernet0/0/0]vrrp vr
[R1-GigabitEthernet0/0/0]vrrp vrid 1 pr
[R1-GigabitEthernet0/0/0]vrrp vrid 1 priority 150
[R1-GigabitEthernet0/0/0]disp vrrp
GigabitEthernet0/0/0 | Virtual Router 1
State : Master
Virtual IP : 192.168.10.1
Master IP : 192.168.10.254
PriorityRun : 150
PriorityConfig : 150
MasterPriority : 150
Preempt : YES Delay Time : 0 s
TimerRun : 1 s
TimerConfig : 1 s
Auth type : NONE
Virtual MAC : 0000-5e00-0101
Check TTL : YES
Config type : normal-vrrp
Track IF : GigabitEthernet0/0/1 Priority reduced : 10
IF state : UP
Create time : 2021-12-14 21:02:10 UTC-08:00
Last change time : 2021-12-14 21:02:28 UTC-08:00
[R2]int g0/0/0
[R2-GigabitEthernet0/0/0]dis vrrp
GigabitEthernet0/0/0 | Virtual Router 1
State : Backup
Virtual IP : 192.168.10.1
Master IP : 192.168.10.254
PriorityRun : 120
PriorityConfig : 120
MasterPriority : 150
Preempt : YES Delay Time : 0 s
TimerRun : 1 s
TimerConfig : 1 s
Auth type : NONE
Virtual MAC : 0000-5e00-0101
Check TTL : YES
Config type : normal-vrrp
Create time : 2021-12-14 21:33:12 UTC-08:00
Last change time : 2021-12-14 21:33:12 UTC-08:00
GigabitEthernet0/0/0 | Virtual Router 10
State : Master
Virtual IP : 192.168.10.2
Master IP : 192.168.10.253
PriorityRun : 100
PriorityConfig : 100
MasterPriority : 100
Preempt : YES Delay Time : 0 s
TimerRun : 1 s
TimerConfig : 1 s
Auth type : NONE
Virtual MAC : 0000-5e00-010a
Check TTL : YES
Config type : normal-vrrp
Create time : 2021-12-14 21:02:13 UTC-08:00
Last change time : 2021-12-14 21:02:28 UTC-08:00
[R2-GigabitEthernet0/0/0]
[R2-GigabitEthernet0/0/0]
[R2-GigabitEthernet0/0/0]
[R2-GigabitEthernet0/0/0]undo vrrp
[R2-GigabitEthernet0/0/0]undo vrrp6
[R2-GigabitEthernet0/0/0]undo vrrp vrid 10
[R2-GigabitEthernet0/0/0]disp vrrp
GigabitEthernet0/0/0 | Virtual Router 1
State : Backup
Virtual IP : 192.168.10.1
Master IP : 192.168.10.254
PriorityRun : 120
PriorityConfig : 120
MasterPriority : 150
Preempt : YES Delay Time : 0 s
TimerRun : 1 s
TimerConfig : 1 s
Auth type : NONE
Virtual MAC : 0000-5e00-0101
Check TTL : YES
Config type : normal-vrrp
Create time : 2021-12-14 21:33:12 UTC-08:00
Last change time : 2021-12-14 21:33:12 UTC-08:00
[R2-GigabitEthernet0/0/0]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
检查ospf
检查r3
ospf 1
area 0.0.0.0
network 13.1.1.3 0.0.0.0
network 23.1.1.3 0.0.0.0
network 3.3.3.0 0.0.0.0
network 3.3.3.3 0.0.0.0
检查r2
#
ospf 1 router-id 2.2.2.2
silent-interface GigabitEthernet0/0/0
area 0.0.0.0
network 23.1.1.2 0.0.0.0
network 192.168.10.253 0.0.0.0
network 192.168.10.0 0.0.0.255
检查r1
#
ospf 1 router-id 1.1.1.1
silent-interface GigabitEthernet0/0/0
area 0.0.0.0
network 12.1.1.1 0.0.0.0
network 13.1.1.1 0.0.0.0
network 192.168.10.254 0.0.0.0
network 192.168.10.0 0.0.0.255
重新配置:
[R3]ospf 1
[R3-ospf-1]area 0
[R3-ospf-1-area-0.0.0.0]undo network 3.3.3.0 0.0.0.0
[R3-ospf-1-area-0.0.0.0]
[R2]ospf 1
[R2-ospf-1]area 0
[R2-ospf-1-area-0.0.0.0]undo network 192.168.10.253 0.0.0.0
[R2-ospf-1-area-0.0.0.0]
[R1]ospf 1
[R1-ospf-1]area 0
[R1-ospf-1-area-0.0.0.0]undo network 192.168.10.254 0.0.0.0
[R1-ospf-1-area-0.0.0.0]quit
[R1]int
[R1]interface g0
[R1]interface g0/0/0
[R1-GigabitEthernet0/0/0]ospf 1 en
[R1-GigabitEthernet0/0/0]ospf ena
[R1-GigabitEthernet0/0/0]ospf enable 1 a
[R1-GigabitEthernet0/0/0]ospf enable 1 area 0
[R1-GigabitEthernet0/0/0]ospf enable 1 area 0
[R1-GigabitEthernet0/0/0]ospf enable 1 area 0
[R1-GigabitEthernet0/0/0]ospf enable 1 area 0
[R1-GigabitEthernet0/0/0]disp c
[R1-GigabitEthernet0/0/0]disp cu
[R1-GigabitEthernet0/0/0]disp current-configuration
[R2]int g0/0/0
[R2-GigabitEthernet0/0/0]ospf 1ena
[R2-GigabitEthernet0/0/0]ospf en
[R2-GigabitEthernet0/0/0]ospf enable 1 are
[R2-GigabitEthernet0/0/0]ospf enable 1 area 0
[R2-GigabitEthernet0/0/0]
ospf 通
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
调整lsw3的vlan配置
原始
interface MEth0/0/1
#
interface Ethernet0/0/1
#
interface Ethernet0/0/2
#
interface Ethernet0/0/3
port link-type access
port default vlan 10
#
配置好:
#
interface Ethernet0/0/1
port link-type access
port default vlan 10
#
interface Ethernet0/0/2
port link-type access
port default vlan 10
#
interface Ethernet0/0/3
port link-type access
port default vlan 10
PC>ping 192.168.10.1
Ping 192.168.10.1: 32 data bytes, Press Ctrl_C to break
From 192.168.10.1: bytes=32 seq=1 ttl=255 time=62 ms
From 192.168.10.1: bytes=32 seq=2 ttl=255 time=47 ms
From 192.168.10.1: bytes=32 seq=3 ttl=255 time=47 ms
From 192.168.10.1: bytes=32 seq=4 ttl=255 time=47 ms
From 192.168.10.1: bytes=32 seq=5 ttl=255 time=94 ms
--- 192.168.10.1 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 47/59/94 ms
PC>ping 3.3.3.3
Ping 3.3.3.3: 32 data bytes, Press Ctrl_C to break
From 3.3.3.3: bytes=32 seq=1 ttl=254 time=78 ms
From 3.3.3.3: bytes=32 seq=2 ttl=254 time=78 ms
From 3.3.3.3: bytes=32 seq=3 ttl=254 time=47 ms
From 3.3.3.3: bytes=32 seq=4 ttl=254 time=47 ms
From 3.3.3.3: bytes=32 seq=5 ttl=254 time=78 ms
--- 3.3.3.3 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 47/65/78 ms
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-T9w128EY-1639576116611)(/Users/aron/Library/Application Support/typora-user-images/image-20211215214520025.png)]
————————————————
版权声明:本文为CSDN博主「32进制」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/m0_47210241/article/details/121962664