Step
1.
Enter system view.
2.
Enter BGP instance view or
BGP-VPN instance view.
3.
Specify the
address of TCP connections
to a peer or peer group.
4.
Specify the source interface
of TCP connections to a peer
or peer group.
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 unicast/multicast address family):
Step
1.
Enter system view.
Command
system-view
•
Enter BGP instance view:
bgp as-number [ instance
instance-name
[ multi-session-thread ]
•
Enter BGP-VPN instance
view:
a. bgp
b. ip
source
IPv6
peer { group-name | ipv6-address
[ prefix-length ] } source-address
source-ipv6-address
peer { group-name | ipv6-address
[
prefix-length
connect-interface interface-type
interface-number
Command
system-view
as-number
[
instance
instance-name
[ multi-session-thread ]
vpn-instance
vpn-instance-name
]
221
Remarks
N/A
]
N/A
]
By default, BGP uses the IPv6
address of the output interface in
the optimal route to the BGP peer
or peer group as the source
}
address of TCP connections to the
peer or peer group.
Remarks
N/A