Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Setting up DHCP on 2nd NIC

Posted on 2009-04-10
2
Medium Priority
?
876 Views
Last Modified: 2013-11-08
I have a CentOS 5.3 server running Spacewalk (OSS RHEL Satellite Server) v0.4 for handling/monitoring our CentOS environment. The 1st NIC (eth0) is part of the internal network and has a static IP address assigned to it (i.e. 192.168.1.5). I want to utilize the 2nd NIC on the server to be a 'private' DHCP server dedicated just for PXE provisioning needs.

My question is how do I setup a private DHCP server on the 2nd NIC (eth1) and have it assign addresses like 10.1.x.x for PXE bare-metal provisioning needs.

I tried to follow the instructions at the following sites, but it doesn't show how to setup DHCP server on the 2nd NIC only.

http://www.astahost.com/info.php/Howto-Setup-Dhcp-Server-Linux_t2602.html
https://fedorahosted.org/spacewalk/wiki/kickstartingLabNetworkingSetup

NOTE: The internal network already has another DHCP server already active on it, thus needs to remain totally separated from my intended 'private' DHCP network. The 'private' network should be able to see the Spacewalk server but not navigate/access the rest of the internal network.
0
Comment
Question by:Michael Worsham
2 Comments
 
LVL 43

Accepted Solution

by:
ravenpl earned 2000 total points
ID: 24121039
I think You missing the dhcpd argument to listen only on eth2

[root@dhcserver ~]$ cat /etc/sysconfig/dhcpd
DHCPDARGS=eth1
0
 
LVL 29

Author Closing Comment

by:Michael Worsham
ID: 31571652
Made the change and restarted the dhcpd daemon as well to pick it up. Worked like a charm!
0

Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Configuring network clients can be a chore, especially if there are a large number of them or a lot of itinerant users.  DHCP dynamically manages this process, much to the relief of users and administrators alike!
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Suggested Courses

886 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question