OpenWrt Forum Archive

Topic: dhcp-fwd

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

Hi Guys,

I'm currently using my OpenWRT router as an access point (only) so I've removed the WAN interface, only have one vlan for all ports so the only interfaces are wl0, loopback and eth0

wireless clients connecting with wpa2-psk etc... works until its time to get the IP.  I used ipkg to install dhcp-fwd but I cant seem to get it to work with kamikaze, I seem to get:
Cannot assign requested address
Can not get interface information

when trying to start dhcp-fwd can someone tell me what I should have in my dhcp-fwd config? The dhcp server is 192.168.1.1, the OpenWRT router is 192.168.1.250 im using kamikaze 7.09 with a broadcom chipset.

(Last edited by razza on 10 Oct 2007, 22:05)

anyone? am i better suited doing this under whiterussian?

Hi,

I have installed dhcp-fwd under both whiterussian and kamikaze and on both /etc/dhcp-fwd.conf has needed  changes.  On both versions I have had to comment out the chroot line and change the user and group to 0 before I could get it to work.

Here are the non-commented parts of a working /etc/dhcp-fwd.conf from a Linksys WRT54GS running Kamikaze 7.09.

# egrep -v '(^#|^$)' /etc/dhcp-fwd.conf
user            0
group           0
logfile         /var/log/dhcp-fwd.log
loglevel        1
pidfile         /var/run/dhcp-fwd.pid
ulimit core     0
ulimit stack    64K
ulimit data     32K
ulimit rss      200K
ulimit nproc    0
ulimit nofile   0
ulimit as       0
if      br-lan  true    false   true
if      eth0.1  false   true    true
name    br-lan  ws-c
server  ip      192.168.1.1

Here's what I wanted to do. I have a solution if this is what you want to do.....


   +---------------+             +---------------+             +---------------+              +---------------+
   |                    |              |                    |              |                    |               |                    |
   |  laptop         |-wireless-|   Kamikaze   |-wireless-| Backhaul AP |-Ethernet--| Internet       |
   +--------------+              +---------------+             +---------------+               +---------------+

The same configuration should be able to be used when the Kamikaze LAN port is directly connected to the internet. The WAN port is only used to access the Kamikaze to make changes to the configuration.

This will work without DHCP forwarding.

Here's the configuration:


/etc/config/network:

#### VLAN configuration
config switch eth0
        option vlan0    "1 2 3 4 5*"
        option vlan1    "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   10.0.0.1
        option netmask  255.255.255.0
        option gateway  ''
        option dns      ''

#### WAN configuration
config interface        wan
        option type     bridge
        option ifname   "wl0"
        option proto    dhcp



/etc/config/wireless:

config wifi-device  wl0
        option type     broadcom
        option channel  91

config wifi-iface
        option device   wl0
        option network  lan
        option mode     ap
        option ssid     HarleyNet
        option hidden   0
        option encryption none

config wifi-iface
        option device   wl0
        option network  lan
        option mode     sta
        option ssid     Wavion
        option hidden   0
        option encryption none

The discussion might have continued from here.