[VLAN] Vlan question...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Chris,

Ok, interface 0/1 connects to my linux box and without the "switchport
trunk allowed vlan 1,2" command it will let any Vlan through from my
Linux box. But how do I then configure the second port where my hosts
plugs into to allow more then 1 vlan through too them? Can I just remove
the "switchport access vlan 2" part and everything will go through
automatically? There's a wireless access point plugging into
Interface0/2 where each user connecting to the wireless interface has
its own subnet off IP addresses. There's a vlan interface added on the
linux box which acts as a gateway for each user. 

     interface FastEthernet 0/1 <TO Linux box>
        switchport mode trunk
        switchport trunk encapsulation dot1q

     interface FastEthernet0/2 <To Wireless Access Point>
	  switchport access vlan 2
	  spanning-tree portfast




-----Original Message-----
From: vlan-bounces@xxxxxxxxxxxxxxx [mailto:vlan-bounces@xxxxxxxxxxxxxxx]
On Behalf Of Chris Verges
Sent: Tuesday, January 04, 2005 10:23 AM
To: Linux 802.1Q VLAN
Subject: Re: [VLAN] Vlan question...

On Tue, Jan 04, 2005 at 10:07:00AM +0200, Steph wrote:
> This is the part that I'm wondering about. Right now it only
> gives access to one Vlan with an ID of 2. Is there a way to
> allow multiple vlans through or maybe just let anything through
> with a vlan id?

You want to set the port on the Catalyst to be a trunk port.
Then run vconfig on the Linux box and setup the VLANs.

   On the Catalyst 3500XL:
     interface FastEthernet 0/1
        switchport mode trunk
        switchport trunk encapsulation dot1q

A port in access mode cannot be placed on multiple VLANs.  That's
what trunk lines are for.

To test it, leave off the "switchport trunk allowed vlan"
command.  That will allow ALL vlans to run over the trunk line by
default.

Enjoy!

chris
-- 
http://headnut.org
squirrel@xxxxxxxxxxx
_______________________________________________
Vlan mailing list
Vlan@xxxxxxxxxxxx
http://www.lanforge.com/mailman/listinfo/vlan


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux