> > 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 I'm glad you got it working. You might also be interested in the messages printed at the end of the robocfg help outupt: Samples: 1) ASUS WL-500g Deluxe stock config (eth0 is WAN, eth0.1 is LAN): robocfg switch disable vlans enable reset vlan 0 ports "0 5u" vlan 1 ports "1 2 3 4 5t" port 0 state enabled stp none switch enable 2) WRT54g, WL-500g Deluxe OpenWRT config (vlan0 is LAN, vlan1 is WAN): robocfg switch disable vlans enable reset vlan 0 ports "1 2 3 4 5t" vlan 1 ports "0 5t" port 0 state enabled stp none switch enable Either way, it's working. --Russel Riley No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.19.6/1231 - Release Date: 1/18/2008 11:55 AM |