Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
DHCP server configuration with dual network cards
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
dhanabalanb
n00b
n00b


Joined: 15 Jul 2007
Posts: 34

PostPosted: Wed Oct 03, 2007 11:56 am    Post subject: DHCP server configuration with dual network cards Reply with quote

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
View user's profile Send private message
tobr
Guru
Guru


Joined: 29 May 2006
Posts: 330

PostPosted: Wed Oct 03, 2007 1:11 pm    Post subject: Reply with quote

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
View user's profile Send private message
dhanabalanb
n00b
n00b


Joined: 15 Jul 2007
Posts: 34

PostPosted: Tue Oct 09, 2007 11:37 am    Post subject: DHCP server configuration with dual network cards <solved Reply with quote

[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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum