27.10.2013 Views

2.5.2 - Force10 Networks

2.5.2 - Force10 Networks

2.5.2 - 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.

access-list 100-199 {deny | permit} {every | icmp | igmp | ip | tcp | udp | protocol_number} {any<br />

| srcip srcmask} {any | eq {portkey | 0-65535}{any | dstip dstmask} [eq {portkey | 0-65535}]<br />

[precedence precedence | tos tos tosmask | dscp dscp] [log] [assign-queue queue-id] [{mirror |<br />

redirect} unit/slot/port]<br />

<strong>Force10</strong> (Config)#access-list 100 permit ip any eq 80 any assign-queue 2 redirect 1/0/40<br />

<strong>Force10</strong> (Config)#<br />

Figure 158 Using the access-list Command for an Extended IP ACL Rule<br />

Note: In both versions of the access-list command, above, srcmask is an inverse mask.<br />

Note: You cannot edit a rule once it is created, you must delete the list and create one as desired.<br />

• Attach a specified ACL to the selected interface:<br />

— ip access-group ACLnumber [1-4294967295] in<br />

The optional 1-4294967295 variable is an integer that indicates the order of application of<br />

this ACL relative to other ACLs assigned to this interface.<br />

<strong>Force10</strong> (Config)#interface 1/0/21<br />

<strong>Force10</strong> (Interface 1/0/21)#ip access-group 100 1 in<br />

Figure 159 Using the ip access-group Command<br />

When the ip access-group command is used in Interface Config mode, it attaches a specified ACL to the<br />

selected interface. In Global Config mode, the command attaches a specified ACL to all interfaces.<br />

• Display a summary of all created IP Access Control Lists (ACLs), or details about the rules that are<br />

defined for a specific ACL:<br />

— show ip access-lists [ACLnumber]<br />

<strong>Force10</strong> #show ip access-lists<br />

Current number of ACLs: 2 Maximum number of ACLs: 100<br />

ACL ID Rules Interface(s) Direction<br />

------ ----- ------------------------- ---------<br />

1 1<br />

100 1 1/0/21 inbound<br />

<strong>Force10</strong> #show ip access-lists 100<br />

ACL ID: 100<br />

Interface: 1/0/21<br />

Rule Number: 1<br />

Action......................................... permit<br />

Match All...................................... FALSE<br />

Protocol....................................... 255(ip)<br />

Source L4 Port Keyword......................... 80(www/http)<br />

Assign Queue................................... 2<br />

Redirect Interface............................. 1/0/40<br />

<strong>Force10</strong> #<br />

Figure 160 Sample show ip access-lists Command Output<br />

SFTOS Configuration Guide, Version <strong>2.5.2</strong>.0 209

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

Saved successfully!

Ooh no, something went wrong!