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

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

Junos路由器静态路由及动态路由rip和ospf配置测试

發(fā)布時間:2025/6/15 编程问答 33 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Junos路由器静态路由及动态路由rip和ospf配置测试 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

一.測試拓撲:


二.基本配置:A.R1:
interface Ethernet0/0
ip address 202.100.100.1 255.255.255.0
? ? no shut
interface Loopback0
? ? ip address 1.1.1.1 255.255.255.255
B.R2:interface Ethernet0/0
? ? ip address 202.100.100.2 255.255.255.0
? ? no shutinterface Ethernet0/1
? ? ip address 202.100.1.2 255.255.255.0
? ? no shutinterface Loopback0
? ? ip address 2.2.2.2 255.255.255.255
C.JUNOS1:set system root-authentication plain-text-password
set interfaces em0 unit 0 family inet address 202.100.1.10/24
set interfaces em1 unit 0 family inet address 10.1.1.10/24
D.R3:
interface Ethernet0/0 ? ? ip address 10.1.1.3 255.255.255.0
? ? no shut
interface Loopback0
? ? ip address 3.3.3.3 255.255.255.255
三.JUNOS靜態(tài)路由配置:A.配置方法:set routing-options static route 0.0.0.0/0 next-hop 202.100.1.2commitB.測試:root> ping 1.1.1.1
PING 1.1.1.1 (1.1.1.1): 56 data bytes
64 bytes from 1.1.1.1: icmp_seq=0 ttl=255 time=51.869 ms
^C
--- 1.1.1.1 ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max/stddev = 51.869/51.869/51.869/nan ms
四.RIP動態(tài)路由配置:http://www.juniper.net/techpubs/en_US/junos13.3/topics/topic-map/rip-authentication.html--junos如果不配置認證,不用配置策略,配置認證,如果不配置策略,接口發(fā)出的rip包不會帶有認證信息,junos只能接收rip。A.JUNOS:①配置策略:set policy-options policy-statement advertis-routers-through-rip term 1 from protocol direct
set policy-options policy-statement advertis-routers-through-rip term 1 from protocol rip
set policy-options policy-statement advertis-routers-through-rip term 1 then accept
②配置接口,將接口加入groupset protocols rip group rip-group neighbor em1.0③group export策略set protocols rip group rip-group export advertis-routers-through-rip④配置認證全局:set protocols rip authentication-type md5
set protocols rip authentication-key ?cisco
接口:set protocols rip group rip-group neighbor em1.0 authentication-type md5
set protocols rip group rip-group neighbor em1.0 authentication-key ?cisco
B.R2:①基本配置:router rip
version 2
network 10.0.0.0
network 192.168.1.0
②配置認證:key chain rip
key 1
? key-string cisco
interface Ethernet0/0
? ? ip rip authentication mode md5
? ? ip rip authentication key-chain rip
備注:測試時發(fā)現(xiàn)用c2691-adventerprisek9-mz.124-15.T14.BIN的2691的路由器配置完rip認證后,rip包中不會有認證信息,可能是IOS的問題。C.驗證:root# run show route

