成人午夜视频全免费观看高清-秋霞福利视频一区二区三区-国产精品久久久久电影小说-亚洲不卡区三一区三区一区

RIP在Juniper上的配置

RIP協(xié)議,路由信息協(xié)議,最簡單的距離矢量協(xié)議,最大跳數(shù)15跳,16不可達(dá),采用廣播的方式進(jìn)行路由表的擴(kuò)散與更新,數(shù)據(jù)包中不包含子網(wǎng)掩碼(2代中有),以及

十年的贛榆網(wǎng)站建設(shè)經(jīng)驗(yàn),針對(duì)設(shè)計(jì)、前端、開發(fā)、售后、文案、推廣等六對(duì)一服務(wù),響應(yīng)快,48小時(shí)及時(shí)工作處理。營銷型網(wǎng)站建設(shè)的優(yōu)勢(shì)是能夠根據(jù)用戶設(shè)備顯示端的尺寸不同,自動(dòng)調(diào)整贛榆建站的顯示方式,使網(wǎng)站能夠適用不同顯示終端,在瀏覽器中調(diào)整網(wǎng)站的寬度,無論在任何一種瀏覽器上瀏覽網(wǎng)站,都能展現(xiàn)優(yōu)雅布局與設(shè)計(jì),從而大程度地提升瀏覽體驗(yàn)。創(chuàng)新互聯(lián)從事“贛榆網(wǎng)站設(shè)計(jì)”,“贛榆網(wǎng)站推廣”以來,每個(gè)客戶項(xiàng)目都認(rèn)真落實(shí)執(zhí)行。

外層協(xié)議的標(biāo)記等等

在這里只在Juniper的設(shè)備上配置RIP協(xié)議,熟悉一下,原理不變

網(wǎng)絡(luò)拓?fù)鋱D下所示:

R1-------R2------R3

接口連接:

em1.12-----em2.12 192.168.1.1/24

em2.23-----em3.23 192.168.2.1/24

在每臺(tái)路由器上創(chuàng)建相應(yīng)的環(huán)回接口:

r1: 1.1.1.1/32

r2: 2.2.2.2/32

r3: 3.3.3.3/32

創(chuàng)建三個(gè)邏輯路由器;

logical-routers {

r1;

r2;

r3;

配置接口IP地址:

juniper@Olive# set interfaces em1.12 family inet address 192.168.1.1/24

[edit logical-routers r1]

juniper@Olive# set interfaces lo0.12 family inet address 1.1.1.1/24

在R2 和R3上作類似配置;

查看接口的配置情況:

juniper@Olive> show interfaces terse

Interface Admin Link Proto Local Remote

dsc up up

em0 up up

em0.0 up up inet 192.168.72.10/24

em1 up up

em1.12 up up inet 192.168.1.1/24

em1.32767 up up

em2 up up

em2.12 up up inet 192.168.1.2/24

em2.23 up up inet 192.168.2.1/24

em2.32767 up up

em3 up up

em3.23 up up inet 192.168.2.2/24

lo0 up up

lo0.12 up up inet 1.1.1.1/24

lo0.21 up up inet 2.2.2.2 --> 0/0

lo0.23 up up inet 3.3.3.3 --> 0/0

lo0.16384 up up inet 127.0.0.1 --> 0/0

測試通信:

在R1上去PING R2的接口IP地址:

juniper@Olive# run ping 192.168.1.2 logical-router r1

PING 192.168.1.2 (192.168.1.2): 56 data bytes

64 bytes from 192.168.1.2: icmp_seq=0 ttl=64 time=0.387 ms

64 bytes from 192.168.1.2: icmp_seq=1 ttl=64 time=0.351 ms

^C

--- 192.168.1.2 ping statistics ---

2 packets transmitted, 2 packets received, 0% packet loss

round-trip min/avg/max/stddev = 0.351/0.369/0.387/0.018 ms

[edit logical-routers r1]

在這之前有必要配置一下靜態(tài)路由,雖然靜態(tài)路由非常簡單的,但是作為Juniper的配置來說,還是與思科華為的有些不同。

有配置的時(shí)候一定要指定掩碼,你配置了192.168.1.0 next-hop 192.168.1.2 ,它不會(huì)報(bào)錯(cuò),但是不通,在以后的配置時(shí)

養(yǎng)成良好的習(xí)慣。

配置如下所示:

routing-options {

static {

route 192.168.2.0/24 {

next-hop 192.168.1.2;

metric 2;

}

}

}

set routing-options static route 192.168.1.0/24 next-hop 192.168.1.0/24 next-hop 192.168.2.1 metric 2

配置RIP協(xié)議:

我們?cè)谒伎?、華為的設(shè)備上的時(shí)候,就直接Network了,宣告就行了,但在Juniper的配置的時(shí)候,即使你在接口上發(fā)送了

組播的數(shù)據(jù)包,但是鄰居還是起不來,這時(shí)你必須配置策略,進(jìn)行相關(guān)的宣告;

