(2) 配置 OSPF
配置 Switch A.
- <SwitchA>
- system-view [SwitchA] router id 11.2.1.2 [SwitchA] ospf [SwitchA-ospf-1]
- area 0 [SwitchA-ospf-1-area-0.0.0.0] network 11.2.1.0 0.0.0.255 [SwitchA-ospf-1-area-0.0.0.0]
- quit [SwitchA-ospf-1] quit
配置 Switch B.
- <SwitchB>
- system-view [SwitchB] router id 11.2.1.1 [SwitchB] ospf [SwitchB-ospf-1]
- area 0 [SwitchB-ospf-1-area-0.0.0.0] network 11.2.1.0 0.0.0.255 [SwitchB-ospf-1-area-0.0.0.0]
- quit [SwitchB-ospf-1] quit
配置 Switch C.
- <SwitchC>
- system-view [SwitchC] router id 11.1.1.2 [SwitchC] ospf [SwitchC-ospf-1]
- area 0 [SwitchC-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255 [SwitchC-ospf-1-area-0.0.0.0]
- network 10.2.1.0 0.0.0.255 [SwitchC-ospf-1-area-0.0.0.0] quit [SwitchC-ospf-1]
- quit
配置 Switch D.
- <SwitchD>
- system-view [SwitchD] router id 10.3.1.1 [SwitchD] ospf [SwitchD-ospf-1]
- area 0 [SwitchD-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255 [SwitchD-ospf-1-area-0.0.0.0]
- network 10.3.1.0 0.0.0.255 [SwitchD-ospf-1-area-0.0.0.0] quit
配置 Switch E.
- <SwitchE>
- system-view [SwitchE] router id 10.4.1.1 [SwitchE] ospf [SwitchE-ospf-1]
- area 0 [SwitchE-ospf-1-area-0.0.0.0] network 10.2.1.0 0.0.0.255 [SwitchE-ospf-1-area-0.0.0.0]
- network 10.4.1.0 0.0.0.255 [SwitchE-ospf-1-area-0.0.0.0] quit [SwitchE-ospf-1]
- quit
来源: http://www.bubuko.com/infodetail-3076431.html