Network Requirements
- Run RIPng between Device1 and Device2 for route interaction.
Network Topology
Figure 6-1 Networking for configuring RIPng basic functions
Configuration Steps
Step 1: Create VLANs, and add ports to the required VLANs. (Omitted)
Step 2: Configure the IPv6 address of an interface (omitted).
Step 3: Configure RIPng.
#Configure Device1.
Device1#configure terminal
Device1(config)#ipv6 router rip 100
Device1(config-ripng)#exit
Device1(config)#interface vlan2
Device1(config-if-vlan2)#ipv6 rip enable 100
Device1(config-if-vlan2)#exit
Device1(config)#interface vlan3
Device1(config-if-vlan3)#ipv6 rip enable 100
Device1(config-if-vlan3)#exit
|
#Configure Device2.
Device2#configure terminal
Device2(config)#ipv6 router rip 100
Device2(config-ripng)#exit
Device2(config)#interface vlan2
Device2(config-if-vlan2)#ipv6 rip enable 100
Device2(config-if-vlan2)#exit
Device2(config)#interface vlan3
Device2(config-if-vlan3)#ipv6 rip enable 100
Device2(config-if-vlan3)#exit
|
Step 4: Check the result.
#View the IPv6 route table of Device1.
Device1#show ipv6 route
Codes: C - Connected, L - Local, S - static, R - RIP, B - BGP, i-ISIS
U - Per-user Static route
O - OSPF, OE-OSPF External, M - Management
L ::1/128 [0/0]
via ::, 2w4d:19:31:05, lo0
C 2001:1::/64 [0/0]
via ::, 00:21:42, vlan2
L 2001:1::1/128 [0/0]
via ::, 00:21:40, lo0
C 2001:2::/64 [0/0]
via ::, 00:21:34, vlan3
L 2001:2::1/128 [0/0]
via ::, 00:21:33, lo0
R 2001:3::/64 [120/2]
via fe80::201:7aff:fec3:38a4, 00:11:19, vlan3
#Query the IPv6 routing table of Device2.
Device2#show ipv6 route
Codes: C - Connected, L - Local, S - static, R - RIP, B - BGP, i-ISIS
U - Per-user Static route
O - OSPF, OE-OSPF External, M - Management
L ::1/128 [0/0]
via ::, 3d:22:39:31, lo0
R 2001:1::/64 [120/2]
via fe80::201:7aff:fe01:204, 00:12:00, vlan2
C 2001:2::/64 [0/0]
via ::, 00:30:46, vlan2
L 2001:2::2/128 [0/0]
via ::, 00:30:45, lo0
C 2001:3::/64 [0/0]
via ::, 00:29:12, vlan3
L 2001:3::1/128 [0/0]
via ::, 00:29:11, lo0
According to the routing table, you can see that the route advertised by the device uses a 64-bit exact mask.