Friday, February 17, 2012
Layer 2 Vlan Tagging for Servers. Virtual Machine
Today I had a request from a business user that needed to have two vlans that were on the same switch for one of his virtual machines. In order to accomplish this, we made the switchport a trunk port and allowed the vlans he only needed. Also note that sometimes when a server is booting up it might send untagged frames so you need to specify the native vlan. If this host needs to pxe boot or get some dhcp details and those services live on a specific vlan, use that are your naitive Vlan.
interface GigabitEthernet3/7
specify which module (3) and interface(7) you want to configure
description us03wtc3456
(You can put anything you want in here. I have seen people put 1800 numbers and circuit id's)
switchport
(Sometimes required, depends on what capabilities your switch and or module has.
switchport trunk encapsulation dot1q
(specifies which tagging method your going to use. This is most common)
switchport trunk native vlan 928
(Any untagged frames will be processed as Vlan 928)
switchport trunk allowed vlan 928,944-946
(Vlans allowed on this trunk)
switchport mode trunk
(Make this a trunk port)
logging event link-status
(Any time this interface goes up/down/err-disable its logged)
speed 1000
(Port speed - no need to explain)
duplex full
(Duplex - no need to explain)
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment