120Configuring basic settings of a VLAN interfaceYou can use VLAN interfaces to provide Layer 3 communication between hosts of different VLANs. VLANinterfaces are virtual interfaces used for Layer 3 communication between different VLANs. They do notexist as physical entities on devices. For each VLAN, you can create one VLAN interface. You can assignthe VLAN interface an IP address and specify the IP address as the gateway address for the devices inthe VLAN, so that traffic can be routed to other IP subnets.Configuration procedureTo configure basic settings of a VLAN interface:Step Command Remarks1. Enter system view. system-view N/A2. Create a VLAN interfaceand enter VLAN interfaceview.interface vlan-interfacevlan-interface-idIf the VLAN interface already exists, youenter its view directly.• When the device starts up with emptyconfiguration, the software initial settingsare used, and no VLAN interface existson the device.• When the device starts up with thedefault configuration file, the softwaredefault settings are used, and VLANinterface 1 exists on the device.For more information about the initialsettings and default configuration file, seeFundamentals Configuration Guide.3. Assign an IP address to theVLAN interface.ip address ip-address{ mask | mask-length }[ sub ]Optional.• When the device starts up with emptyconfiguration, the software initial settingsare used, and no IP address is configuredfor a VLAN interface.• When the device starts up with thedefault configuration file, the softwaredefault settings are used, and VLANinterface 1 automatically obtains an IPaddress through DHCP.4. Configure a description forthe VLAN interface. description textOptional.By default, the description of a VLAN is theVLAN interface name. For example,Vlan-interface1 Interface.5. Set the MTU for the VLANinterface. mtu size Optional.By default, the MTU is 1500 bytes.6. Restore the default settingsfor the VLAN interface. default Optional.