On Saturday 13 November 2004 05:49 am, Viktor Rosenfeld wrote:
> I have to local interfaces, eth0 (192.168.1.1) and wlan0
> (192.168.2.1). 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 192.168.2.0 netmask 255.255.255.0{
        range  192.168.2.128 192.168.2.192;
        option routers          192.168.2.1;
        option domain-name-servers      dns1, dns2;
}

# Serve wired net
subnet 192.168.1.0 netmask 255.255.255.0{
        range  192.168.1.128 192.168.1.192;
        option domain-name-servers              dns1, dns2;
        option routers          192.168.1.1;
}

-- 
Rob


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to