03-29-2011 07:48 AM - edited 03-06-2019 04:19 PM
Dear,
I have to connect a server running several VM on two diferents VLAN's , and I need to cofigure a port to be able to work on both vlans.
Reading the documentation I thougth that using a "switchport trunk" it should be work:
This is the configuration running:
....
interface GigabitEthernet3/11
switchport
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 48,65
switchport mode trunk
no ip address
....
But It does not work, I cannot acces to any Vlan
Any Idea?
Regards,
Solved! Go to Solution.
03-29-2011 09:16 AM
cabrilloji wrote:
Dear,
I have to connect a server running several VM on two diferents VLAN's , and I need to cofigure a port to be able to work on both vlans.
Reading the documentation I thougth that using a "switchport trunk" it should be work:
This is the configuration running:
....
interface GigabitEthernet3/11
switchport
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 48,65
switchport mode trunk
no ip address....
But It does not work, I cannot acces to any Vlan
Any Idea?
Regards,
From the switch point of view that should work. Are you sure the VM server is setup correctly ? See this link for config details of both ends -
Jon
03-29-2011 09:16 AM
cabrilloji wrote:
Dear,
I have to connect a server running several VM on two diferents VLAN's , and I need to cofigure a port to be able to work on both vlans.
Reading the documentation I thougth that using a "switchport trunk" it should be work:
This is the configuration running:
....
interface GigabitEthernet3/11
switchport
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 48,65
switchport mode trunk
no ip address....
But It does not work, I cannot acces to any Vlan
Any Idea?
Regards,
From the switch point of view that should work. Are you sure the VM server is setup correctly ? See this link for config details of both ends -
Jon
03-30-2011 01:38 AM
Hi jon,
I have not check it wirh a VM (they are under production), but I have configured a couple of machines under the two diferents VLANs (48 and 65), the swich has several ports on both vlans:
Interface GigabitEthernet3/3
switchport
switchport access vlan 48
switchport mode access
no ip address
!
interface GigabitEthernet3/5
switchport
switchport access vlan 48
switchport mode access
no ip address
...
nterface GigabitEthernet3/12
switchport
switchport access vlan 65
switchport mode access
no ip address
!
interface GigabitEthernet3/16
switchport
switchport access vlan 65
switchport mode access
no ip address
the 3/11 that belongs to both:
interface GigabitEthernet3/11
switchport
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 48,65
switchport mode trunk
no ip address
and de vlans:
interface Vlan48
ip address 192.168.21.1 255.255.255.0
!
interface Vlan65
ip address 10.10.0.1 255.255.0.0
I
From a port that belongs "only" to vlan48 there is no problem to ping 192.168.21.1 (or other ip's under this network), the same behaviour for a port on vlan 65, with a machine in this vlan (10.10.90.60 for example), but if i connect to 3/11 (the trunk port), i cannot access to neither of them.
regards,
03-30-2011 10:14 AM
Hi Jon,
Yes tyou are rigth, the switch configuration was correct. I was to load the 8021q module on server side and asign the vlans to each physical network interface.
regards
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: