security firewall name <name> rule <rule-number> ethertype <type>
Specifies the Ethernet type for a firewall rule.
By default, the firewall allows the transmission of known Ethernet-type packets in the network.
- ethertype type
- Specifies matching for the Ethernet type.
type: The Ethernet type; for example, IPv4. You can specify any Ethernet name listed in the /etc/ethertypes file. You can also enter the hexadecimal or decimal value for the Ethernet type.
Configuration mode
security {
firewall {
name name {
rule rule-number {
ethertype type
}
}
}
}
Use this command to configure the firewall to accept or drop specified types of Ethernet packets.
After you define a firewall rule set with the Ethernet type, you must apply it to an interface as a packet filter by using the firewall-related interface commands. Until you apply a firewall rule set to an interface, the set has no effect on traffic destined for or traversing the system.
Use the set form of this command to define the Ethernet type to match.
Use the delete form of this command to delete the Ethernet type.
Use the show form of this command to display the Ethernet type for a firewall rule.