Need VLAN help!

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page Previous  1, 2, 3  Next
Author Message
fggs
DD-WRT Guru


Joined: 28 Jan 2008
Posts: 1741

PostPosted: Wed Jan 13, 2010 0:45    Post subject: Reply with quote
Oh, my computer is set to static: ip 192.168.8.10 / netmask 255.255.255.0 / gateway 192.168.8.1 and there's no 192.168.8.1 on WRT54GL.

I'm slow Embarassed
Sponsor
phuzi0n
DD-WRT Guru


Joined: 10 Oct 2006
Posts: 10141

PostPosted: Wed Jan 13, 2010 1:35    Post subject: Reply with quote
That makes it all the more peculiar. Ping the gateway and then check your pc's arp cache to see if it even has the gateway's MAC.
_________________
Read the forum announcements thoroughly! Be cautious if you're inexperienced.
Available for paid consulting. (Don't PM about complicated setups otherwise)
Looking for bricks and spare routers to expand my collection. (not interested in G spec models)
fggs
DD-WRT Guru


Joined: 28 Jan 2008
Posts: 1741

PostPosted: Wed Jan 13, 2010 1:52    Post subject: Reply with quote
MAC from gateway is there! Also I've added some iptables rules to WRT54GL, but I can't get response either from 192.168.8.2 (WRT54GL) nor 192.168.8.1 (linux box). Rules are:

iptables -I FORWARD -i vlan3 -o vlan4 -j ACCEPT
iptables -I FORWARD -i vlan4 -o vlan3 -j ACCEPT

vlan3 = WAN (trunk)
vlan4 = 192.168.8.2
fggs
DD-WRT Guru


Joined: 28 Jan 2008
Posts: 1741

PostPosted: Fri Jan 15, 2010 2:39    Post subject: Reply with quote
I didn't gave up, but only a small update: I can see macs with arp, I've removed bridge br0 from WRT54GL and corrected the rule, vlan4 is actually 192.168.4.2, vlan5 is 192.168.8.2. Here's also my pastebin with routing tables from client, WRT54GL and linux box. I've added iptables-save -c from linux box as well: http://pastebin.com/m5102f550
fggs
DD-WRT Guru


Joined: 28 Jan 2008
Posts: 1741

PostPosted: Fri Jan 15, 2010 16:55    Post subject: Reply with quote
I've found this guide http://www.geek-pages.com/index2.php?option=com_content&do_pdf=1&id=26. It seems to work but trunk is on port 4, I just need some help with questions below:

1) How to make the same trunk on WAN port?
2) How to use a different subnet for each port with this trunk? The subnets must communicate with each other.
3) Do I need to use jffs as the guide said?
fggs
DD-WRT Guru


Joined: 28 Jan 2008
Posts: 1741

PostPosted: Fri Jan 15, 2010 23:39    Post subject: Reply with quote
After almost 2 weeks struggling with this I finally have some real progress!!

