277
[Sysname-bgp] peer 1.1.1.1 capability-advertise suppress-4-byte-as
# In BGP-VPN instance view, enable 4-byte AS number suppression for peer 1.1.1.1.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ip vpn-instance vpn1
[Sysname-bgp-vpn1] peer 1.1.1.1 as-number 200
[Sysname-bgp-vpn1] peer 1.1.1.1 capability-advertise suppress-4-byte-as
Related commands
•
display bgp peer ipv4 unicast
•
display bgp peer ipv6 unicast
peer connect-interface
Use
peer connect-interface
to specify a source interface (IP address/IPv6 address) for establishing TCP
connections to a peer or peer group.
Use
undo peer connect-interface
to restore the default.
Syntax
peer
{
group-name
|
ip-address
|
ipv6-address
}
connect-interface
interface-type
interface-number
undo peer
{
group-name
|
ip-address
|
ipv6-address
}
connect-interface
Default
BGP uses the output interface (IP address/IPv6 address) of the best route destined for the BGP peer or
peer group as the source interface for establishing a TCP connection to the peer or peer group.
Views
BGP view, BGP-VPN instance view
Predefined user roles
network-admin
Parameters
group-name
: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters. The peer
group must have been created.
ip-address
: Specifies a peer by its IP address. The peer must have been created.
ipv6-address
: Specifies a peer by its IPv6 address. The peer must have been created.
interface-type interface-number
: Specifies an interface by its type and number.
Usage guidelines
If the peer's IP address/IPv6 address belongs to an interface indirectly connected to the local router,
specify that interface as the source interface for TCP connections on the peer. For example, interface A
on the local end is directly connected to interface B on the peer. When you execute the
peer
x.x.x.x
as-number
as-number
command on the local end to specify the BGP peer, and x.x.x.x is not the IP
address of interface B, use the
peer connect-interface
command on the peer to specify the interface
whose IP address is x.x.x.x as the source interface for establishing a TCP connection.