Configuring VLAN for DELL switches (depending on the version of the OS switch syntax may vary slightly.
Before you configure the VLAN on the switch interfaces, you must make the switch in the VLAN database and create a VLAN interface:
console(config)# vlan database console(config-vlan)# vlan 1972 console(config-vlan)# end console(config)# interface vlan 1972 console(config-if)# name Marketing console(config-if)# end
Then you can perform VLAN configuration on the switch ports:
console(config)# interface ethernet 1/e8 console(config-if)# switchport mode access console(config-if)# switchport access vlan 23 console(config-if)# end console(config)# interface ethernet 1/e9 console(config-if)# switchport mode trunk console(config-if)# switchport mode trunk allowed vlan add 23-25 console(config-if)# end console(config)# interface ethernet 1/e11 console(config-if)# switchport mode general console(config-if)# switchport general allowed vlan add 23,25 tagged console(config-if)# switchport general pvid 25
VLAN Configuring for Voice over IP (VoIP)
Most PC users to connect through IP-phone to save ports on the switch. To a PC did not get voice traffic, generate traffic tagging for IP-phones, this mixing of traffic to untagged traffic for PC. In this case, the PC ignores tagged traffic, and IP-phone is configured to accept tagged traffic.
Below is a listing of the configuration of voice VLAN:
Configure vlan 100,200 exit interface vlan 100 ip address 192.168.1.2 255.255.255.0 exit interface vlan 200 ip address 192.168.2.2 255.255.255.0 exit voice vlan ! interface Gi5/0/1 channel-group 2 mode active exit ! interface Gi5/0/2 channel-group 2 mode active exit ! interface Gi5/0/15 switchport mode general switchport general pvid 200 switchport general allowed vlan add 200 switchport general allowed vlan add 100 tagged voice vlan 100 voice vlan auth disable # optional # exit ! interface Gi5/0/16 switchport mode general switchport general allowed vlan add 200 switchport general allowed vlan add 100 tagged voice vlan 100 voice vlan auth disable # optional # exit ! interface Gi5/0/17 interface port-channel 2 switchport mode trunk switchport mode trunk allowed vlan 100,200 exit