UNSOLVED

ariedederde

updated

19 years ago

0

11794

June 6th, 2007 10:00

PC6248 and Linux VLANs

Hi,

I am trying to set up VLANs on my Linux box (Dell PE1950) to my PC6048 switch, but up 'till now no success. Can anybody help me out a bit?

Hardware:
Dell PE1950 (BroadCom NetXtreme II BCM5708)
Dell PC6248
OS:
CentOS 4.5

I am able to create a vlan on eth1.
eth1 is up but no IP address (0.0.0.0)
eth1.2 is a vlan interface with address 10.0.0.78 that has set a route
for 10.0.0.72/255.255.255.248 (shows up in the routing table)
no iptables or other packet filtering mechanism for the moment
interface connected to a Dell PowerConnect 6248 to a port that is in a
configured VLAN on the switch consisting of four switchports. Two hosts
are connected to the same VLAN on the switch, having IP addresses
10.0.0.77 and 10.0.0.76. I have been trying tagged ports in the VLAN
through the webinterface of the switch.

If I destroy the vlan on the Linux box and set 10.0.0.78 directly on the
NIC and set the VLAN ports on the switch untagged I can reach both
10.0.0.77 and 10.0.0.76. If i try to route through the vlan as described
above I cannot. Tcpdump while pinging shows arp requests on the vlan
interface. The eth1 nic is a Broadcom Corporation NetXtreme II BCM5708.
Kernel is 2.6.9-55.ELsmp from RedHat rebuilt by CentOS.

Thanks in advance,
Arjen Van Drie.
  • 1198

    0

    Posted June 6th, 2007 12:00

    This is an interesting article on VLANs in Debian... Have you managed to get the linux vlan configuration setup ?

    http://www.linuxjournal.com/article/7268

  • 1198

    0

    Posted June 6th, 2007 13:00

    I found the solution by posting on the Dell Linux mailing list:

    1) I set up the vlan interface on linux, e.g. eth1.2 which creates a vlan interface
    with ID 2. Set the IP address and netmask on the interface. The network will
    (in a redhat-like system) automatically be calculated and a route created.
    2) I set the port on the switch to which the Linux interface is connected in
    trunking mode, allowing it to pass all traffic: Linux will set the 8021q VLAN ID
    on the packets going out of the Linux box over that vlan interface.
    3) I set all other ports on the switch that are part of the VLAN into General mode,
    assign PVID 2 (since on the Linux box I created a VLAN with ID 2), Admit All as
    Frame Type (maybe AdmitTagOnly also works, should try it out) en Ingress Enabled.
    4) Then I created a VLAN and added the other ports (the trunked port was already
    there since it will be part of all VLANs (exept the default) created) with a T
    flag for Tagged.

    Et voila!
  • 1198

    0

    Posted June 6th, 2007 13:00

    Hi,

    I already checked the article, and the problem I have is beyond configuring a vlan interface on the Linux box. The solution should be somewhere in the switch configuration...

    Thanks,
    Arjen.