本文共 1652 字,大约阅读时间需要 5 分钟。
R1:
<Huawei>u t m <Huawei>system-view [Huawei]sys [Huawei]sysname r1 [r1]interface GigabitEthernet 0/0/0[r1-GigabitEthernet0/0/0]ip address 192.168.1.254 24 [r1-GigabitEthernet0/0/0]quit [r1]interface GigabitEthernet 0/0/1[r1-GigabitEthernet0/0/1]ip address 192.168.11.1 24[r1]ospf
[r1-ospf-1]area 0 [r1-ospf-1-area-0.0.0.0]network 192.168.1.0 0.0.0.255[r1-ospf-1-area-0.0.0.0]network 192.168.11.0 0.0.0.255R2:<Huawei>u t m <Huawei>system-view [Huawei]sysname r2 [r2]interface GigabitEthernet 0/0/0[r2-GigabitEthernet0/0/0]ip address 192.168.11.2 24[r2-GigabitEthernet0/0/0]quit [r2]interface GigabitEthernet 0/0/1[r2-GigabitEthernet0/0/1]ip address 192.168.12.1 24[r2]ospf
[r2-ospf-1]area 0 [r2-ospf-1-area-0.0.0.0]network 192.168.11.0 0.0.0.255[r2-ospf-1-area-0.0.0.0]network 192.168.12.0 0.0.0.255R3:<Huawei>u t m <Huawei>system-view [Huawei]sysname r3 [r3]interface GigabitEthernet 0/0/0[r3-GigabitEthernet0/0/0]ip address 192.168.12.2 24[r3-GigabitEthernet0/0/0]q [r3]interface GigabitEthernet 0/0/1[r3-GigabitEthernet0/0/1]ip address 192.168.13.1 24[r3]ospf [r3-ospf-1]area 0[r3-ospf-1-area-0.0.0.0]network 192.168.12.0 0.0.0.255[r3-ospf-1-area-0.0.0.0]network 192.168.13.0 0.0.0.255R4:<Huawei>u t m <Huawei>system-view [Huawei]sysname r4 [r4]interface GigabitEthernet 0/0/0[r4-GigabitEthernet0/0/0]ip address 192.168.13.2 24[r4-GigabitEthernet0/0/0]quit [r4]interface GigabitEthernet 0/0/1[r4-GigabitEthernet0/0/1]ip address 192.168.2.254 24[r4]ospf
[r4-ospf-1]area 0[r4-ospf-1-area-0.0.0.0]network 192.168.2.0 0.0.0.255[r4-ospf-1-area-0.0.0.0]network 192.168.13.0 0.0.0.255转载于:https://blog.51cto.com/14280349/2408417