HC110111005 RIP Routing Protocol
HC110111005 RIP Routing Protocol
www.huawei.com
———— ————
RTA RTB
Response
Request
N3 E RTA RTB
Route update
N1 C N1 A
N2 D RTA RTB N2 A
N3 E N3 A
N4 B N4 F
[RTA] rip
[RTA-rip-1]version 2
[RTA-rip-1] network 192.168.1.0
[RTA-rip-1] network 172.16.0.0
[RTB]rip
[RTB-rip-1]version 2
[RTB-rip-1]network 192.168.1.0
[RTB-rip-1]network 192.168.2.0
[RTC]rip
[RTC-rip-1]version 2
[RTC-rip-1]network 192.168.2.0
[RTC-rip-1]network 10.0.0.0
----------------------------------------------------------------------------
Peer 192.168.1.2 on Serial0/0/1
Destination/Mask Nexthop Cost Tag Flags Sec
192.168.2.0/30 192.168.1.2 1 0 RA 12
10.1.1.1/32 192.168.1.2 2 0 RA 12
…… RIP neighbor
address, the The metric to destination,
Classless route namely hop count
interface connected and variable
with neighbor subnet mask
[RTA-rip-1]version 2
[RTA-Serial0/0/1]rip version 2 multicast
[RTA]display rip 1
Public VPN-instance
RIP process: 1
RIP version: RIP-2
the same natural network segment are advertised, the route will be
domain routing.
RIPv2 by default will enable the function of route aggregation; when all the
aggregation.
Aggregate
route manually
[RTA-rip-1] preference ?
INTEGER<1-255> Value of Preference
[RTA-rip] preference 150
[RTA-rip] display ip routing-table
Routing Table: public net
Destination/Mask Protocol Pre Cost Nexthop Interface
172.16.0.0/16 RIP 150 0 127.0.0.1 InLoopBack0
192.168.1.0/24 RIP 150 1 192.168.1.2 Ethernet0/0
……
The metric is
[RTA-Serial0/0/0]rip metricout 4
0+4=4
[RTB]display rip 1 route
Route Flags: R - RIP, T - TRIP
P - Permanent, A - Aging, S - Suppressed, G - Garbage-collect
----------------------------------------------------------------------------
Peer 192.168.1.1 on Serial0/0/0
Destination/Mask Nexthop Cost Tag Flags Sec
172.16.1.3/32 192.168.1.1 4 0 RA 5
172.16.1.2/32 192.168.1.1 4 0 RA 5
172.16.1.1/32 192.168.1.1 4 0 RA 5
……