首先配置如下策略,將直連的宣告:

Applying Export Policy

policy-options {

policy-statement connected-routes {

term advertise-routes {

from protocol direct;

then accept;

}

}

具體的配置命令就不列出來了。

將來自RIP協(xié)議的路由進(jìn)行宣告:

policy-statement transit-rip-routes {

term advretise-routes {

from protocol rip;

then accept;

}

}

}

在協(xié)議中再進(jìn)行配置:

protocols {

rip {

group neighbor-routers {

export [ connected-routes transit-rip-routes ];

neighbor em3.23;

}

}

}

在接口em3.23上將策略進(jìn)行應(yīng)用,將路由信息宣告出去。

查看鄰居的信息:

[edit logical-routers r2]

juniper@Olive# run show rip neighbor logical-router r2

Source Destination Send Receive In

Neighbor State Address Address Mode Mode Met

-------- ----- ------- ----------- ---- ------- ---

em2.12 Up 192.168.1.2 224.0.0.9 mcast both 1

em2.23 Up 192.168.2.1 224.0.0.9 mcast both 1

查看路由表信息:

juniper@Olive# run show route protocol rip logical-router r2

inet.0: 8 destinations, 8 routes (8 active, 0 holddown, 0 hidden)

+ = Active Route, - = Last Active, * = Both

1.1.1.0/24 *[RIP/100] 00:30:08, metric 2, tag 0

> to 192.168.1.1 via em2.12

3.3.3.3/32 *[RIP/100] 00:25:36, metric 2, tag 0

> to 192.168.2.2 via em2.23

224.0.0.9/32 *[RIP/100] 00:25:39, metric 1

MultiRecv

Applying Import Policy

The JUNOS software allows you to filter routes being imported by the local router from its neighbors. You can use import policies to reject unwanted routes or to alter the metric on routes received from certain neighbors. To accomplish these goals, you create a routing policy, which you then apply to the RIP configuration. If you specify more than one policy, they are evaluated in order (first to last) and the first matching policy is applied to the route. If no match is found, the local router imports all usable RIP routes from all neighbors.

在R2上配置如下所示:

