udiniqgeek
Thinks about OS Linux Ubuntu | Ubuntu Tutorials
HOW TO MAKE MONEY by INTERNET
sfi


Install DHCP Server on Ubuntu




DHCP Server will greatly assist us in providing computers ip address on the LAN, because the DHCP server will provide ip address automatically, and I install the DHCP Server on the server version of ubuntu 8:10.

OK, straight to the practice !

The first step is to take the package and install dhcp3-server :

root@server:/# aptitude update && aptitude install dhcp3-server

Once installed dhcp3-server, you must edit the file / etc/dhcp3/dhcpd.conf. For example, add the following line :

root@server:/# vim /etc/dhcp3/dhcpd.conf

subnet 10.14.10.0 netmask 255.255.255.0 {
range 10.14.10.100 10.14.10.150;
option routers 10.14.10.1;
option domain-name-servers 10.14.10.1;
}

Description:

Adding the above lines would configure the DHCP server to serve requests from the network LAN IP 10.14.10.0 and each computer will get an IP from IP 10.14.10.100 to 10.14.10.150, a default gateway configuration 10.14.10.1, and 10.14.10.1 DNS servers.

And if we want to give specific IP for a particular computer, we can add the following line in the configuration file /etc/dhcp3/dhcpd.conf, the following steps :

root@server:/# vim /etc/dhcp3/dhcpd.conf

host server {
hardware ethernet 08:OI:89:0e:86:21;
fixed-address 10.14.10.100;
}

host server1 {
hardware ethernet 00:24:8A:0e:86:C5;
fixed-address 10.14.10.101;
}

Description:

Above configuration will cause the dhcp server to give IP 10.14.10.100 to the computer with MAC address 08: OI: 89:0 e: 86:21 and give Ip address 10.14.10.101 to the computer with MAC address 00:24:8A:0e:86:C5

ITE ARCHIVE


udiniqgeek
Thinks about OS Linux Ubuntu | Ubuntu Tutorials
Copyright©2009 | UdiniqGeek.com - Thinks about OS Linux Ubuntu - Ubuntu Tutorials | Contact Us | :: RSS | [Valid RSS]