中文网站
  Advanced Search
Read the latest Blogs from IT professionals in the field. Read and write community created documents. Need IT help? Ask our staff. Connect with your peers. Check our Tech Shop for posters, books and software tools. Home

6.2.1.2 Configuring Static Routes in IPv6

Using static routes in IPv6 is similar to configuring static routes for IPv4 with a few differences. A
new command, ipv6 route, is used to configure IPv6 static routes and some of the IPv4 keywords are
not yet supported. The command structure is as follows:

Note that a floating static route must be configured with a greater administrative distance parameter than any dynamic routing protocol because routes with smaller administrative distances are preferred. By default, static routes have smaller administrative distances than dynamic routes.

Examples

a) In the following example the IPv6 default route is configured to point to serial interface 2/0:Router(config) # ipv6 route ::/0 serial 2/0
b) This example shows a normal route configured to go through serial interface 0:Router(config) # ipv6 route 2001:0db8::/32 serial 0
c) In this example an additional (optional) IPv6 address is configured for the next hop:Router(config) # ipv6 route 2001:0db8::/32 ethernet 0 fe80::1
d) The following example shows how a static route can be configured with just the next hop IPv6 address omitting any interface specification: Router(config) # ipv6 route 2001:0db8::/32 2002:806b:f0fe::1