Hi DeL3e7,
DeL3e7 wrote:this is highly confusing to me, I read Lukav's weblog but still kinda fuzzy.
i got a Wrt54GS i guess all the ports are the same right? 0=WAN 1234=LAN and 5 is wifi?
NO. You should read http://wiki.openwrt.org/OpenWrtDocs/NetworkInterfaces as there is explained in much details. I'm no expert, but this is how I see it:
Those device actually have one 5 port switch. To see them as diffrent interfaces in linux env we are using vlans. So by default:
vlan0 = LAN = ports 1 - 4
vlan1 = WAN = port 0
What I'm doing is changing this to:
vlan0 = LAN = ports 2 - 4
vlan1 = WAN = port 0
vlan2 = WAN2 = port 1
*5 port is some internal port, but I'm not sure what exacly it represents. However it is a part of all vlans
The wifi is a hole diffrent interface (eth1 in my case), where you combine it with vlan0 using a bridge.
At first it was confucing to me also, but I've played with 'nvram show | grep ?' where ? = lan,wan,vlan,wifi,wlan to get the picture. And did some reading in the openwrt wiki.
Now the ordering of the ports may differ in devices. For example a few days ago I've made my configuration to a WRT54GL v1.1 where I've discovered that the settings ware:
vlan0 = LAN = ports 0 - 2
vlan1 = WAN = port 4 (the port that reads WAN in the back of the device)
vlan2 = WAN2 = port 3 (the port that reads 1 in the back of the device)
nvram settings ware:
vlan0ports="0 1 2 5*"
vlan1ports="4 5"
vlan2ports="3 5"
DeL3e7 wrote:from what i gathered is lukav is using the wan port and lan port 1 as 2nd wan bridge em both together?
NO, I don't bridge them togather, what I do is separate lan port 1 as a diffrent interface and then use this as WAN2.
DeL3e7 wrote:well agian im confused as heck maybe some1 could dumb this down for me i was wondering about using the wifi interface as a 2ndWAN with the default wan port and sorta load balancing em, gotta admit this is heavy routing tables if you ask me, I've been running on a linux machine for a few yrs now but this lil device with all its network devices and vlans etc makes my head spin, i maybe im too "fresh" to delving into such endeavorers all these nvram variables omg!
Well, I did linux routing with ethX for a few years like you also. But I wanted to use this machine for other stuff and each time I rebooted the internet was stopping. That is why I've invested in this small (I don't have much space at home) cheap device and had it do the job of the linux server. My linux configuration was the same except instead of vlans I've had eths and each represented a network card (much clearer).
If you want to use the Wifi as WAN you'll have to separate it from the LAN bridge, - there is option for this in the WEB interface. Then you have to set wan2_ifname to the wifi device (may be eth1).
If you are not up for it, you can wait for the release of Kamikaze and then X-wrt to catch up with it, because I've read somewhere that Kamikaze will support multiple WAN by default.