I am using I386 Machine with fresh install of ubuntu 8.04 Server and two interfaces.
eth0----Internet
eth2----use to listen dhcp request
Step 1: Install the dhcp3-package
First add following in /etc/apt/sources.list
root@ubuntu:~# nano /etc/apt/sources.list
deb http://security.ubuntu.com/ubuntu hardy-security main universe
add and exit,then
root@ubuntu:~# apt-get install dhcp3-relay
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
dhcp3-relay
0 upgraded, 1 newly installed, 0 to remove and 7 not upgraded.
Need to get 103kB of archives.
After this operation, 274kB of additional disk space will be used.
During Installation it will ask you,
a) DHCP server IP address e.g your dhcp server address and
b) Interface which you will listen for dhcp requests e.g eth2.
Step 2: Enable forwarding.
root@ubuntu:~# echo 1 > /proc/sys/net/ipv4/ip_forward
root@ubuntu:~# echo 1 > /proc/sys/net/ipv4/tcp_syncookies
root@ubuntu:~# echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts
Step 3: Testing
Attach cable on eth2 to a pc and wait for responce
No comments:
Post a Comment