With some help (zamba @ #openwrt - irc.freenot.net) and some reading (http://oldwiki.openwrt.org/OpenWrtDocs%282f%29NetworkInterfaces.html#head-bfa6c9050a90d24a906d3f51c0fdab8bd2ca08cb) I was able to get ping response from my linux box!

I don't know if vlan gui is broken on 12548 build but I'm pretty sure these settings is exactly the same as my picture of vlan page:

nvram set vlan2ports="4t 5*"
nvram set vlan3ports="4t 3 5"
nvram set vlan4ports="4t 2 5"
nvram set vlan5ports="4t 1 5"
nvram set vlan6ports="4t 0 5"

I will do more tests. Now I need a little help to set wireless with one of the vlans subnet but just forwarding dhcp.
Bird333
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 809

PostPosted: Sat Jan 16, 2010 6:20    Post subject: Reply with quote
I think what you have to do to get wireless with a vlan is to create a bridge and add the vlan and the wireless interfaces to it and assign a subnet to the bridge.
fggs
DD-WRT Guru


Joined: 28 Jan 2008
Posts: 1741

PostPosted: Thu Jan 21, 2010 21:23    Post subject: Reply with quote
My setup is almost finished, I just have one last problem: I've unbridged vlan6 to put an static ip to be able to access the router's administration page, it works fine for wired clients, but not for wireless. I've also unbridged wireless and created bridge br1 and assigned eth1 (wireless) and vlan4 to it, wireless clients can get ip from vlan4 but can't access router's administration page. Router's administration page is ip 192.168.75.2, linux box eth0.4 has ip 192.168.75.1, wireless clients can ping 192.168.75.1 but not 192.168.75.2, what am I doing wrong?

Thanks in advance!
Bird333
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 809

PostPosted: Thu Jan 21, 2010 23:18    Post subject: Reply with quote
Is vlan6 and your wireless in a bridge together?
fggs
DD-WRT Guru


Joined: 28 Jan 2008
Posts: 1741

PostPosted: Thu Jan 21, 2010 23:32    Post subject: Reply with quote
No, br1 is eth1 (wireless) and vlan4, if I add vlan6 wouldn't wireless clients get vlan6 ip?

Thanks for your quick response Bird!
phuzi0n
DD-WRT Guru


Joined: 10 Oct 2006
Posts: 10141

PostPosted: Fri Jan 22, 2010 0:09    Post subject: Reply with quote
fggs wrote:
My setup is almost finished, I just have one last problem: I've unbridged vlan6 to put an static ip to be able to access the router's administration page, it works fine for wired clients, but not for wireless. I've also unbridged wireless and created bridge br1 and assigned eth1 (wireless) and vlan4 to it, wireless clients can get ip from vlan4 but can't access router's administration page. Router's administration page is ip 192.168.75.2, linux box eth0.4 has ip 192.168.75.1, wireless clients can ping 192.168.75.1 but not 192.168.75.2, what am I doing wrong?

Thanks in advance!

Isn't that actually the address of eth0.6? What address did you assign to br1 and can you ping br1's address? You should be able to access the router config directly with any of it's addresses.

_________________
Read the forum announcements thoroughly! Be cautious if you're inexperienced.
Available for paid consulting. (Don't PM about complicated setups otherwise)
Looking for bricks and spare routers to expand my collection. (not interested in G spec models)
fggs
DD-WRT Guru


Joined: 28 Jan 2008
Posts: 1741

PostPosted: Fri Jan 22, 2010 0:12    Post subject: Reply with quote
Yes, sorry, eth0.4 has 192.168.8.1, br1 has no ip, I thought I wouldn't need it as wireless clients are getting proper ip. So, I just need to put 192.168.8.2 for br1, correct?
phuzi0n
DD-WRT Guru


Joined: 10 Oct 2006
Posts: 10141

PostPosted: Fri Jan 22, 2010 0:46    Post subject: Reply with quote
fggs wrote:
Yes, sorry, eth0.4 has 192.168.8.1, br1 has no ip, I thought I wouldn't need it as wireless clients are getting proper ip. So, I just need to put 192.168.8.2 for br1, correct?

Yes it should have an IP assigned to it but there's no telling if it will fix anything with the vlans. At the very least the wireless should be able to access the router via the IP you assign to br1.

_________________
Read the forum announcements thoroughly! Be cautious if you're inexperienced.
Available for paid consulting. (Don't PM about complicated setups otherwise)
Looking for bricks and spare routers to expand my collection. (not interested in G spec models)
fggs
DD-WRT Guru


Joined: 28 Jan 2008
Posts: 1741

PostPosted: Fri Jan 22, 2010 1:01    Post subject: Reply with quote
It worked! Can br1 ip be the same as vlan6 ip (192.168.75.2)? If so, will wireless clients still receive vlan4 (192.168.8.0) ips?
fggs
DD-WRT Guru


Joined: 28 Jan 2008
Posts: 1741

PostPosted: Fri Jan 22, 2010 2:55    Post subject: Reply with quote
Forget what I said earlier, wired clients can only access 192.168.75.2 if connected to the vlan that has that subnet. Is there a way for all subnets have access to 192.168.75.2 and both wireless and wired?
Goto page Previous  1, 2, 3  Next Display posts from previous:    Page 2 of 3
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum