16 l2 configuration – ADLINK aTCA-N700 User Manual

Page 21

Advertising
background image

Switch Manager Configuration Guide

21

The following commands are available for ACL.

Command description

acl add <0-1> ACTION QUALIFIER

Add a ACL rule.

acl clear

Clear all ACL rule and init acl table.

acl delete <0-1023>

Clear a specified ACL rule.

acl list actions

List all ACL actions.

acl list qualifiers

List all ACL qualifiers.

Example

Add an ACL rule to make all packets with source IP in the 10.10.10.0 network segment redirect to

port xe0.

4.2.16 L2 Configuration

A device maintains a MAC address table for frame forwarding. Each entry in this table indicates

the MAC address of a connected device, to which interface this device is connected and to which

VLAN the interface belongs. After adding a MAC address into the L2 table, the packets with that

MAC address can be forwarded to the destination by the L2 table directly rather than by

broadcasting.

The following commands are available for L2 configuration.

Command description

l2 add MAC_ADDR <1-4095> PORT_ID

Add Ethernet MAC address to L2

table

l2 add MAC_ADDR <1-4095> PORT_ID l3

TRUE/FALSE hit TRUE/FALSE

Add Ethernet MAC address to L2

table by using L3 lookup

l2 delete MAC_ADDR <1-4095>

Remove item from L2 table

l2 init

Initialize layer-2 tables

ATCA-N700# acl add 0 redirectport=xe0 srcip=10.10.10.10/255.255.255.0

ATCA-N700# show acl

index priority action qualifiers......

0 0 RedirectPort=xe0 SrcIp=10.10.10.10/255.255.255.0

Advertising