cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
564
Views
10
Helpful
3
Replies

VACL Question

oliclarke7
Level 1
Level 1

Hi All,

 

I am currently studying towards my CCNP Switch (300-115) exam, and need a little bit of help with VLAN Access-Lists.

 

In the below configuration, i am a little confused what the point of the config starting 'vlan access-map NOT-TO-SERVER 20' is. I get that the first 3 lines essentially prevents a host communicating with the host stated in ACL 100, however im a little puzzled by the next bit. 

SW1(config)#vlan access-map NOT-TO-SERVER 10
SW1(config-access-map)#match ip address 100
SW1(config-access-map)#action drop
SW1(config-access-map)#vlan access-map NOT-TO-SERVER 20
SW1(config-access-map)#action forward

 If you'd like to see the full config/topology, please go to the link below:

https://networklessons.com/cisco/ccie-routing-switching/vlan-access-list-vacl/

 

Kind regards,

 

Oli

1 Accepted Solution

Accepted Solutions

chrihussey
VIP Alumni
VIP Alumni

Without the  "vlan access-map  NOT-TO-SERVER  20 " and  the subsequent action forward, the route map would not allow any other packets to be forwarded. Consider it to be like an ACL with the implicit deny all at the end. It needs the match to allow all the other packets.

Hope this helps

View solution in original post

3 Replies 3

Reza Sharifi
Hall of Fame
Hall of Fame

Hi,

SW1(config-access-map)#vlan access-map NOT-TO-SERVER 20

This is the same line but with a different sequence number (20)

and this line

SW1(config-access-map)#action forward

 Forward everything else, meaning communication from other hosts (192.168.1.1 and 2) is not blocked (forwarded).

HTH

chrihussey
VIP Alumni
VIP Alumni

Without the  "vlan access-map  NOT-TO-SERVER  20 " and  the subsequent action forward, the route map would not allow any other packets to be forwarded. Consider it to be like an ACL with the implicit deny all at the end. It needs the match to allow all the other packets.

Hope this helps

Ah, thank you! I get it now. So basically if that command wasn't there, it would still drop all packets if they did not match Access-list 100.... kind of like a 'deny all' statement at the end of an ACL like you said.

 

Thanks again,

 

Oli

Review Cisco Networking for a $25 gift card