dhcp3-server and multiple interfaces

Julio jac37 at omoniak.ath.cx
Wed May 25 08:53:31 UTC 2005


Has anyone succesfully enable dhcp3-server for multiple interfaces?

                                  |eth0|-> Wired LAN
Internet <-|eth1| [UBUNTU SERVER] 
                                  |wlan0|-> Wireless LAN

At the moment, the wireless subnet is up and running with the
configuration described below. However, the server is not able to assign
an IP to a client attached to eth0 via ethernet cable. Am I missing
something?

Regards,

Julio

---------------------------------------------------------------------

$ less /etc/network/interfaces

auto lo
iface lo inet loopback

mapping hotplug
        script grep
        map eth1

iface eth1 inet dhcp

auto eth0
iface eth0 inet static
    address 10.152.187.1
    netmask 255.255.255.0

auto wlan0
  iface wlan0 inet static
    address 192.168.1.1
    netmask 255.255.255.0
    up     /sbin/iwconfig wlan0 mode TTTTTT && /sbin/iwconfig wlan0 enc
restricted && /sbin/iwconfig wlan0 key [Y] XXXXXXXX && /sbin/iwconfig
wlan0 essid SSSSSSSS

auto eth1

---------------------------------------------------------------------

$ less /etc/default/dhcp3-server

INTERFACES="wlan0 eth0"

---------------------------------------------------------------------

$ less /etc/dhcp3/dhcpd.conf

ddns-update-style none;
log-facility local7;

subnet 192.168.1.0 netmask 255.255.255.0 {

        option routers                  192.168.1.1;
        option subnet-mask              255.255.255.0;
        option broadcast-address        192.168.1.255;
	option domain-name-servers      194.168.4.100;
        option ntp-servers              192.168.1.1;
        option netbios-name-servers     192.168.1.1;
        option netbios-node-type 2;
        default-lease-time 86400;
        max-lease-time 86400;

        host bla1 {
                hardware ethernet DD:GH:DF:E5:F7:D7;
                fixed-address 192.168.1.2;
        }
        host bla2 {
                hardware ethernet 00:JJ:YU:38:AC:45;
                fixed-address 192.168.1.20;
        }
}

subnet  10.152.187.0 netmask 255.255.255.0 {

        option routers                  10.152.187.1;
        option subnet-mask              255.255.255.0;
        option broadcast-address        10.152.187.255;
        option domain-name-servers      194.168.4.100;
        option ntp-servers              10.152.187.1;
        option netbios-name-servers     10.152.187.1;
        option netbios-node-type 2;

        default-lease-time 86400;
        max-lease-time 86400;

	host bla3 {
                hardware ethernet 00:KK:HD:66:55:9B;
                fixed-address 10.152.187.2;
        }
}

---------------------------------------------------------------------

$ route -n

Destination   Gateway      Genmask    Flags Metric  Ref Use  Iface
192.168.1.0   0.0.0.0   255.255.255.0   U     0      0   0   wlan0
82.16.TT.0    0.0.0.0   255.255.255.0   U     0      0   0   eth1
10.152.187.0  0.0.0.0   255.255.255.0   U     0      0   0   eth0
0.0.0.0       82.16.TT.UU  0.0.0.0      UG    0      0   0   eth1

---------------------------------------------------------------------





More information about the ubuntu-users mailing list