Network Requirements
- RIPng runs between Device1 and Device2 for route interaction.
- On Device1, configure a passive interface, which does not send update packets to Device2.
Network Topology
Figure 6-6 Networking for configuring an RIPng passive interface
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 2: 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
|
#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 route 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
Step 4: Configure a passive interface.
#Configure Device1.
Device1(config)#interface vlan3
Device1(config-if-vlan3)#ipv6 rip passive
Device1(config-if-vlan3)#exit
|
vlan3 of Device1 is configured as a passive interface, which does not send update packets to Device2, but still can receive update packets.
Step 5: 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:55:37, lo0
C 2001:1::/64 [0/0]
via ::, 00:46:14, vlan2
L 2001:1::1/128 [0/0]
via ::, 00:46:12, lo0
C 2001:2::/64 [0/0]
via ::, 00:46:06, vlan3
L 2001:2::1/128 [0/0]
via ::, 00:46:05, lo0
R 2001:3::/64 [120/2]
via fe80::201:7aff:fec3:38a4, 00:35:51, vlan3
Route 2001:3::/64 is still kept on Device1. On Device2, after the RIPng route times out and is deleted, route 2001:1::/64 is deleted from the routing table.
#Query the IPv6 route 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:23:05:24, lo0
C 2001:2::/64 [0/0]
via ::, 00:56:39, vlan2
L 2001:2::2/128 [0/0]
via ::, 00:56:38, lo0
C 2001:3::/64 [0/0]
via ::, 00:55:05, vlan3
L 2001:3::1/128 [0/0]
via ::, 00:55:04, lo0