Enabling and configuring RIPng interfaces
After enabling RIPng globally, you must enable it on individual device interfaces.
- You can enable RIPng on physical as well as virtual routing interfaces. For example,
to enable RIPng on Ethernet interface 1/3/1, enter the following commands.
device# configure terminal device(config)# interface ethernet 1/3/1 device(config-if-e1000-1/3/1)# ipv6 rip enable
- (Optional) Enable default route learning.
This example originates IPv6 default routes and includes all other routes in updates sent from Ethernet interface 1/3/1.
- (Optional) Configure the interface so that it advertises IPv6 address summaries instead
of the original route.
device(config-if-e1000-1/3/1)# ipv6 address 2001:db8:0:adff:8935:e838:78: e0ff /64 device(config-if-e1000-1/3/1)# ipv6 rip summary-address 2001:db8::/36
This example advertises the summarized prefix 2001:db8::/36 instead of the original IPv6 address from Ethernet interface 1/3/1. - (Optional) Change the metric offset that the interface adds for learned or advertised
routes.
device(config-if-e1000-1/3/1)# ipv6 rip metric-offset 2 device(config-if-e1000-1/3/1)# ipv6 rip metric-offset out 3
- (Optional) Apply a prefix-list to the interface for learned and/or advertised routes.
device(config-if-e1000-1/3/1)# ipv6 rip prefix-list test1 in device(config-if-e1000-1/3/1)# ipv6 rip prefix-list test2 out
The following example enables RIPng on port 1/3/1. It enables learning of default RIPng routes and all other routes. It modifies the interface to send route summaries. It changes the metric for learned routes to 2 and the metric for advertised routes to 3. Finally, it applies a pre-configured prefix list to filter incoming (learned) routes.
device# configure terminal device(config)# interface ethernet 1/3/1 device(config-if-e1000-1/3/1)# ipv6 rip enable device(config-if-e1000-1/3/1)# ipv6 rip default-information originate device(config-if-e1000-1/3/1)# ipv6 address 2001:db8:0:adff:8935:e838:78:e0ff/64 device(config-if-e1000-1/3/1)# ipv6 rip summary-address 2001:db8::/36 device(config-if-e1000-1/3/1)# ipv6 rip metric-offset 2 device(config-if-e1000-1/3/1)# ipv6 rip metric-offset out 3 device(config-if-e1000-1/3/1)# ipv6 rip prefix-list test1 in