What is IPv6 Static and Default Route ? How to Configuration

By | 9th November 2015

Static and default routes IP configurations on network routers is to enable communication to remote networks that are not directly connected.

There are similarities when configuring IPv4 and IPv6 static and default routes on Cisco Integrated Services Routers (ISRs), the only difference is the IP addressing formats and IPv6 routing had to be enabled on the router with the ipv6 unicast-routing command in global configuration mode.




Types of IPv6 Static and Default Routes

There are three types of IPv6 static and default routes:

  • Directly Connected IPv6 Static Route – A directly connected static route is enabled when an outgoing interface is specified.

A directly connected static route is normally used with a point-to-point serial interface.

To configure a directly attached IPv6 static route, use the following command format:

e.g.

Router(config)# ipv6 route <ipv6-prefix/prefix-length> <outgoing-interface-type> <outgoing-interface-number>

  • Recursive IPv6 Static Route – A recursive static route is created when specifying the next-hop IP address.

This method enable the router to perform a recursive lookup in the routing table in order to identify the outgoing interface.

In a recursive IPv6 static route, the route entry has the next-hop router IPv6 address.

To configure a recursive IPv6 static route, use the following command format:

e.g.

Router(config)# ipv6 route <ipv6-prefix/prefix-length> <next-hop-ipv6-address>

  • Default IPv6 Static Route – A default IPv6 static route is created by specifying the destination IPv6 prefix and prefix length all zeros, ::/0.

e.g.

Router(config)# ipv6 route ::/0 <outgoing-interface-type> <outgoing-interface-number> {and/or} <next-hop-ipv6-address>




How to Configure IPv6 Static and Default Routes.

We will use the topology below as an example:

IPv6 static and default route How to configure IPv6 static and default route

Step-by-step IPv6 static and default routes configuration.

All router interfaces must be enabled with IPv6 unicast-routing command before further configurations.

If you look closely  at the topology, the routers GigabitEthernet0/1 (G0/1) interface has a globally routable unicast address and EUI-64 is used to create the interface identifier portion of the address.

The S0/0/1 interface has a privately routable, unique-local address, which is recommended for point-to-point serial connections.

 

R1 Configuration.

  1. Enable IPv6 routing, then configure the router G0/1 and serial interface with IPv6 address.

 

R1(config)# ipv6 unicast-routing

R1(config)# interface g0/1

R1(config-if)# ipv6 address 2001:FC8:A72C:A::/64 eui-64

R1(config-if)# no shutdown

R1(config-if)# interface serial 0/0/1

R1(config-if)# ipv6 address FC00::1/64

R1(config-if)# no shutdown

R1(config-if)# exit

 

    R2 Configuration.

 

  1. Enable IPv6 routing, then configure the router G0/1 and serial interface with IPv6 address.

 

R2(config)# ipv6 unicast-routing

R2(config)# interface g0/1

R2(config-if)# ipv6 address 2001:FC8:A72C:B::/64 eui-64

R2(config-if)# no shutdown

R2(config-if)# interface serial 0/0/0

R2(config-if)# ipv6 address FC00::2/64

R2(config-if)# no shutdown

R2(config-if)# exit

How to Configure a directly connected IPv6 static route.

R1(config)# ipv6 route 2001:FC8:A72C:B::/64 serial 0/0/1

R1(config)#




  1. Now create a return route to 2001:FC8:A72C:A::/64 on R2 to successfully ping across the network.

 

R2(config)# ipv6 route 2001:FC8:A72C:A::/64 serial 0/0/0

R2(config)#

Now that both routers have static routes configured on them, communication across the network will be successful.

How to Configure a recursive IPv6 static route.

In a next-hop/recursive static route, the IPv6 address of the neighboring router is specified.

The output interface is derived from the next hop.

Before any packet is forwarded by router, the routing table process must determine the exit interface to use to in order to forward the packet. This causes the router to take a second look at the routing table to determine the exit interface for the destination network.

Firstly, delete the directly enabled static route On router R1, and configure a recursive static route.

R1(config)# no ipv6 route 2001:FC8:A72C:B::/64 serial 0/0/1

R1(config)# ipv6 route 2001:FC8:A72C:B::/64 FC00::2

R1(config)# exit

also, delete the directly enabled static route On router R2, and configure a recursive static route.

R2(config)# no ipv6 route 2001:FC8:A72C:A::/64 serial 0/0/0

R2(config)# ipv6 route 2001:FC8:A72C:A::/64 FC00::1

R2(config)# exit

How to Configure a default IPv6 static route.

In a default static route, the destination IPv6 prefix and prefix length are all zeros.

 

Firstly, delete the recursive static route on router R1 and configure a default static route.

R1(config)# no ipv6 route 2001:FC8:A72C:B::/64 FC00::2

R1(config)# ipv6 route ::/0 serial 0/0/1

R1(config)#

Delete the recursive static route and add a default static route on R2.

R2(config)# no ipv6 route 2001:FC8:A72C:A::/64 FC00::2

R2(config)# ipv6 route ::/0 serial 0/0/0

R2(config)#

Why We Need IPv6.

IPv6 Address Expression and Example.

Types of IPv6 Address

How to Configure IPv6 on Cisco Router.

How DHCPv6 Works

IPv6 Routing Protocols.

IPv6 ACLs

Host Standby Router Protocol (HSRP)

 

Leave a Reply

Your email address will not be published. Required fields are marked *