[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: DHCP on two interfaces

On Saturday 13 November 2004 05:49 am, Viktor Rosenfeld wrote:
> I have to local interfaces, eth0 ( and wlan0
> ( There's also an isdn interface (ippp0) connected to
> the outside world.
> I want DHCP to serve IPs and stuff on the two local interfaces.  The
> problem now is with the routing.  Depending on which network the
> client is on (LAN or WLAN) he'll need a different IP of the server as
> a default gateway.  (I assume that no client will be on both local
> networks at the same time.)  How can I achieve that, without
> hard-wiring the mac addresses of the interfaces into the dhcp.conf
> file?

# Serve wireless net
subnet netmask{
        option routers;
        option domain-name-servers      dns1, dns2;

# Serve wired net
subnet netmask{
        option domain-name-servers              dns1, dns2;
        option routers;


Reply to: