View previous topic :: View next topic |
Author |
Message |
dhanabalanb n00b

Joined: 15 Jul 2007 Posts: 34
|
Posted: Wed Oct 03, 2007 11:56 am Post subject: DHCP server configuration with dual network cards |
|
|
Hi there,
I have 2 ethernet cards in my linux (dhcp server) box. I am releasing IP range of 192.168.1.2 to 192.168.1.20 via eth0. Now I need to release IP range starting from 10.201.10.10 to 10.201.10.50 via eth1 simultaneously. How do I configure it on the same machine. Thanks in advance.
Regards,
Dhanabalan. |
|
Back to top |
|
 |
tobr Guru


Joined: 29 May 2006 Posts: 330
|
Posted: Wed Oct 03, 2007 1:11 pm Post subject: |
|
|
eth0 will be configured something like 192.168.1.1/24 (netmask 255.255.255.0) and eth1 something like 10.0.0.1/8 (netmask 255.0.0.0). If this is not the case adjust the following to match your setup.
You need something like the following in your /etc/dhcp/dhcpd.conf:
Code: | # eth0
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.2 192.168.1.20;
}
# eth1
subnet 10.0.0.0 netmask 255.0.0.0 {
range 10.201.10.10 10.201.10.50;
} |
dhcpd should figure the rest out (like which interface belongs to which subnet). I assumed you use the ISC dhcpd (net-misc/dhcp).
HTH _________________ Please add [SOLVED] to your message title if your problem is solved.
Death to all blobs! |
|
Back to top |
|
 |
dhanabalanb n00b

Joined: 15 Jul 2007 Posts: 34
|
Posted: Tue Oct 09, 2007 11:37 am Post subject: DHCP server configuration with dual network cards <solved |
|
|
[quote="dhanabalanb"]Hi there,
I have 2 ethernet cards in my linux (dhcp server) box. I am releasing IP range of 192.168.1.2 to 192.168.1.20 via eth0. Now I need to release IP range starting from 10.201.10.10 to 10.201.10.50 via eth1 simultaneously. How do I configure it on the same machine. Thanks in advance.
Regards,
Dhanabalan.[/quote] |
|
Back to top |
|
 |
|