Connectivity Guide
Conguring BGP in a non-default VRF instance
To congure BGP in a non-default VRF instance.
1 Assign an AS number, and enter ROUTER-BGP mode from CONFIGURATION mode (1 to 65535 for 2-byte, 1 to 4294967295 for 4-
byte). Only one AS number is supported per system. If you enter a 4-byte AS number, 4-byte AS support is enabled automatically.
router bgp as-number
2 Enter ROUTER-BGP-VRF mode to congure BGP in a non-default VRF instance.
vrf vrf-name
3 Enter a neighbor in CONFIG-ROUTER-VRF mode.
neighbor ip-address
4 Add a remote AS in ROUTER-NEIGHBOR mode, from 1 to 65535 for 2-byte or 1 to 4294967295 for 4-byte.
remote-as as-number
5 Enable the BGP neighbor in ROUTER-NEIGHBOR mode.
no shutdown
6 (Optional) Add a description text for the neighbor in ROUTER-NEIGHBOR mode.
description text
To reset the conguration when you change the conguration of a BGP neighbor, use the clear ip bgp * command. To view the BGP
status, use the
show ip bgp summary command.
Congure BGP
OS10# configure terminal
OS10(config)# router bgp 100
OS10(config-router-bgp-100)# vrf blue
OS10(config-router-vrf)# neighbor 5.1.1.1
OS10(config-router-neighbor)# remote-as 1
OS10(config-router-neighbor)# description n1_abcd
OS10(config-router-neighbor)# exit
OS10(config-router-vrf)# template t1
OS10(config-router-template)# description peer_template_1_abcd
Congure Dual Stack
OS10 supports dual stack for BGPv4 and BGPv6. Dual stack BGP allows simultaneous exchange of same IPv4 or IPv6 prexes through
dierent IPv4 and IPv6 peers. You can enable dual stack using the activate command in the corresponding address-family mode. By
default,
activate command is enabled for the IPv4 address family for all the neighbors.
If a BGP-v4 neighbor wants to carry ipv6 prex information, it activates the IPv6 address-family. For a BGP-v6 neighbor to carry ipv4
prex, it activates the IPv4 address-family.
1 Enable support for the IPv6 unicast family in CONFIG-ROUTER-BGP mode.
address family ipv6 unicast
2 Enable IPv6 unicast support on a BGP neighbor/template in CONFIG-ROUTER-BGP-AF mode.
activate
Congure administrative distance
Routers use administrative distance to determine the best path between two or more routes to reach the same destination. Administrative
distance indicates the reliability of the route; the lower the administrative distance, the more reliable the route. If the routing table manager
440
Layer 3