User Manual

BGP Configuration Examples
220 Enterasys X-Pedition User Reference Manual
communities specified with the optional-attributes-list option are sent in addition to any
received in the route or specified with the group.
In Figure 16, router X-Pedition10 has the following configuration:
In Figure 16, router X-Pedition14 has the following configuration:
Any communities specified with the optional-attributes-list option are sent in addition to any
received with the route or associated with a BGP export destination.
The community attribute may be a single community or a set of communities. A maximum of 10
communities may be specified.
The community attribute can take any of the following forms:
Specific community
#
# Create an optional attribute list with identifier color1 for a community
# attribute (community-id 160 AS 64902)
#
ip-router policy create optional-attributes-list color1 community-id 160 autonomous-system 64902
#
# Create an optional attribute list with identifier color2 for a community
# attribute (community-id 155 AS 64902)
#
ip-router policy create optional-attributes-list color2 community-id 155 autonomous-system 64902
#
# Create a direct export source
#
ip-router policy create direct-export-source 900toanydir metric 10
#
# Create BGP export-destination for exporting routes to AS 64899 containing the
# community attribute (community-id 160 AS 64902). This export-destination has an
# identifier 900to899dest
#
ip-router policy create bgp-export-destination 900to899dest autonomous-system 64899 optional-attributes-list color1
ip-router policy create bgp-export-destination 900to901dest autonomous-system 64901 optional-attributes-list color2
#
# Export routes to AS 64899 with the community attribute (community-id 160 AS
# 64902)
#
ip-router policy export destination 900to899dest source 900toanydir network all
ip-router policy export destination 900to901dest source 900toanydir network all
ip-router policy create bgp-export-destination 899to900dest autonomous-system 64900 optional-attributes-list color1
ip-router policy create bgp-export-destination 899to902dest autonomous-system 64902 optional-attributes-list color2
ip-router policy create bgp-export-source 900toany autonomous-system 64900 metric 10
ip-router policy create optional-attributes-list color1 community-id 160 autonomous-system 64901
ip-router policy create optional-attributes-list color2 community-id 155 autonomous-system 64901
ip-router policy export destination 899to900dest source 899toanydir network all
ip-router policy export destination 899to902dest source 899toanydir network all