39
Figure 7
Network diagram
Configuration procedure
1.
Configure IP addresses for interfaces. (Details not shown.)
2.
Configure basic RIP by using either of the following methods:
(Method 1) # Enable RIP on the specified networks on Router A.
<RouterA> system-view
[RouterA] rip
[RouterA-rip-1] network 1.0.0.0
[RouterA-rip-1] network 2.0.0.0
[RouterA-rip-1] network 3.0.0.0
[RouterA-rip-1] quit
(Method 2) # Enable RIP on the specified interfaces on Router B.
<RouterB> system-view
[RouterB] rip
[RouterB-rip-1] quit
[RouterB] interface gigabitethernet 1/0
[RouterB-GigabitEthernet1/0] rip 1 enable
[RouterB-rip-1] quit
[RouterB] interface gigabitethernet 2/0
[RouterB-GigabitEthernet2/0] rip 1 enable
[RouterB-rip-1] quit
[RouterB] interface gigabitethernet 3/0
[RouterB-GigabitEthernet3/0] rip 1 enable
[RouterB-rip-1] quit
# Display the RIP routing table on Router A.
[RouterA] display rip 1 route
Route Flags: R - RIP
A - Aging, S - Suppressed, G - Garbage-collect, D – Direct
O - Optimal, F - Flush to RIB
----------------------------------------------------------------------------
Peer 1.1.1.2 on GigabitEthernet1/0
Destination/Mask Nexthop Cost Tag Flags Sec
10.0.0.0/8 1.1.1.2 1 0 RAOF 9
Local route
Destination/Mask Nexthop Cost Tag Flags Sec
1.1.1.0/24 0.0.0.0 0 0 RDOF -
2.1.1.0/24 0.0.0.0 0 0 RDOF -
3.1.1.0/24 0.0.0.0 0 0 RDOF -
The output shows that RIPv1 uses natural masks to advertise routing information.
3.
Configure a RIP version: