qder 发表于 2013-8-15 08:41:59

RIP配置


configure terminal
interface loopback0
Ipaddress 1.1.1.1 255.255.255.0
Routerrip
Version2
Noauto-summary
Network1.0.0.0
exit

Configuration :
R1
interfaceLoopback0ip address 1.1.1.1 255.255.255.0!interfaceFastEthernet0/0ip address 12.12.12.1 255.255.255.0duplex autospeed auto!router ripversion 2network 1.0.0.0network 12.0.0.0no auto-summary
R1#show ip routeCodes: C -connected, S - static, R - RIP, M - mobile, B - BGP      D - EIGRP, EX - EIGRP external, O -OSPF, IA - OSPF inter area      N1 - OSPF NSSA external type 1, N2 -OSPF NSSA external type 2      E1 - OSPF external type 1, E2 - OSPFexternal type 2      i - IS-IS, su - IS-IS summary, L1 -IS-IS level-1, L2 - IS-IS level-2      ia - IS-IS inter area, * - candidatedefault, U - per-user static route      o - ODR, P - periodic downloadedstatic route
Gateway of lastresort is not set
    1.0.0.0/24 is subnetted, 1 subnetsC       1.1.1.0 is directly connected,Loopback0    23.0.0.0/24 is subnetted, 1 subnetsR       23.23.23.0 via 12.12.12.2,00:00:13, FastEthernet0/0    12.0.0.0/24 is subnetted, 1 subnetsC       12.12.12.0 is directly connected,FastEthernet0/0
R2interfaceFastEthernet0/0ip address 12.12.12.2 255.255.255.0duplex autospeed auto!interfaceFastEthernet0/1ip address 23.23.23.2 255.255.255.0duplex autospeed autorouter ripversion 2network 12.0.0.0network 23.0.0.0no auto-summary
R2#show ip routeCodes: C -connected, S - static, R - RIP, M - mobile, B - BGP      D - EIGRP, EX - EIGRP external, O -OSPF, IA - OSPF inter area      N1 - OSPF NSSA external type 1, N2 -OSPF NSSA external type 2      E1 - OSPF external type 1, E2 - OSPFexternal type 2      i - IS-IS, su - IS-IS summary, L1 -IS-IS level-1, L2 - IS-IS level-2      ia - IS-IS inter area, * - candidatedefault, U - per-user static route      o - ODR, P - periodic downloadedstatic route
Gateway of lastresort is not set
    1.0.0.0/24 is subnetted, 1 subnetsR       1.1.1.0 via 12.12.12.1,00:00:01, FastEthernet0/0    23.0.0.0/24 is subnetted, 1 subnetsC       23.23.23.0 is directly connected,FastEthernet0/1    12.0.0.0/24 is subnetted, 1 subnetsC       12.12.12.0 is directly connected,FastEthernet0/0
R3interfaceLoopback0ip address 3.3.3.3 255.255.255.0interfaceFastEthernet0/0ip address 23.23.23.3 255.255.255.0duplex autospeed autorouter ripversion 2network 3.0.0.0network 23.0.0.0no auto-summary!
R3#show ip routeCodes: C -connected, S - static, R - RIP, M - mobile, B - BGP      D - EIGRP, EX - EIGRP external, O -OSPF, IA - OSPF inter area      N1 - OSPF NSSA external type 1, N2 -OSPF NSSA external type 2      E1 - OSPF external type 1, E2 - OSPFexternal type 2      i - IS-IS, su - IS-IS summary, L1 -IS-IS level-1, L2 - IS-IS level-2      ia - IS-IS inter area, * - candidatedefault, U - per-user static route      o - ODR, P - periodic downloadedstatic route
Gateway of lastresort is not set
    1.0.0.0/24 is subnetted, 1 subnetsR       1.1.1.0 via 23.23.23.2,00:00:21, FastEthernet0/0    23.0.0.0/24 is subnetted, 1 subnetsC       23.23.23.0 is directly connected,FastEthernet0/0    12.0.0.0/24 is subnetted, 1 subnetsR       12.12.12.0 via 23.23.23.2,00:00:21, FastEthernet0/0

测试:
R3#ping 1.1.1.1source 3.3.3.3
Type escapesequence to abort.Sending 5,100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:Packet sent with asource address of 3.3.3.3!!!!!Success rate is100 percent (5/5), round-trip min/avg/max = 44/90/148 msR1#ping 3.3.3.3source 1.1.1.1
Type escapesequence to abort.Sending 5,100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:Packet sent with asource address of 1.1.1.1!!!!!Success rate is100 percent (5/5), round-trip min/avg/max = 44/74/128 ms



shenyg 发表于 2013-8-16 10:36:38

走,MM,咱们化蝶去……

hx0011yy 发表于 2013-8-18 03:48:49

禽兽尚且有半点怜悯之心,而我一点也没有,所以我不是禽兽。

lyd2004888 发表于 2013-8-19 10:58:19

男人有冲动可能是爱你,也可能是不爱,但没有冲动肯定是不爱!

sunren 发表于 2013-8-24 01:55:48

长得真有创意,活得真有勇气!

zsy001 发表于 2013-8-26 11:00:40

禽兽尚且有半点怜悯之心,而我一点也没有,所以我不是禽兽。

52037317 发表于 2013-8-29 08:28:07

只要不下流,我们就是主流!
页: [1]
查看完整版本: RIP配置