switchport allowed ethertype

Use this command to indicate which types of traffic will be allowed on the switchport.

A maximum of 5 Ethertype values can be assigned on an interface.

Command Syntax

Copy
switchport allowed ethertype {arp|ipv4|ipv6|ETHTYPE|log}
Copy
switchport allowed ethertype mpls

Parameters

arp

ARP traffic

ipv4

IPv4 traffic

ipv6

IPv6 traffic

mpls

MPLS traffic

ETHTYPE

Traffic of any Ethertype value (0x600 - 0xFFFF).

log

Log unwanted ethertype packets.

Default

None

Command Mode

Interface mode

Applicability

This command was introduced before OcNOS version 1.3.

This command is not available on Qumran platforms.

Example

Copy
(config)#interface xe32/1
(config-if)#switchport
(config-if)#switchport allowed ethertype ipv4
(config-if)#switchport allowed ethertype 0x800