cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
571
Views
0
Helpful
3
Replies

Multi Vlan Port on Catalyst 6500

cabrilloji
Level 1
Level 1

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,

1 Accepted Solution

Accepted Solutions

Jon Marshall
Hall of Fame
Hall of Fame

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 -

VMWare setup

Jon

View solution in original post

3 Replies 3

Jon Marshall
Hall of Fame
Hall of Fame

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 -

VMWare setup

Jon

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,

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

Getting Started

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:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco