日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > linux >内容正文

linux

linux ospf 命令,OSPF单区域配置 - linuxprobe2020的个人空间 - OSCHINA - 中文开源技术交流社区...

發布時間:2024/9/27 linux 29 豆豆
生活随笔 收集整理的這篇文章主要介紹了 linux ospf 命令,OSPF单区域配置 - linuxprobe2020的个人空间 - OSCHINA - 中文开源技术交流社区... 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

為了彌補距離矢量路由協議的不足,IEFI組織開發了一種基于鏈路狀態的內部網關協議OSPF

實驗環境:紅,綠,藍三個顏色區域代表三個不同網絡的辦公場所,要求使用OSPF協議實現網絡互通。

pc1:172.16.1.1

pc2:172.16.2.1

pc3:172.16.3.1

R1:GE0/0/0 172.16.1.254 GE2/0/0 192.168.2.1 GE0/0/1 192.168.1.1

R2:GE0/0/0 172.16.2.254 GE0/0/1 192.168.2.3 GE2/0/0 192.168.2.3

R3:GE0/0/0 172.16.3.254 GE0/0/1 192.168.1.3 GE2/0/0 192.168.3.3

配置PC ip地址

配置路由器

R1:

[R1]INT GigabitEthernet 0/0/0

[R1-GigabitEthernet0/0/0]IP ADD 172.16.1.254 24

May 21 2020 10:38:30-08:00 R1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP

on the interface GigabitEthernet0/0/0 has entered the UP state.

[R1-GigabitEthernet0/0/0]INT G2/0/0

[R1-GigabitEthernet2/0/0]IP ADD 192.168.2.1 24

May 21 2020 10:38:48-08:00 R1 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP

on the interface GigabitEthernet2/0/0 has entered the UP state.

[R1-GigabitEthernet2/0/0]INT G0/0/1

[R1-GigabitEthernet0/0/1]IP ADD 192.168.1.1 24

[R1-GigabitEthernet0/0/1]

May 21 2020 10:39:03-08:00 R1 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP

on the interface GigabitEthernet0/0/1 has entered the UP state.

R2:

[R2]int g0/0/1

[R2-GigabitEthernet0/0/1]ip add 192.168.2.2 24

May 21 2020 10:40:28-08:00 R2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP

on the interface GigabitEthernet0/0/1 has entered the UP state.

[R2-GigabitEthernet0/0/1]int g2/0/0

[R2-GigabitEthernet2/0/0]ip add 192.168.3.2 24

May 21 2020 10:40:39-08:00 R2 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP

on the interface GigabitEthernet2/0/0 has entered the UP state.

[R2-GigabitEthernet2/0/0]int g0/0/0

[R2-GigabitEthernet0/0/0]ip add 172.16.2.254 24

May 21 2020 10:40:57-08:00 R2 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP

on the interface GigabitEthernet0/0/0 has entered the UP state.

R3:

[R3]int GigabitEthernet 0/0/0

[R3-GigabitEthernet0/0/0]ip add 172.16.3.254 24

May 21 2020 10:42:11-08:00 R3 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP

on the interface GigabitEthernet0/0/0 has entered the UP state.

[R3-GigabitEthernet0/0/0]int g0/0/1

[R3-GigabitEthernet0/0/1]ip add 192.168.1.3 24

May 21 2020 10:42:21-08:00 R3 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP

on the interface GigabitEthernet0/0/1 has entered the UP state.

[R3-GigabitEthernet0/0/1]int g2/0/0

[R3-GigabitEthernet2/0/0]ip add 192.168.3.3 24

May 21 2020 10:42:51-08:00 R3 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP

on the interface GigabitEthernet2/0/0 has entered the UP state.

[R3-GigabitEthernet2/0/0]

配置OSPF

R1:

[R1]OSPF 1

[R1-ospf-1]AREA 0

[R1-ospf-1-area-0.0.0.0]NETWORK 172.16.1.0 0.0.0.255

[R1-ospf-1-area-0.0.0.0]NETWORK 192.168.2.0 0.0.0.255

[R1-ospf-1-area-0.0.0.0]NETWORK 192.168.1.0 0.0.0.255

R2:

[R2]OSPF 1

[R2-ospf-1]AREA 0

[R2-ospf-1-area-0.0.0.0]NETWO

[R2-ospf-1-area-0.0.0.0]network 172.16.2.0 0.0.0.255

[R2-ospf-1-area-0.0.0.0]NETWORK 192.168.2.0 0.0.0.255

[R2-ospf-1-area-0.0.0.0]NETWORK 192.168.3.0 0.0.0.255

R3:

[R3]OSPF 1

[R3-ospf-1]AREA 0

[R3-ospf-1-area-0.0.0.0]NETWORK 172.16.3.0 0.0.0.255

[R3-ospf-1-area-0.0.0.0]NETWORK 192.168.1.0 0.0.0.255

[R3-ospf-1-area-0.0.0.0]NETWORK 192.168.3.0 0.0.0.255

測試pc1 ping pc2,pc3

如此,OSPF配置完畢!

總結

以上是生活随笔為你收集整理的linux ospf 命令,OSPF单区域配置 - linuxprobe2020的个人空间 - OSCHINA - 中文开源技术交流社区...的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。