How to create VLANs on a Vif
View Environment section
Symptoms
I want to aggregate bandwidth and allow the filer to load balance across multiple subnets.
Example:
Management on 192.168.x.x
Server to Server on 172.32.x.x
Production on 10.x.x.x
I want to place the management VLAN on a vif used by Server to Server, Production traffic, or place all traffic on 1 vif across multiple ports to allow maximum bandwidth for production during peak hours and Server to Server backup during non peak hours.
How do I create VLANs on a Vif?
Keywords: aggregated
Solution
1. Create vif (Do not hyphenate vif name. The ifconfig will attempt to use the first hyphen to identify the VLAN ID)
2. Create VLANs on the vif (substitute the vif name for the interface name)
3. Configure VLAN interface(s)
Example:
Vif create multi Vif1 e0a e0b e0c e0d
Vlan create Vif1 10 172 192
Ifconfig Vif1-10 10.x.x.x netmask 255.x.x.x
Ifconfig Vif1-172 172.32.x.x netmask 255.x.x.x
Ifconfig Vif1-192 192.168.x.x netmask 255.x.x.x
If the Filer is part of a cluster, the partner command may be used.
Example:
Ifconfig Vif1-10 10.x.x.x netmask 255.x.x.x Partner Vif1-10
Or
Ifconfig Vif1-10 Partner Vif1-10
To make these configurations persistent across reboots, these commands must be added to the /etc/rc file.
Note:
Prior to Ontap 7.3.3, when using Vlans on a Vif, changing the MTU size could affect all Vlans.
For example:
Configuring vif1-10 with an MTU of 9000 (jumbo frames) wouldl change the MTU of all Vlans and interfaces. This could cause the filer to send packets larger than the hosts other Vlans can process and result in poor or no connectivity on these hosts/Vlans.
Configuring an interface in a VLAN
Using the ifconfig command, you can configure all the parameters for a VLAN interface that you can for a physical interface. The parameters you can configure are
* IP address
* Network mask
* Interface status
* Media type
* MTU size
* Flow control
* Partner
Enter the following command:
ifconfig ifname-vlanid IP_address netmask mask
ifname-vlanid is the VLAN interface name.
IP_address is the IP address for this interface.
mask is the network mask for this interface.
Example
You can configure a VLAN interface e4-10, created in the previous example, using the following command:
ifconfig e4-10 172.25.66.11 netmask 255.255.255.0