Foundry Networks Switch and Router Installation And Configuration Manual page 976

Switch and router
Table of Contents

Advertisement

Foundry Switch and Router Installation and Configuration Guide
2.
Enter the following command in the file to add a MAC VLAN entry to the file:
ext mac-vlan <mac-addr> <vlan-id> ethernet <portnum> [priority <num>]
The <mac-addr> parameter specifies the source MAC address you want to the switch to check for.
The <vlan-id> parameter specifies the VLAN to which you want the switch to assign packets that match the
other values in this command.
The <portnum> parameter specifies the source port. A packet matches this VLAN entry only if the source
MAC address and source port match the values you specify.
The priority <num> parameter optionally changes the QoS priority for packets that match this entry. You can
specify normal or high-priority. The default is normal.
3.
Repeat step 2 for each source MAC address and source port.
4.
Save the file and copy it to the TFTP server.
5.
Enter the following command on the switch at the global CONFIG level of the CLI to identify the MAC VLAN
file name and location:
ext get config-file <ip-addr> <external-file-name>
The <ip-addr> specifies the IP address of the TFTP server.
The <external-file-name> parameter specifies the name of the text file containing the ext mac-vlan
commands.
6.
Enter the following command on the switch to save the configuration change to flash memory:
write memory
Loading a MAC VLAN List
The switch automatically uses the information you enter with the ext get config-file command to load the MAC
VLAN list the next time you reload the switch. However, you can load a MAC VLAN list at any time by entering the
following command at the Privileged EXEC level of the CLI.
Syntax: ext refresh config-file <ip-addr> <external-file-name>
The <ip-addr> parameter specifies the IP address of the TFTP server on which you placed the MAC VLAN file.
The <external-file-name> parameter specifies the name of the MAC VLAN file.
This command adds the entries in the MAC VLAN list to the MAC table. Existing entries in the table are not
cleared.
Specifying a Default VLAN for MAC Addresses That Are Not in the MAC VLAN
List
You can specify a default port-based VLAN for MAC addresses that the switch receives from sources other than
the MAC VLAN list you configure. For example, if a host plugs into the network and that host's MAC address is
not in the MAC VLAN list, the switch assigns that VLAN to the default VLAN you specify.
You can specify the default VLAN on an individual interface basis. You can specify the same VLAN or different
VLANs on each interface.
To specify the default VLAN for an interface, enter commands such as the following:
FastIron(config)# int e 1
FastIron(config-if-1)# mvlan-mode 2
FastIron(config-if-1)# write memory
Syntax: mvlan-mode <vlan-id>
25 - 56
December 2000

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents