[debian-non-standard] connection problems to wl500gP

Tomasz Or?owski T.Orlowski at wsisiz.edu.pl
Fri Jan 18 18:22:17 CET 2008



Russel napisa?(a):
>
> Can you post the output of ifconfig -a just for kicks?
>
>   

I've fixed it! Thanks guys for suggestions and your configs, it really
helped me.
I'll post here what was wrong and how I set up 4xLAN + WAN, so maybe
others will avoid similar problems to mine.

1. Most important thing was that I had as default "vlan1: 1 2 3 4 5u"
instead of "vlan1: 1 2 3 4 5t". Non-tagging was causing my serious
problems with connection to LAN ports. Correction to "5t" radically
changed it, so I could easily connect to the box and set missing WAN
port correctly.

2. eth0 is equivalent of what robocfg shows as vlan0. But it doesn't
need to be set up as any vlan interface like eth0.0 . It's non logical
for me but it works :) I've configured eth0 in /etc/network/interfaces
and thats all - LAN ports fixed :)
If I need to have WAN interface, I have to create eth0.1 vlan interface
and it has to be named eth0.1 . Choosing other name, for example
eth0.100 like it is as default in wpkg's etch system doesn't work.

So I've created "/etc/rcS.d/S38vlans" to set tagging properly:
---------------------------------------------------------
#! /bin/sh

# eth0 have to be initialized first!
ifconfig eth0 0.0.0.0

robocfg switch disable
robocfg vlans enable reset
robocfg vlan 0 ports "0 5u"
robocfg vlan 1 ports "1 2 3 4 5t"
/root/robocfg/robocfg switch enable

# line below is not needed if we have vlan script in
/etc/network/if-pre-up.d/ from vlan package.
#vconfig add eth0 1
---------------------------------------------------------

... and of course appropriate interfaces config in /etc/network/interfaces:

---------------------------------------------------------
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.4.100
netmask 255.255.255.0
gateway 192.168.4.1

auto eth0.1
iface eth0.1 inet static
address 192.168.3.100
netmask 255.255.255.0
gateway 192.168.3.1
---------------------------------------------------------

so after all my "robocfg show" looks like this

Switch: enabled
Port 0(W): DOWN enabled stp: none vlan: 0 mac: 00:00:00:00:00:00
Port 1(4): DOWN enabled stp: none vlan: 1 mac: 00:00:00:00:00:00
Port 2(3): 100FD enabled stp: none vlan: 1 mac: 00:00:00:00:00:00
Port 3(2): DOWN enabled stp: none vlan: 1 mac: 00:00:00:00:00:00
Port 4(1): DOWN enabled stp: none vlan: 1 mac: 00:00:00:00:00:00
Port 5(C): 100FD enabled stp: none vlan: 0 mac: 00:00:00:00:00:00
VLANs: BCM5325/535x enabled mac_check mac_hash
vlan0: 0 5u
vlan1: 1 2 3 4 5t

Cheers
Tomasz




More information about the debian-non-standard mailing list