Dell Force10 S5000 Getting Started Guide - Page 34

Assigning Interfaces to a VLAN, that VLAN ID.

Page 34 highlights

Assigning Interfaces to a VLAN You can only assign interfaces in Layer 2 mode to a VLAN using the tagged and untagged commands. To place an interface in Layer 2 mode, use the switchport command. You can designate Layer 2 interfaces as tagged or untagged. When you place an interface in Layer 2 mode using the switchport command, the interface is automatically designated untagged and placed in the Default VLAN. To view which interfaces are tagged or untagged and to view which VLAN the interfaces belong, use the show vlan command. To view just the interfaces that are in Layer 2 mode, use the show interfaces switchport command in EXEC Privilege mode or EXEC mode. To tag frames leaving an interface in Layer 2 mode, you must assign that interface to a port-based VLAN to tag it with that VLAN ID. 1. Access the INTERFACE VLAN mode of the VLAN to which you want to assign the interface. CONFIGURATION mode interface vlan vlan-id 2. Enable an interface to include the IEEE 802.1Q tag header. INTERFACE mode tagged interface To move untagged interfaces from the Default VLAN to another VLAN, use the untagged command. 3. Access the INTERFACE VLAN mode of the VLAN to which you want to assign the interface. CONFIGURATION mode interface vlan vlan-id 4. Configure an interface as untagged. This command is available only in VLAN interfaces. INTERFACE mode untagged interface Assigning an IP Address to a VLAN VLANs are a Layer 2 feature. For two physical interfaces on different VLANs to communicate, you must assign an IP address to the VLANs to route traffic between the two interfaces. The shutdown command in INTERFACE mode does not affect Layer 2 traffic on the interface. NOTE: You cannot assign an IP address to the Default VLAN, which, by default, is VLAN 1. To assign another VLAN ID to the Default VLAN, use the default vlan-id vlan-id command. • Configure an IP address and mask on the interface. INTERFACE mode ip address ip-address mask [secondary] 34

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36

Assigning Interfaces to a VLAN
You can only assign interfaces in Layer 2 mode to a VLAN using the
tagged
and
untagged
commands. To place an
interface in Layer 2 mode, use the
switchport
command.
You can designate Layer 2 interfaces as tagged or untagged. When you place an interface in Layer 2 mode using the
switchport
command, the interface is automatically designated untagged and placed in the Default VLAN.
To view which interfaces are tagged or untagged and to view which VLAN the interfaces belong, use the
show vlan
command.
To view just the interfaces that are in Layer 2 mode, use the
show interfaces switchport
command in EXEC
Privilege mode or EXEC mode.
To tag frames leaving an interface in Layer 2 mode, you must assign that interface to a port-based VLAN to tag it with
that VLAN ID.
1.
Access the INTERFACE VLAN mode of the VLAN to which you want to assign the interface.
CONFIGURATION mode
interface vlan
vlan-id
2.
Enable an interface to include the IEEE 802.1Q tag header.
INTERFACE mode
tagged
interface
To move untagged interfaces from the Default VLAN to another VLAN, use the
untagged
command.
3.
Access the INTERFACE VLAN mode of the VLAN to which you want to assign the interface.
CONFIGURATION mode
interface vlan
vlan-id
4.
Configure an interface as untagged. This command is available only in VLAN interfaces.
INTERFACE mode
untagged
interface
Assigning an IP Address to a VLAN
VLANs are a Layer 2 feature. For two physical interfaces on different VLANs to communicate, you must assign an IP
address to the VLANs to route traffic between the two interfaces. The
shutdown
command in INTERFACE mode does
not affect Layer 2 traffic on the interface.
NOTE:
You cannot assign an IP address to the Default VLAN, which, by default, is VLAN 1. To assign another VLAN
ID to the Default VLAN, use the default
vlan-id
vlan-id
command.
Configure an IP address and mask on the interface.
INTERFACE mode
ip address
ip-address mask
[
secondary
]
34