beautypg.com

Map mac macs-group – Allied Telesis AT-S95 CLI User Manual

Page 306

background image

Page 294

Not approved by Document Control. For review only.

Allied Telesis

Command Line Interface User’s Guide

Default Configuration

This command has no default configuration.

Command Mode

Interface Configuration (Ethernet, port-channel) mode

User Guidelines

MAC based VLAN rules cannot contain overlapping ranges on the same interface.

The priority between VLAN classification rules is:

MAC based VLAN (Best match between the rules)

PVID

The interface must be in General Mode to configure a MAC-based classification rule.

Example

The following example sets a mac-based classification rule.

map mac macs-group

The map mac macs-group VLAN Configuration mode command maps a MAC address or a range of MAC
addresses to a group of MAC addresses. Use the no form of this command to delete a map.

Syntax

map mac mac-address {prefix-mask | host} macs-group group

no map mac mac-address {prefix-mask | host}

mac-address — Specifies the MAC address to be entered to the group.

prefix-mask — Specifies the Mask bits. The format is the MAC address format.

host — Specifies all 1’s mask.

group — Specifies the group number. (Range: 1-2147483647)

Default Configuration

This command has no default configuration.

Command Mode

VLAN Configuration mode

User Guidelines

There are no user guidelines for this command.

console(config)# vlan database
console(config-vlan)# map mac 00:08:78:32:98:78 9 macs-group 1
interface ethernet g17
console(config-vlan)# exit
console(config)# interface ethernet 1/g17
console(config-if)# switchport mode general
console(config-if)# switchport general map macs-group 1 vlan 2