351
2-byte AS numbers instead of 4-byte AS numbers, the session cannot be established. To resolve this issue,
enable the 4-byte AS number suppression function. The device then sends an Open message to inform
the peer that it does not support 4-byte AS numbers, so the BGP session can be established.
If the peer device supports 4-byte AS numbers, do not enable the 4-byte AS number suppression
function.
Otherwise, the BGP session cannot be established.
Examples
# In BGP view, enable 4-byte AS number suppression for peer 1.1.1.1.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] peer 1.1.1.1 as-number 100
[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
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.