Sunday, 27 November 2011

strange dhcp doesn't work

strange dhcp doesn't work

Hello. I have Ubuntu 10.04.i have installed & configured dhcp3-server. Now i have problems with it. i've googled and searched in forums - nothing relevant.
My dhcp3 -server assignes addresses to a computer with win7 on it (takes~1min though), win vista, but does't assign an address to another computer with ubuntu 10.04 and winxp. all these computers have common dhcp client configuration because they can obtain address from the same dhcp server (it's my internet provider ). I think the issue is in the client config in 10.04 and xp , but i want them to work with my dhcp server and with the internet provider dhcp server with the same configuration. all of the mentioned computers can get ip from my internet provider dhcp server.
my config files and command results:
ifconfig:
Code:

eth0      Link encap:Ethernet  HWaddr 00:e0:4c:4c:70:21 
          inet addr:93.175.6.21  Bcast:93.175.6.255  Mask:255.255.255.0
          inet6 addr: fe80::2e0:4cff:fe4c:7021/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:759 errors:0 dropped:0 overruns:0 frame:0
          TX packets:37 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:49978 (49.9 KB)  TX bytes:4648 (4.6 KB)
          Interrupt:12 Base address:0xd400

eth1      Link encap:Ethernet  HWaddr 00:e0:4c:a0:d8:a8 
          inet addr:10.5.5.25  Bcast:10.5.5.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:10 Base address:0xd000

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:480 (480.0 B)  TX bytes:480 (480.0 B)

ip address:
Code:

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host
      valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000
    link/ether 00:e0:4c:4c:70:21 brd ff:ff:ff:ff:ff:ff
    inet 93.175.6.21/24 brd 93.175.6.255 scope global eth0
    inet6 fe80::2e0:4cff:fe4c:7021/64 scope link
      valid_lft forever preferred_lft forever
3: eth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN qlen 1000
    link/ether 00:e0:4c:a0:d8:a8 brd ff:ff:ff:ff:ff:ff
    inet 10.5.5.25/24 brd 10.5.5.255 scope global eth1

dhcpd.conf
Code:

subnet 10.5.5.0 netmask 255.255.255.0 {
      interface eth1;
      range 10.5.5.26 10.5.5.30;
      option subnet-mask 255.255.255.0;
      option time-offset 100;
      option domain-search "internal.example.org";
      option host-name "xer";
      option netbios-name-servers 10.5.5.25;
      option netbios-scope "qwery";
      option interface-mtu 1500;
      option ntp-servers 10.5.5.25;
      option domain-name-servers ns1.internal.example.org;
      option domain-name "internal.example.org";
      option routers 10.5.5.10;
      option broadcast-address 10.5.5.20;
#      default-lease-time 600;
#      max-lease-time 7200;
}

dhcp3-server defaults:
Code:

INTERFACES="eth1";
I want my 2-nd computer with winxp and 10.04 to get ip from my 1-st computer with dhcp3server just like it gets ip from my internet provider. please help

No comments:

Post a Comment