Tag: ipv6 default route

  • What is ipv6 route Command? – Brief Explanation

    What is ipv6 route Command? – Brief Explanation

    If you learn how to configure a static route for IPv4 then you can easily configure and understand the IPv6 static routes. The configuration and syntax for IPv6 static routes are similar to IPv4 static routes. There is only a minor difference between IPv4 and IPv6 static routes. The static routes for IPv6 are configured using the ipv6 route command in global configuration mode. The common syntax for the ipv6 route command is following:

    Router(config)# ipv6 route ipv6-prefix/prefix-length { ipv6-address |exit-interface }

    The parameter of the command is mostly identical to the IPv4 version of the command. We can configure the following types of the route using ipv6 route command:

    • Standard IPv6 static route – This is the same as standard IPv4 routing.
    • Default IPv6 static route – This is also the same as the default static ipv4 route
    • Floating IPv6 static route – This is a floating static route also the same to an ipv4 floating route.
    • Summary IPv6 static route – this route is also the same as the summary ipv4 static route.

    To configure ipv6 routing the ipv6 unicast-routing must be configured to enable the router to forward IPv6 packets. The parameter description of ipv6 routing command is the following:

    Ipv6-prefix – This is the first parameter. It specifies the destination network address that required adding into the routing table.

    prefix-length – prefix length of the remote network to add into the routing table.

    Ipv6-address – This is the IP address of the next-hop router. This creates recursive route lookup.

    Exit-Interface –  This is the exit interface to forward packets to the destination network also referred to as directly connected static route. Typically this is used when connecting in a point-to-point configuration.

    Enable ipv6 Routing on the Router

    Enabling ipv6 unicast routing on the router is important. Without enabling  ipv6 unicast ipv6 static routing is not possible, the enabling process is following.

    • Router0>enable
    • Router0#configure terminal
    • Router0(config)#ipv6 unicast routing
    • Router0(config)#exit
    • Router0# wr
    • Building configuration…
    • [OK]
    • Router0>
  • How to configure Default Route

    How to configure Default Route

    A default static route is a route, that represents any network, not in the routing table of that router. Routers normally use default routes that are configured locally or learned from another router, using a dynamic routing protocol.

    A default route is used when there are no other routes that match in the routing table for the destination IP address of the packet. This route is also known as the Gateway of Last Resort. The administrative distance for the default static route is 1. The common use of the default route is the following:

    • An edge router to a service provider network
    • A stub router and Stub network

    The command syntax is also similar to the static route. The only difference between both is the network address. The default static route use a network address 0.0.0.0 and the subnet mask is 0.0.0.0. Instead of the original network address:

    • ip route 0.0.0.0 0.0.0.0 {ip-address | exit-interface }

    Configure a Default Static Route

    Router2 is a stub router because it is only connected to Router1. So, we can configure the default static route and it would be more efficient with default static route.

    The example in the figure configures a default static route on Router1. So, any packets not matching more specific route entries are forwarded to exit interface Fast Ethernet 0/1.

    default route configuration

    Verify a Default Static Route

    We can verify it using, the show ip route command and for more specific output we can use the command as “show ip route static”. The output will show the contents of the routing table. Verify the asterisk (*)next to the route with code ‘S’, the mark for the default static route.

    The asterisk with “S: just like displayed in the Codes table. The asterisk indicates that this static route is a candidate default route, which is why it is selected as the Gateway of Last Resort. The figure below illustrates the static default route from Router2 to exit interface Fast Ethernet 0/1.

    sho ip route static
    How to configure Default Route 5

    As you can see that the subnet mask in the routing table is /0; the subnet mask in a routing table determines how many bits must match between the destination IP address of the packet and the route in the routing table.

    A binary 1 indicates that the bits must match. A binary 0 indicates that the bits do not have to match. A /0 mask in this route entry indicates that no one of the bits is required to match.

    This route matches all packets for which a more specific match does not exist. Following is the video for the default static route configuration.