Static Route Configuration on Cisco IOS-XR Routers

Here are sample static route configuration on Cisco IOS-XR routers such as CRS and ASR9000.

1.Configure IPv4 default route to next hop 192.168.10.3 (via Bundle-Ether1)

router static
address-family ipv4 unicast
0.0.0.0/0 Bundle-Ether1 192.168.10.3

 

2.Configure IPv4 default route to next hop 192.168.10.3 (via Bundle-Ether1) underr vrf management

router static
vrf management
address-family ipv4 unicast
0.0.0.0/0 Bundle-Ether1 192.168.10.3

 

3. Configure IPv4 for 192.168.0.0/16 range to Null interface (e.g. for BGP advertisement) with 100 distance metric

router static
address-family ipv4 unicast
192.168.0.0/16  Null0 100

 

4. .Configure IPv6 default route to next hop fdff:13aa:8bbb:0:192:168:10:3 (via Bundle-Ether1)

router static
address-family ipv6 unicast
::/0  Bundle-Ether1 fdff:13aa:8bbb:0:192:168:10:3

 

5. Configure IPv6 for fdff:13aa::/48 range to Null interface (e.g. for BGP advertisement) with 100 distance metric

router static
address-family ipv6 unicast
fdff:13aa::/48  Null0 100

Be First to Comment

Leave a Reply

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