203
Step Command Remarks
2. Enter BGP view or BGP-VPN
instance view.
• Enter BGP view:
bgp as-number
• Enter BGP-VPN instance
view:
a. bgp as-number
b. ip vpn-instance
vpn-instance-name
N/A
3. Specify the source IPv6
address of TCP connections
to a peer or peer group.
peer
ipv6-address
[ prefix-length ]
source-address
source-ipv6-address
peer
group-name
source-address
source-ipv6-address
The
peer
source-address
command is available in Release
1121 and later.
By default, BGP uses the primary
IPv6 address of the output
interface in the optimal route to a
peer or peer group as the source
address of TCP connections to the
peer or peer group.
4. Specify the source interface
for establishing TCP
connections to a peer or peer
group.
peer
{ group-name | ipv6-address
[ prefix-length ] }
connect-interface
interface-type
interface-number
Generating BGP routes
BGP can generate routes in the following ways:
• Advertise local networks.
• Redistribute IGP routes.
Injecting a local network
Perform this task to inject a network in the local routing table to the BGP routing table, so BGP can
advertise the network to BGP peers. The ORIGIN attribute of BGP routes advertised in this way is
IGP. You can also use a routing policy to control route advertisement.
The specified network must be available and active in the local IP routing table.
To inject a local network (IPv4):
Step Command Remarks
1. Enter system view.
system-view
N/A
2. Enter BGP view or BGP-VPN
instance view.
• Enter BGP view:
bgp as-number
• Enter BGP-VPN instance
view:
a. bgp as-number
b. ip vpn-instance
vpn-instance-name
N/A
3. Enter BGP IPv4 unicast
address family view or
BGP-VPN IPv4 unicast
address family view.
address-family ipv4
[
unicast
]
N/A
4. Inject a local network to the
BGP routing table.
network
ip-address [ mask |
mask-length ] [
route-policy
route-policy-name ]
By default, BGP does not
advertise any local network.