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

拓扑图:

enter description here

AR1配置命令:

  

<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配置命令:



<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配置命令:


<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