OpenWrt Forum Archive

Topic: dhcp lan vs wan (lan ip)

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

Hi,

I have a fresh install of kam 7.09 (broadcom-2.4) on my wrt54gl.   When the router assigns an ip to a wireless client the new address will fall in the range  of 100 to 150 but wired clients will start at 191.168.1.2  How can I get the wired clients to start in the specified range?

Thanks

These are my config files (all but wireless are the default):

/ect/config/dhcp

config dhcp
    option interface    lan
    option start     100
    option limit    150
    option leasetime    12h

config dhcp
    option interface    wan
    option ignore    1

/ect/config/network

#### VLAN configuration 
config switch eth0
    option vlan0    "0 1 2 3 5*"
    option vlan1    "4 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

ect/config/wireless

config wifi-device  wl0
    option type     broadcom
    option channel  5
    option disabled    '0'

config wifi-iface
    option device   wl0
    option network    lan
    option mode     ap
    option ssid    'ssid'
    option encryption    'psk2'
    option key    'This is the key'

Anybody have any ideas?

The discussion might have continued from here.