OpenWrt Forum Archive

Topic: confusion with VLAN

The content of this topic has been archived on 1 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi every body....

I'm working with Linksys WRT54GL v1.1, and I want separate my wl0 from the lan, because I want to install chillispot.

Ok, I did this in /etc/config/network

#### VLAN configuration 
config switch eth0
    option vlan0    "1 2 3 5*"
    option vlan1    "4 5"
    option vlan2    "0 5"


#### Loopback configuration
config interface loopback
    option ifname    "lo"
    option proto    static
    option ipaddr    127.0.0.1
    option netmask    255.0.0.0


#### LAN configuration
config interface lan
    option type     bridge
    option ifname    "eth0.0"
    option proto    static
    option ipaddr    192.168.1.1
    option netmask    255.255.255.0


#### WAN configuration
config interface    wan
    option ifname    "eth0.1"
    option proto    dhcp

Then I did install chillispot, freeradius, configured all, change the firewall configuration and everything work perfect, Wonder full

I did test everything and I did think everything are working, but the port 4 in my router don´t give me an IP address with DHCP, If I configure the pc ethernet card with static IP work everything good, but DHCP don´t work for this port.
So I guess, I did a mistake with the VLAN configuration.
Can anybody give a hand or explain how I can separate the wl0 from the lan and have all ports with DHCP?

Thank guys!!!

don't know anything about chillispot, but you have port 4 in its own vlan.  If you want port 4 to be just like all the other ports, change your vlan config so it is in vlan0.

option vlan0    "1 2 3 4 5*"

The discussion might have continued from here.