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

Setting up dhcp-server on my desktop machine



Hi,

I have my desktop machine and my headless server machine being running
on booth Debian GNU/Linux Squeeze operating system. 

I must recover my server system through ssh connection so so I must to
setup dhcp-server on my desktop system first so it can provide for the
server an IP address.

On my desktop system there I have already installed the network-manager
package and now I have installed the isc-dhcp-server package too on this
system. 

I don't know how to setup my interfaces so I achieve my goal.

I have sofar following setup on my desktop system:

 * /etc/network/interfaces

auto lo
iface lo inet loopback

allow-hotplug eth1 # to my ISP

allow-hotplug eth0 # LAN to my server
iface eth0 inet static
    address 192.168.1.1
    netmask 255.255.255.0
    network 192.168.1.0
    broadcast 192.168.1.255
    gateway 192.168.1.1

 * /etc/dhcp/dhcpd.conf

subnet 192.168.1.0 netmask 255.255.255.0 {
    interface eth0;
    range 192.168.1.99 192.168.1.99;
    option routers 192.168.1.1;
    option subnet-mask 255.255.255.0;
}

 * /etc/default/isc-dhcp-server

INTERFACES="eth0"

So when I try to start dhcp-server I get an error message:
sudo /etc/init.d/isc-dhcp-server start
Starting ISC DHCP server: dhcpdcheck syslog for diagnostics. ... failed!
failed!

sudo ifconfig shows only eth1 but not the eth0:
eth1      Link encap:Ethernet  HWaddr 00:14:04:31:19:9f  
          inet addr:95.85.169.32  Bcast:95.85.169.255  Mask:255.255.254.0
          inet6 addr: fe80::214:4ff:fe31:199f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:70891 errors:0 dropped:0 overruns:0 frame:0
          TX packets:44387 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:93706740 (89.3 MiB)  TX bytes:4889805 (4.6 MiB)

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:126 errors:0 dropped:0 overruns:0 frame:0
          TX packets:126 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:11635 (11.3 KiB)  TX bytes:11635 (11.3 KiB)


I restarted networking but still get not eth0 up:
sudo /etc/init.d/networking restart
Running /etc/init.d/networking restart is deprecated because it may not
enable again some interfaces ... (warning). 
Reconfiguring network interfaces...done.

I restarted networking with network-manager too but still get not eth0
up: 

sudo /etc/init.d/network-manager restart

What am I missing here?

-- 
Regards, Pal
<http://csanyi-pal.info>


Reply to: