倾旋的博客

倾旋的博客

现阶段在进行有效性验证/攻击模拟相关的安全研究工作,我的博客会记录一些我的学习过程和部分安全技术研究成果。

20 Nov 2015

华为路由OSPF被动接口配置

本文记录一下华为路由OSPF被动接口配置

拓扑图:

enter description here
0x08

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