R3303-HP HSR6800 Routers IP Multicast Command Reference
240
Examples
# In IPv4 MBGP address family view, configure the preferred value as 50 for routes from peer 131.108.1.1.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] peer 131.108.1.1 as-number 100
[Sysname-bgp] ipv4-family multicast
[Sysname-bgp-af-mul] peer 131.108.1.1 enable
[Sysname-bgp-af-mul] peer 131.108.1.1 preferred-value 50
peer public-as-only (MBGP address family view)
Use peer public-as-only to not keep private AS numbers in BGP updates sent to a peer or a peer group.
Use undo peer public-as-only to keep private AS numbers in BGP updates sent to a peer or a peer group.
Syntax
peer { group-name | ip-address } public-as-only
undo peer { group-name | ip-address } public-as-only
Default
Outgoing BGP updates can carry private AS numbers.
Views
IPv4 MBGP address family view
Default command level
2: System level
Parameters
group-name: Specifies an IPv4 MBGP peer group by its name, a string of 1 to 47 characters.
ip-address: Specifies an IPv4 MBGP peer by its IP address.
Usage guidelines
The command does not take effect on BGP updates with both public and private AS numbers. The range
of private AS numbers is from 64512 to 65535.
Examples
# In IPv4 MBGP address family view, disable updates sent to the peer group test from carrying private
AS numbers.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] group test external
[Sysname-bgp] peer test as-number 200
[Sysname-bgp] ipv4-family multicast
[Sysname-bgp-af-mul] peer test enable
[Sysname-bgp-af-mul] peer test public-as-only