02.10.2013 Views

FTOS Configuration Guide for the C-Series - Force10 Networks

FTOS Configuration Guide for the C-Series - Force10 Networks

FTOS Configuration Guide for the C-Series - Force10 Networks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Configuring a MAC address learning limit <strong>for</strong> an interface (optional)<br />

The MAC Address Learning Limit feature is related to MAC ACLs as a way to implement port security. It<br />

enables you to set an upper limit on <strong>the</strong> number of MAC addresses that can be entered <strong>for</strong> a particular<br />

interface in <strong>the</strong> MAC Address Table. After you set a learning limit, and <strong>the</strong> limit is reached, any MAC<br />

addresses encountered by <strong>the</strong> interface are ignored and <strong>the</strong> traffic is dropped. To set a limit on <strong>the</strong> number<br />

of MAC addresses that can access a particular port, use <strong>the</strong> following command in <strong>the</strong> INTERFACE mode:<br />

Step Command Syntax Command Mode Purpose<br />

1 switchport INTERFACE Place <strong>the</strong> interface in Layer 2 mode.<br />

2<br />

mac learning-limit INTERFACE • : Enter a number between 1 and<br />

1000000 (1 million) as <strong>the</strong> maximum<br />

number of MAC addresses that can be<br />

entered in <strong>the</strong> MAC Address Table <strong>for</strong><br />

<strong>the</strong> selected interface.<br />

• dynamic (OPTIONAL): MAC<br />

addresses learned <strong>for</strong> this interface<br />

enter <strong>the</strong> MAC Address Table as<br />

dynamic addresses (<strong>the</strong>y can age out)<br />

when <strong>the</strong> learning limit is set.<br />

• no-station-move (OPTIONAL): Stop<br />

addresses learned on this interface<br />

from being moved to ano<strong>the</strong>r interface<br />

in <strong>the</strong> MAC Address Table.<br />

• (OPTIONAL): Allow a station move on<br />

learned MAC addresses.<br />

As described in Managing <strong>the</strong> MAC Address Table on page 198, dynamic addresses are subject to aging<br />

out of <strong>the</strong> table.<br />

The “sticky MAC” option: MAC addresses learned under a learning limit will enter <strong>the</strong> MAC Address<br />

Table ei<strong>the</strong>r as static or dynamic addresses, depending on whe<strong>the</strong>r <strong>the</strong> dynamic option is set, as described<br />

above. In ei<strong>the</strong>r case, however, if <strong>the</strong> address is <strong>the</strong>n learned on ano<strong>the</strong>r interface, <strong>the</strong> address is moved to<br />

that o<strong>the</strong>r interface in <strong>the</strong> MAC Address Table. This can cause unnecessary MAC shuffling within <strong>the</strong><br />

system, causing unnecessary flooding. The no-station-move option, also commonly called a “sticky<br />

MAC” option, prevents that from happening by causing <strong>the</strong> first entry to persist in <strong>the</strong> table even if <strong>the</strong><br />

address is received on o<strong>the</strong>r interface.<br />

Notes:<br />

• For both <strong>the</strong> dynamic and no-station-move options, addresses entered be<strong>for</strong>e those options are set<br />

are not affected.<br />

• MAC learning should be on a per-VLAN basis.<br />

• Egress ACLs can be applied to interfaces that have those features configured on ingress. Only <strong>the</strong><br />

MAC limit-learned addresses should be permitted on <strong>the</strong> ingress interfaces. ACLs can be applied on<br />

<strong>the</strong> egress (typically to stop unknown protocol traffic). See MAC ACL Implementation on page 190.<br />

200 Layer 2

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!