policy-statement filter-riesling {

term filter-routes {

from {

protocol rip;

route-filter 192.168.100.0/24 orlonger;

}

then reject;

}

增加一條進(jìn)入的過濾策略,將192.168.100.0 的過濾了,所在在R2和R1上就不再在有這樣的一條路由信息了;

將在相應(yīng)的接口進(jìn)行配置,這是在協(xié)議上具體實(shí)現(xiàn)的。

protocols {

rip {

group neighbor-routers {

export [ transit-rip-routes connected-routes ];

neighbor em2.12;

neighbor em2.23 {

import filter-riesling;

}

}

Modifying the Incoming Metric

對(duì)于些配置我就不作過多的解釋,它本意就是如此,只是應(yīng)用到JUNOS軟件中而已,不管你在怎樣的設(shè)備上配置RIP,它的一些特性不是不會(huì)改變的,

RIP運(yùn)行這么多年了,那個(gè)供應(yīng)商也不會(huì)去改變的特性應(yīng)用,只是在配置方面有所不一樣而已;

在R1上作如下配置:

protocols {

rip {

group neihbor-routes {

export [ connected-routes transit-rip-routes ];

neighbor em1.12 {

metric-in 5;

}

}

}

}

查看相應(yīng)的結(jié)果:

juniper@Olive# run show route protocol rip logical-router r1

inet.0: 8 destinations, 8 routes (8 active, 0 holddown, 0 hidden)

+ = Active Route, - = Last Active, * = Both

2.2.2.2/32 *[RIP/100] 01:07:45, metric 6, tag 0

> to 192.168.1.2 via em1.12

3.3.3.3/32 *[RIP/100] 01:03:13, metric 7, tag 0

> to 192.168.1.2 via em1.12

192.168.2.0/24 *[RIP/100] 01:07:45, metric 6, tag 0

> to 192.168.1.2 via em1.12

224.0.0.9/32 *[RIP/100] 00:02:43, metric 1

MultiRecv

可以看出,度量值增加了;

Modifying the Outgoing Metric

配置命令只增加一小條而已;

protocols {

rip {

group neihbor-routes {

metric-out 10;

export [ connected-routes transit-rip-routes ];

neighbor em1.12;

}

}

}

在其他的路由設(shè)備上查看相應(yīng)的結(jié)果:

juniper@Olive# run show route protocol rip logical-router r2

inet.0: 8 destinations, 8 routes (8 active, 0 holddown, 0 hidden)

+ = Active Route, - = Last Active, * = Both

1.1.1.0/24 *[RIP/100] 01:19:41, metric 11, tag 0

> to 192.168.1.1 via em2.12

3.3.3.3/32 *[RIP/100] 01:15:09, metric 2, tag 0

> to 192.168.2.2 via em2.23

224.0.0.9/32 *[RIP/100] 00:01:40, metric 1

MultiRecv

Configuring Authentication

By default, authentication between RIP neighbors is disabled within the JUNOS software;You can configure it globally for all peers or on a peer-by-peer basis within the neighbor configuration hierarchy;

Simple authentication Uses a plain-text password that is included in the transmitted packet.

MD5 authentication Sends the result of a one-way hashing algorithm in the transmitted packet.

在配置認(rèn)證的時(shí)候,有一個(gè)時(shí)間的緩沖時(shí)間,在這段時(shí)間里,雖然你可以看到路由信息,但是Ping不通的,網(wǎng)絡(luò)還沒有收斂完成;

簡單配置如下所示:

protocols {

rip {

authentication-type md5;

authentication-key "$9$VMsgJikP36AGD6Ap0hcbs2"; ## SECRET-DATA

group neighbor-routers {

export [ connected-routes transit-rip-routes ];

neighbor em3.23

Controlling Route Preference

The JUNOS software default for the preference of RIP routes within the routing table is 100. The routing table uses the preference values to select the best route when multiple protocols are advertising the same destination prefix;

有些配置操作其實(shí)就在協(xié)議的全局模式下進(jìn)行配置的,所應(yīng)用到的就是啟用了協(xié)議的接口;

protocols {

rip {

authentication-type md5;

authentication-key "$9$d8w2ajHmFnCZUnCtuEhVwY"; ## SECRET-DATA

group neihbor-routes {

preference 90;

metric-out 10;

export [ connected-routes transit-rip-routes ];

neighbor em1.12;

}

}

}

路由設(shè)備上可以看到這一優(yōu)先級(jí),當(dāng)網(wǎng)絡(luò)拓?fù)鋱D復(fù)雜點(diǎn)時(shí),可以修改優(yōu)先級(jí)進(jìn)行相應(yīng)的路由選擇;

juniper@Olive# run show route protocol rip logical-router r1

inet.0: 8 destinations, 8 routes (8 active, 0 holddown, 0 hidden)

+ = Active Route, - = Last Active, * = Both

2.2.2.2/32 *[RIP/90] 01:48:16, metric 2, tag 0

> to 192.168.1.2 via em1.12

3.3.3.3/32 *[RIP/90] 01:48:29, metric 3, tag 0

> to 192.168.1.2 via em1.12

192.168.2.0/24 *[RIP/90] 01:48:16, metric 2, tag 0

> to 192.168.1.2 via em1.12

224.0.0.9/32 *[RIP/100] 00:04:10, metric 1

Configuring Update Messages

By default, all RIP routers will advertise RIPv2 messages via multicast to all configured neighbors. In addition, all routers are able to receive both RIPv1 and RIPv2 messages.;

The receive-options values are:

both Accept RIPv1 and v2 packets.

none Do not receive RIP packets.

version-1 Accept only RIPv1 packets.

version-2 Accept only RIPv2 packets.

配置也是比較簡單的;

protocols {

rip {

authentication-type md5;

authentication-key "$9$d8w2ajHmFnCZUnCtuEhVwY"; ## SECRET-DATA

group neihbor-routes {

preference 90;

metric-out 10;

export [ connected-routes transit-rip-routes ];

neighbor em1.12 {

send version-1;

receive version-1

Configuring the Number of Route Entries in an Update Message

You can increase the default size of the RIP Response messages to include more than 25 route entries in each Update message. The maximum number of route entries you can advertise is 255 in a single message;

juniper@Olive# set protocols rip message-size 100

如此就行;

Accepting Packets Whose Reserved Fields Are Nonzero

Recall that the Request and Response messages for both RIPv1 and RIPv2 were identical. The difference between them was in the use of the message fields. RIPv1 viewed many fields as reserved, while the RIPv2 specification used those same fields for subnet mask, next hop, and so forth.

這一條命令的作用是因?yàn)镽IPV1和RIPV2的數(shù)據(jù)包格式不一樣,為不使檢驗(yàn)出錯(cuò),忽略檢查 ;

juniper@Olive# set protocols rip no-check-zero

網(wǎng)頁名稱:RIP在Juniper上的配置
鏈接URL:http://jinyejixie.com/article2/pgesoc.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供自適應(yīng)網(wǎng)站網(wǎng)站策劃、定制網(wǎng)站網(wǎng)站制作、關(guān)鍵詞優(yōu)化、微信公眾號(hào)

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)

成都網(wǎng)站建設(shè)
孝感市| 大港区| 漾濞| 四川省| 沅陵县| 葫芦岛市| 商水县| 九龙县| 杭锦后旗| 普陀区| 涟源市| 濮阳市| 承德市| 南充市| 乐平市| 北川| 墨江| 洪湖市| 台东县| 商水县| 敦化市| 额敏县| 济南市| 丹巴县| 正定县| 公主岭市| 嘉鱼县| 通江县| 昌宁县| 苏尼特右旗| 桃园市| 天气| 永福县| 宜丰县| 安岳县| 成都市| 岳普湖县| 楚雄市| 皋兰县| 雷州市| 龙岩市|