ip large-community-list

Use this command to define a set of BGP Large Community values for use in policy configuration (e.g., route-maps). It functions similarly to standard or extended community-lists and allows reuse of defined large-community patterns.

Use no parameter of this command to remove the configured large community values.

Command Syntax

Copy
ip large-community-list {<1-99> | standard WORD | <100-500> | expanded WORD} {permit | deny} (.AA:NN:MM)
no ip large-community-list {<1-99> | standard WORD | <100-500> | expanded WORD} {permit | deny} (.AA:NN:MM)

Parameters

<1-99>

Specifies a standard large-community-list using a numerical ID. Standard lists match exact values.

standard WORD

Specifies a named standard list that matches exact large-community values.

<100-500>

Specifies an expanded large-community-list using a numerical ID. Expanded lists support regex-style pattern matching.

expanded WORD

Specifies a named expanded list that uses pattern matching for flexible matching criteria.

permit

Permits the specified large-community value(s) to match in a policy.

deny

Denies the specified large-community value(s) from matching.

.AA:NN:MM

A 12-byte large community in the format ASN:Value1:Value2. E.g., 65001:100:1. Large Communities use the format Global Administrator:LocalData1:LocalData2, where each field is a 32-bit integer.

Default

None

Command Mode

Configure mode

Applicability

Introduced in OcNOS version 6.6.1.

Example

The following example demonstrates how to configure different types of BGP Large Community lists in OcNOS and verify them using the show command.

Creates a standard large-community-list with numeric ID 1 and permits the community 4:5:6.

Copy
OcNOS#configure terminal
OcNOS(config)#ip large-community-list 1 permit 4:5:6
OcNOS(config)#commit

Creates an expanded large-community-list with numeric ID 150 and denies the community 1000:2000:3000.

Copy
OcNOS(config)#ip large-community-list 150 deny 1000:2000:3000
OcNOS(config)#commit

Defines a named expanded list called EXPTEST and permits the community 5500:3000:2000.

Copy
OcNOS(config)#ip large-community-list expanded EXPTEST permit 5500:3000:2000
OcNOS(config)#commit

Defines a named standard list called STDTEST and permits the community 50:50:50.

Copy
OcNOS(config)#ip large-community-list standard STDTEST permit 50:50:50
OcNOS(config)#commit

Verify the configured lists using show ip large-community-list command.

Copy
OcNOS#show ip large-community-list
Large community standard list 1
    permit 4:5:6
Large community (expanded) list 150
    deny 1000:2000:3000
Named large community expanded list EXPTEST
    permit 5500:3000:2000
Named large community standard list STDTEST
    permit 50:50:50