Configuring a community list

You can configure multiple items for a community list that is identified by a number. The relationship between the items is logical OR. A route that matches one item matches the community list.

To configure a community list:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Configure a community list.

  • Configure a basic community list:ip community-list { basic-comm-list-num | basic basic-comm-list-name } { deny | permit } [ community-number&<1-32> | aa:nn&<1-32> ] [ internet | no-advertise | no-export | no-export-subconfed ] *

  • Configure an advanced community list:ip community-list { adv-comm-list-num | advanced adv-comm-list-name } { deny | permit } regular-expression

By default, no community list is configured.