RIP
1. RIP 只支援FLSM(SLSM),不支援VLSM,但可以切割子網段,以介面上的Subnet Mask判斷,所以RIP宣告的時候,沒有宣告Subnet Mask
2. RIP V2 支援不連續網路!
3. 只對直接相連的介面丟出Routing Table
4.RIP 支援自動彙整(關不掉),不支援手動彙整 ,RIP V2支援自動彙整/手動彙整
假設有一Router有兩個介面
FA 0 ==> IP 10.2.2.2/16
FA 1 ==> IP 10.1.1.1/16
r1(config)#router rip
r1(config-router)#version 2
r1(config-router)#network 10.0.0.0
*在正確的介面啟動RIP
*介面若有3個10.0.0.0的網段只要打1次,若是有2個192.168.x.0的網段,則是要打2次
r1(config-router)#no auto-summary
*有不連續網路要關掉 auto-summary
檢查
r1#show ip protocolsRouting Protocol is "rip"
Sending updates every 30 seconds, next due in 7 seconds
Invalid after 180 seconds, hold down 180, flushed after 240
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Redistributing: rip
Default version control: send version 2, receive 2
Interface Send Recv Triggered RIP Key-chain
FastEthernet0/0 2 2
Automatic network summarization is not in effect (有下no auto-summary)
Maximum path: 4
Routing for Networks:
10.0.0.0
Passive Interface(s):
Routing Information Sources:
Gateway Distance Last Update
10.1.1.2 120 00:00:04
Distance: (default is 120)
*如果還要看更清楚的訊息,可以下 debug ip rip
*AD值
直接連接 0
靜態路由 1
EIGRP 90
OSPF 110
RIP(V1,V2) 120
其他介紹請參考這裡
Static Route
RO13(config)#ip route 10.0.0.0 255.255.255.0 192.168.1.254
RO13(config)#ip route 172.16.1.0 255.255.255.0 192.168.2.254
RO13(config)#ip route 0.0.0.0 0.0.0.0 192.168.3.254 (Default Route)
留言
張貼留言