本文记录一下华为路由OSPF被动接口配置
拓扑图:
AR1配置命令:
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
|
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname AR1
[AR1]int G0/0/0
[AR1-GigabitEthernet0/0/0]ip add 192.168.4.1 24
[AR1-GigabitEthernet0/0/0]int G0/0/1
[AR1-GigabitEthernet0/0/1]ip add 192.168.6.1 24
[AR1-GigabitEthernet0/0/1]int G0/0/2
[AR1-GigabitEthernet0/0/2]ip add 192.168.5.1 24
[AR1-GigabitEthernet0/0/2]q
[AR1]ospf
[AR1-ospf-1]area 0
[AR1-ospf-1-area-0.0.0.0]network 192.168.4.0 0.0.0.255
[AR1-ospf-1-area-0.0.0.0]network 192.168.5.0 0.0.0.255
[AR1-ospf-1-area-0.0.0.0]network 192.168.6.0 0.0.0.255
[AR1-ospf-1-area-0.0.0.0]q
[AR1-ospf-1]silent-interface G0/0/0
|
AR2配置命令:
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
|
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname AR2
[AR2]int G0/0/0
[AR2-GigabitEthernet0/0/0]ip add 192.168.6.2 24
[AR2-GigabitEthernet0/0/0]int G0/0/1
[AR2-GigabitEthernet0/0/1]ip add 192.168.3.1 24
[AR2-GigabitEthernet0/0/1]int G0/0/2
[AR2-GigabitEthernet0/0/2]ip add 192.168.2.1 24
[AR2-GigabitEthernet0/0/2]q
[AR2]ospf
[AR2-ospf-1]area 0
[AR2-ospf-1-area-0.0.0.0]network 192.168.3.0 0.0.0.255
[AR2-ospf-1-area-0.0.0.0]network 192.168.6.0 0.0.0.255
[AR2-ospf-1-area-0.0.0.0]network 192.168.2.0 0.0.0.255
[AR2-ospf-1-area-0.0.0.0]q
[AR2-ospf-1]silent-interface G0/0/1
|
AR3配置命令:
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
|
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname AR2
[AR2]int G0/0/0
[AR2-GigabitEthernet0/0/0]ip add 192.168.6.2 24
[AR2-GigabitEthernet0/0/0]int G0/0/1
[AR2-GigabitEthernet0/0/1]ip add 192.168.3.1 24
[AR2-GigabitEthernet0/0/1]int G0/0/2
[AR2-GigabitEthernet0/0/2]ip add 192.168.2.1 24
[AR2-GigabitEthernet0/0/2]q
[AR2]ospf
[AR2-ospf-1]area 0
[AR2-ospf-1-area-0.0.0.0]network 192.168.3.0 0.0.0.255
[AR2-ospf-1-area-0.0.0.0]network 192.168.6.0 0.0.0.255
[AR2-ospf-1-area-0.0.0.0]network 192.168.2.0 0.0.0.255
[AR3-ospf-1-area-0.0.0.0]q
[AR3-ospf-1]silent-interface G0/0/1
|
实验链接:http://pan.baidu.com/s/1bnFjTGb 密码:49bw