ZyXEL Communications ES-2024A Switch User Manual


 
ES-2024 Series User’s Guide
Chapter 32 Configuration Mode Commands 230
An example is shown next.
Create a static route with the destination IP address of
172.21.1.104, subnet mask of
255.255.0.0 and the gateway IP address of 192.168.1.2.
Assigns a metric value of 2 to the static route.
Assigns the name
route1 to the static route.
32.9 Enabling MAC Filtering
You can create a filter to drop packets based on the MAC address of the source or the
destination.
Syntax:
mac-filter name <name> mac <mac-addr> vlan <vlan-id>
where
An example is shown next.
Create a filtering rule called “filter1”.
Drop packets coming from and going to MAC address 00:12:00:12:00:12 on VLAN.
32.10 Enabling Trunking
To create and enable a trunk, enter trunk followed by the ports which you want to group and
press
[ENTER].
[name <name>]
= Specifies a descriptive name (up to 32 printable ASCII
characters) for identification purposes.
[inactive]
= Deactivates a static route
sysname(config)# ip route 172.21.1.104 255.255.0.0 192.168.1.2
sysname(config)# ip route 172.21.1.104 255.255.0.0 192.168.1.2 metric 2
sysname(config)# ip route 172.21.1.104 255.255.0.0 192.168.1.2 name route1
name <name>
= Names the filtering rule.
mac <mac-addr>
= Specifies the MAC address you want to filter.
vlan <vlan-id>
= Specifies which VLAN this rule applies to.
sysname(config)# mac-filter name filter1
sysname(config)# mac-filter name filter1 mac 00:12:00:12:00:12 vlan 1