inet.0: 7 destinations, 7 routes (7 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

3.0.0.0/8 ? ? ? ? ?*[RIP/100] 00:09:09, metric 2, tag 0
? ? ? ? ? ? ? ? ? ?> to 10.1.1.3 via em1.0
10.1.1.0/24 ? ? ? ?*[Direct/0] 00:28:05
? ? ? ? ? ? ? ? ? ?> via em1.0
10.1.1.10/32 ? ? ? *[Local/0] 00:28:05
? ? ? ? ? ? ? ? ? ? ?Local via em1.0
13.0.0.0/8 ? ? ? ? *[RIP/100] 00:09:09, metric 2, tag 0
? ? ? ? ? ? ? ? ? ?> to 10.1.1.3 via em1.0
202.100.1.0/24 ? ? *[Direct/0] 00:28:05
? ? ? ? ? ? ? ? ? ?> via em0.0
202.100.1.10/32 ? ?*[Local/0] 00:28:05
? ? ? ? ? ? ? ? ? ? ?Local via em0.0
224.0.0.9/32 ? ? ? *[RIP/100] 00:01:10, metric 1
? ? ? ? ? ? ? ? ? ? ?MultiRecv
R3#show ip route rip
R ? ?202.100.1.0/24 [120/1] via 10.1.1.10, 00:00:19, Ethernet0/0

五.OSPF動態(tài)路由配置:http://www.juniper.net/techpubs/en_US/junos13.2/topics/topic-map/ospf-authentication.html
A.R1:router ospf 1
? ? router-id 1.1.1.1
? ? network 202.100.100.1 0.0.0.0 area 0
? ? network 1.1.1.1 0.0.0.0 a 0interface Ethernet0/0
? ? ip ospf authentication message-digest
? ? ip ospf message-digest-key 1 md5 cisco
---鏈路認證B.R2:router ospf 1
? ? router-id 2.2.2.2
? ? area 0 authentication message-digest
? ? network 202.100.1.2 0.0.0.0 area 0
? ? network 202.100.100.2 0.0.0.0 area 0
interface Ethernet0/0
? ? ip ospf message-digest-key 1 md5 cisco
interface Ethernet0/1
? ? ip ospf message-digest-key 1 md5 cisco
---區(qū)域認證C.JUNOS:set protocols ospf area 0.0.0.0 interface em0.0 authentication md5 1 key ciscoD:驗證:root# run show ospf neighbor
Address ? ? ? ? ?Interface ? ? ? ? ? ? ?State ? ? ID ? ? ? ? ? ? ? Pri ?Dead
202.100.1.2 ? ? ?em0.0 ? ? ? ? ? ? ? ? ?Full ? ? ?2.2.2.2 ? ? ? ? ? ?1 ? ?32
root# run show route protocol ospf ?

inet.0: 10 destinations, 10 routes (10 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

1.1.1.1/32 ? ? ? ? *[OSPF/10] 00:00:04, metric 12
? ? ? ? ? ? ? ? ? ?> to 202.100.1.2 via em0.0
202.100.100.0/24 ? *[OSPF/10] 04:48:10, metric 11
? ? ? ? ? ? ? ? ? ?> to 202.100.1.2 via em0.0
224.0.0.5/32 ? ? ? *[OSPF/10] 04:48:22, metric 1
? ? ? ? ? ? ? ? ? ? ?MultiRecv

六.OSPF和rip雙向路由重分布配置:A.RIP往OSPF:①配置策略:set policy-options policy-statement into-ospf term rip-to-ospf from protocol rip
set policy-options policy-statement into-ospf term rip-to-ospf from route-filter 3.0.0.0/8 exact
set policy-options policy-statement into-ospf term rip-to-ospf then accept
set policy-options policy-statement into-ospf term direct-to-ospf from protocol ?directset policy-options policy-statement into-ospf term direct-to-ospf from route-filter 10.1.1.0/24 exactset policy-options policy-statement into-ospf term direct-to-ospf then acceptset policy-options policy-statement into-ospf then reject②調用策略:set protocols ospf export into-ospf ③驗證:R1#show ip route ospf
O E2 3.0.0.0/8 [110/2] via 202.100.100.2, 00:07:57, Ethernet0/0
O ? ?202.100.1.0/24 [110/20] via 202.100.100.2, 00:10:49, Ethernet0/0
? ? 10.0.0.0/24 is subnetted, 1 subnets
O E2 ? ?10.1.1.0 [110/0] via 202.100.100.2, 00:00:04, Ethernet0/0
B.OSPFRIP①配置策略:set policy-options policy-statement into-rip term ospf-to-rip from protocol ospf
set policy-options policy-statement into-rip term ospf-to-rip from route-filter 202.100.100.0/24 exact
set policy-options policy-statement into-rip term ospf-to-rip from route-filter 1.1.1.1/32 exact
set policy-options policy-statement into-rip term ospf-to-rip then accept
set policy-options policy-statement into-rip term direct-to-rip from protocol direct
set policy-options policy-statement into-rip term direct-to-rip from route-filter 202.100.1.0/24 exact
set policy-options policy-statement into-rip term direct-to-rip then accept
set policy-options policy-statement into-rip then reject
②調用策略:set protocols rip group rip-group export into-rip ③驗證:R3#show ip route rip
? ? 1.0.0.0/32 is subnetted, 1 subnets
R ? ? ? 1.1.1.1 [120/1] via 10.1.1.10, 00:00:24, Ethernet0/0
R ? ?202.100.100.0/24 [120/1] via 10.1.1.10, 00:00:24, Ethernet0/0
R ? ?202.100.1.0/24 [120/1] via 10.1.1.10, 00:00:24, Ethernet0/0


總結

以上是生活随笔為你收集整理的Junos路由器静态路由及动态路由rip和ospf配置测试的全部內容,希望文章能夠幫你解決所遇到的問題。

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

主站蜘蛛池模板: 亚洲欧美激情图片 | 国产精品久久麻豆 | 韩日精品中文字幕 | 香港三日本8a三级少妇三级99 | 99久久久无码国产精品性色戒 | 色综合天天综合网天天狠天天 | 国产91丝袜在线播放九色 | 欧美黑人又粗又大高潮喷水 | 看免费毛片 | 国产日韩欧美另类 | 天天干天天爽天天射 | 色一情一区二区三区 | 日本韩国欧美一区二区三区 | 亚洲熟女乱色综合亚洲av | 青青草毛片| www.黄色网址 | 经典毛片| 久久国产人妻一区二区免色戒电影 | 日本二区在线观看 | 热久久久久久久 | 操bbbbb| 日韩国产电影 | 国产亚洲女人久久久久毛片 | 狠狠v欧美v日韩v亚洲ⅴ | 欧美成人综合 | 欧美激情在线播放 | 韩国一级片在线观看 | 午夜性生活片 | 特级毛片在线播放 | 第四色激情 | 亚洲毛片在线观看 | 欧美久久久久久久久 | 97人人人 | 中文字幕亚洲一区二区三区五十路 | 波多野结衣1区 | 超级黄色录像 | 美女福利在线视频 | 国产精品男同 | www.sesehu| 手机在线观看免费av | 黄瓜视频在线播放 | 国产理伦 | 香蕉视频黄色片 | 高h乱l高辣h文短篇h | 日韩一二三级 | 日韩成人无码影院 | 亚洲小说区图片区都市 | 18成人在线观看 | 日韩一级片在线播放 | 亚洲av无一区二区三区 | jjzz国产| 男生和女生差差的视频 | 羞羞漫画在线 | 日本中文字幕精品 | 日韩三级久久 | 国产精欧美一区二区三区白种人 | 伊人99在线 | 欧美超碰在线观看 | 亚洲欧美国产毛片在线 | 成人久久精品 | 久久影业 | 日本黄色大片网站 | 狠狠干狠狠操视频 | av成人免费| 亚洲国产精品视频在线观看 | 波多野结衣一区二区三区在线观看 | hitomi一区二区三区精品 | 精品一区二区日韩 | 素人fc2av清纯18岁 | 一本久久道 | 99国产精品无码 | 国产精品自拍在线 | 97人人模人人爽人人少妇 | 日韩精品无码一区二区三区 | 免费日韩毛片 | 好吊在线视频 | 午夜做爰xxxⅹ性高湖视频美国 | 亚洲天堂区 | 农村村妇真实偷人视频 | 国产成人精品在线播放 | 天天精品综合 | 麻豆精品av | 欧美xxxxx视频 | 伊人精品一区二区三区 | 91最新地址永久入口 | 白丝校花扒腿让我c | 五月天91| 国产精品12p | 色伊人久久| 波多野结衣成人在线 | 91精品在线免费 | 成人在线观 | 亚洲男人天堂2017 | 亚洲红桃视频 | 国产亚洲精品成人av久久ww | 激情文学亚洲色图 | 99久久精品一区二区成人 | 男人操女人免费网站 | 精产国品一二三产区m553麻豆 |