S e n d d o c u m e n t a t i o n c o m m e n t s t o m d s f e e d b a c k - d o c @ c i s c o . c o m
45-6
Cisco MDS 9000 Family CLI Configuration Guide
OL-16184-01, Cisco MDS SAN-OS Release 3.x
Chapter 45 Configuring IPv4 for Gigabit Ethernet Interfaces
VLANs
Configuring the VLAN Subinterface
To configure a VLAN subinterface (VLAN ID), follow these steps:
Interface Subnet Requirements
Gigabit Ethernet interfaces (major), subinterfaces (VLAN ID), and management interfaces (mgmt 0) can
be configured in the same or different subnet depending on the configuration (see
Table 45-1
).
Note
The configuration requirements in
Table 45-1
also apply to Ethernet PortChannels.
Command
Purpose
Step 1
switch#
config terminal
switch(config)#
Enters configuration mode.
Step 2
switch(config)#
interface gigabitethernet 2/2.100
switch(config-if)#
Specifies the subinterface on which 802.1Q
is used (slot 2, port 2, VLAN ID 100).
Note
The subinterface number, 100 in this
example, is the VLAN ID. The
VLAN ID ranges from 1 to 4093.
Step 3
switch(config-if)#
ip address 10.1.1.101
255.255.255.0
Enters the IPv4 address (10.1.1.100) and
subnet mask (255.255.255.0) for the Gigabit
Ethernet interface.
Step 4
switch(config-if)#
no shutdown
Enables the interface.
Table 45-1
Subnet Requirements for Interfaces
Interface 1
Interface 2
Same Subnet
Allowed
Notes
Gigabit Ethernet 1/1
Gigabit Ethernet 1/2
Yes
Two major interfaces can be configured in the same
or different subnets.
Gigabit Ethernet 1/1.100 Gigabit Ethernet 1/2.100
Yes
Two subinterfaces with the same VLAN ID can be
configured in the same or different subnets.
Gigabit Ethernet 1/1.100 Gigabit Ethernet 1/2.200
No
Two subinterfaces with different VLAN IDs cannot
be configured in the same subnet.
Gigabit Ethernet 1/1
Gigabit Ethernet 1/1.100
No
A subinterface cannot be configured on the same
subnet as the major interface.
mgmt0
Gigabit Ethernet 1/1.100
No
The mgmt0 interface cannot be configured in the
same subnet as the Gigabit Ethernet interfaces or
subinterfaces.
mgmt0
Gigabit Ethernet 1/1
No