单向ospf

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了单向ospf相关的知识,希望对你有一定的参考价值。

技术图片

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.255
R2:
<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.255
R3:
<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.255
R4:
<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

以上是关于单向ospf的主要内容,如果未能解决你的问题,请参考以下文章

(java实现)单向循环链表

STL系列之三 queue 单向队列

单向链表反转

单向链表

用Java语言实现单向链表

单向循环链表