F3215-HP Load Balancing Module Network Management Command Reference-6PW101
283
ip-address: Specifies an IP address of a peer.
as-number: Specifies the AS number of the peer or peer group, in the range of 1 to 4294967295.
Usage guidelines
You can specify the AS number of a peer in either of the following ways:
• Use the peer ip-address as-number as-number command. After that, the system creates the
specified peer by default.
• Specify the AS number of the peer when adding it to the specified peer group by using the peer
ip-address group group-name as-number as-number command. As an alternative, use the peer
as-number command to specify the AS number of a peer group so that a newly added peer
belongs to the AS.
The AS number of a peer/peer group cannot be modified directly. To do so, you have to delete the
peer/peer group and configure it again.
Examples
# In BGP view, specify peer group test in AS 100.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] peer test as-number 100
peer as-path-acl (BGP view)
Use peer as-path-acl to configure the filtering of routes incoming from or outgoing to a peer/peer group
based on a specified AS path ACL.
Use undo peer as-path-acl to remove the configuration.
Syntax
peer { group-name | ip-address } as-path-acl as-path-acl-number { export | import }
undo peer { group-name | ip-address } as-path-acl as-path-acl-number { export | import }
Default
No AS path ACL filtering is configured.
Views
BGP view
Default command level
2: System level
Parameters
group-name: Specifies the name of a peer group, a string of 1 to 47 characters.
ip-address: Specifies an IP address of a peer.
as-path-acl-number: Specifies an AS path ACL number, in the range of 1 to 256.
export: Filters outgoing routes.
import: Filters incoming routes.
Examples
# In BGP view, reference the AS path ACL 1 to filter routes outgoing to the peer group test.