System information
Configuring BGP
12-65
community-list-number identifies the community list.
permit indicates accept the advertisements.
deny indicates reject the advertisements.
local-as indicates the well-known community Local-AS.
3. To create a community list that accepts or rejects advertisements with a
well-known community on the Internet, use the ip community-list internet
command in Global Configuration mode as shown below:
MOT(config)#ip community-list internet <community-list-number>
{permit | deny} internet
where:
community-list-number identifies the community list.
permit indicates accept the advertisements.
deny indicates reject the advertisements.
internet is the name of the Internet community.
4. To create a community list that accepts or rejects advertisements with
"No-Advertise" community, use the ip community-list no-advertise command in
Global Configuration mode as shown below:
MOT(config)#ip community-list <community-list-number> {permit | deny}
no-advertise
where:
community-list-number identifies a community list.
permit indicates accept the advertisements.
deny indicates reject the advertisements.
no-advertise is the name of a well-known community.
5. To create a community list that accepts or rejects advertisements from an AS, or
to advertise a route to IBGP peers only, use the ip community-list no-export
command in Global Configuration mode as shown below:
MOT(config)#ip community-list <community-list-number> {permit | deny}
no-export