aggregate-address

Syntax

aggregate-address/[as-set] [summary-only] [suppress-map] [advertise-map][属性映射] no aggregate-address/[as-set] [summary-only] [suppress-map] [advertise-map][属性映射]

Description

Creates an aggregate address entry in the BGP routing table.

Thenoform of this command removes the specified aggregate address entry.

Command context

config-bgp-ipv4-uc

config-bgp-ipv6-uc

Parameters

Specifies an aggregate address in IPv4 format (x.x.x.x), wherexis a decimal number from 0 to 255, or IPv6 format (xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx), wherexis a hexadecimal number from 0 to F.

Specifies the number of bits in the address mask in CIDR format (x), wherexis a decimal number from 0 to 128.

as-set

The AS_PATH attribute advertised for this route will contain an AS_SET consisting of all AS numbers contained in all paths that are being summarized.

summary-only

Creates the aggregate route but also suppresses advertisements of more-specific routes to all neighbors.

suppress-map

Specifies an aggregate route for creation, but suppresses the advertisement of the created route. Match clauses of route maps can be used to suppress some more-specific routes of the aggregate selectively, and leave others unsuppressed. IP prefix lists and as_path lists match clauses are supported.

advertise-map

Specifies routes that will be used to build attributes of the aggregate route, such as AS_SET or community.

attribute-map

指定的属性the aggregate route can be changed.

Authority

Administrators or local user group members with execution rights for this command.

Examples

switch(config-bgp-ipv4-uc)#aggregate-address 10.0.0.0/8switch(config-bgp-ipv4-uc)#no aggregate-address 10.0.0.0/8
switch(config-bgp-ipv6-uc)#aggregate-address 2001:0db8:85a3::8a2e:0370:7334/24switch(config-bgp-ipv6-uc)#no aggregate-address 2001:0db8:85a3::8a2e:0370:7334/24
switch(config-bgp-ipv4-uc)#aggregate-address 10.0.0.0/8 as-set summary-onlyswitch(config-bgp-ipv4-uc)#aggregate-address 10.0.0.0/8 attribute-map RMap
switch(config-bgp-ipv6-uc)#aggregate-address 2001:0db8:85a3::8a2e:0370:7334/24 as-set summary-onlyswitch(config-bgp-ipv6-uc)#aggregate-address 2001:0db8:85a3::8a2e:0370:7334/24 attribute-map RMap