Default routing (not on blueprint)

General information on “Default routing”:

Static default doute

General information on “Static default route”:

“Static default route” CLI configuration commands:

## Configuring a static IPv4 default route
Router(config-router)# ip route 0.0.0.0 0.0.0.0 [<next-hop-ip> | <exit-if>] [<ad>]

## Configuring a static IPv6 default route
Router(config-router)# ipv6 route ::/0 [<next-hop-ip> | <exit-if>] [<ad>]

EIGRP default route

In EIGRP there are two ways:

  1. Static route + redistribution/network command:
    • Configure a static default route
    • Inject the route via redistribution (IPv4 + IPv6) or the network command (IPv4 only)
  2. Summary-address:
    • In EIGRP classic mode: Configured on the interface running EIGRP
    • In EIGRP named mode: Configured under the af-interface within the EIGRP process

“EIGRP default route” CLI configuration commands:

## Configuring an EIGRP default route using redistribution (classic mode)
Router(config)# ip route 0.0.0.0 0.0.0.0 [<next-hop-ip> | <exit-if>] [<ad>]
Router(config-router)# redistribute static metric [metric parameters]

## Configuring an EIGRP default route using the network command (classic mode)
Router(config)# ip route 0.0.0.0 0.0.0.0 [<next-hop-ip> | <exit-if>] [<ad>]
Router(config-router)# network 0.0.0.0 0.0.0.0

## Configuring an EIGRP default route using redistribution (named mode)
Router(config)# ip route 0.0.0.0 0.0.0.0 [<next-hop-ip> | <exit-if>] [<ad>]
Router(config-router-af-topology)# redistribute static metric [metric parameters]

## Configuring an EIGRP default route using the network command (named mode)
Router(config)# ip route 0.0.0.0 0.0.0.0 [<next-hop-ip> | <exit-if>] [<ad>]
Router(config-router-af-topology)# network 0.0.0.0 0.0.0.0

## Configuring an EIGRP default route using the summary-address (classic mode)
Router(config-if)# ip summary-address eigrp <asn> 0.0.0.0 0.0.0.0

## Configuring an EIGRP default route using the summary-address (named mode)
Router(config-router-af-interface)# summary-address 0.0.0.0 0.0.0.0

OSPF default route

General information about “OSPF default route”:

## Injecting an OSPF default route within normal areas
Router(config)# router ospf <pid>
Router(config-router)# default-information-originate [always | metric | metric-type | route-map]

## Injecting an OSPF default route within a NSSA
Router(config)# router ospf <pid>
Router(config-router)# area <id> nssa default-information-originate [metric | metric-type | route-map | nssa-only | ...]

BGP default route

In BGP there are three ways:

  1. Using the network command:
    • The default route must be in the routing table
    • Can be configured globally
  2. Using redistribution:
    • The default route must be in the routing table and learned by the protocol redistributing from
    • Can be configured globally
  3. Using unconditional origination:
    • The default route must not be in the routing table
    • Can be configured on a per-neighbor basis

“BGP default route” CLI configuration commands:

## Configuring a BGP default route using the network command
Router(config)# router bgp <asn>
Router(config-router)# address-family [ipv4 | ipv6 | vpnv4 | ...]
Router(config-router-af)# network 0.0.0.0

## Configuring a BGP default route using redistribution
Router(config)# router bgp <asn>
Router(config-router)# address-family [ipv4 | ipv6 | vpnv4 | ...]
Router(config-router-af)# redistribute <protocol>
Router(config-router-af)# default-information originate

## Configuring an unconditional BGP default route on a per-neighbor basis
Router(config)# router bgp <asn>
Router(config-router)# address-family [ipv4 | ipv6 | vpnv4 | ...]
Router(config-router-af)# neighbor <ip> default-originate