Mac-Address - H3C MSR Series Command Reference Manual

Comware 5 layer 2 - lan switching
Hide thumbs Also See for MSR Series:
Table of Contents

Advertisement

Usage guidelines
To connect a VLAN to multiple subnets, assign one primary IP address and multiple secondary IP
addresses to a VLAN-interface. The maximum number of IP addresses that can be assigned to a
VLAN-interface is 512.
When you configure IP addresses for a VLAN-interface, follow these rules:
The primary IP address you assign to a VLAN-interface overwrites the previous one, if any.
Remove all secondary IP addresses before you remove the primary IP address.
To remove all IP addresses, use the undo ip address command without any parameter.
To remove the primary IP address, use the undo ip address ip-address { mask | mask-length }
command.
To remove a secondary IP address, use the undo ip address ip-address { mask | mask-length }
sub command.
Examples
# Specify the IP address as 1.1.0.1, the subnet mask as 255.255.255.0 for VLAN-interface 1.
<Sysname> system-view
[Sysname] interface vlan-interface 1
[Sysname-Vlan-interface1] ip address 1.1.0.1 255.255.255.0
Related commands
display ip interface (Layer 3—IP Services Command Reference)

mac-address

Use mac-address to assign a MAC address to a VLAN-interface.
Use undo mac-address to restore the default.
Syntax
mac-address mac-address
undo mac-address
Views
VLAN-interface view
Default command level
2: System level
Parameters
mac-address: Specifies a MAC address in the format of H-H-H.
Usage guidelines
VLAN-interfaces are virtual interfaces that are manually created and removed. Upon creation, a
VLAN-interface borrows the MAC address of a physical interface on the device. For this reason, all
VLAN-interfaces on a device share the same MAC address. In some applications, to avoid MAC
address collisions, use this command to set different MAC addresses for different VLAN-interfaces.
Examples
# Assign MAC address 0001-0001-0001 to VLAN-interface 11.
<Sysname> system-view
[Sysname] interface vlan-interface 11
[Sysname-Vlan-interface11] mac-address 1-1-1
20

Advertisement

Table of Contents
loading

Table of Contents