iTranslated by AI

The content below is an AI-generated translation. This is an experimental feature, and may contain errors. View original article
📝

Configuring VLAN Packet Filtering on Allied Telesis L3 Switches

に公開

Purpose

I purchased an Allied Telesis x510-28GTX L3 switch and have been using it at home. Since I needed to configure VLANs and packet filters, I am summarizing the procedure here.

Prerequisites

  • VLANs are configured.
  • IP addresses are set on the VLAN interfaces.
    • The device is configured to operate as an L3 switch.

Procedure

  1. Create a Hardware access list (list)
  2. Create a Hardware access list (seq entry)
  3. Create a VLAN access map
  4. Apply the access map to the VLAN
  5. Verify the operation

1. Creating an access-list hardware (list)

A hardware access list can only have a single entry. Therefore, there is no implicit deny.
Consequently, you create an access-list hardware (list) and add multiple entries within it.
The official manual describes this as a configuration using sequence numbers.
Relevant page in the official manual

awplus(config)# access-list hardware listname

2. Creating an access-list hardware (seq entry)

# Drop IP packets from hosts in 192.168.100.0/24 to 192.16.0.0/24
awplus(config-ip-hw-acl)# deny ip 192.168.100.0/24 192.16.0.0/24

For detailed commands, please refer to the official reference.

3. Creating a VLAN access map

Use a VLAN access map to specify the hardware access list to be used for filtering.

# Create an access map named deny-rule and apply the access list listname
awplus(config)# vlan access-map deny-rule
awplus(config-vlan-access-map)# match access-group listname

4. Applying the access map to the VLAN

# Apply the VLAN access map deny-rule to vlan48
awplus(config)# vlan filter deny-rule vlan-list 48 input

5. Verification

# Display information about the VLAN access maps
awplus# show vlan access-map
# Display information about the VLAN access map deny-rule applied to the VLAN interface
awplus# show vlan filter deny-rule

As needed, use the ping command to verify that the packet filter is operating correctly.

References

https://www.allied-telesis.co.jp/support/list/switch/x510/rel/5.4.2a-0.1/001763a/docs/overview-30.html
https://www.allied-telesis.co.jp/support/list/switch/x510/rel/5.4.3-0.1/001763b/docs/access-group@116INTERFACE.html
https://www.allied-telesis.co.jp/support/list/switch/x510/rel/5.4.3-0.1/001763b/docs/overview-33.html
https://www.allied-telesis.co.jp/support/list/switch/x510/rel/5.4.7-0.1/613-001763_S/docs/vlan_access-map@100CONFIG.html
https://www.allied-telesis.co.jp/support/list/awp/rel/5.5.0-1.1/613-001763_AJ/docs/vlan_filter@100CONFIG.html
https://www.allied-telesis.co.jp/support/list/awp/rel/5.5.0-1.1/613-001763_AJ/docs/show_vlan_access-map@020ENABLEEXEC.html
https://www.allied-telesis.co.jp/support/list/awp/rel/5.5.0-1.1/613-001763_AJ/docs/show_vlan_filter@020ENABLEEXEC.html

GitHubで編集を提案

Discussion