Solved

Setting up DHCP on 2nd NIC

Posted on 2009-04-10
2
855 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 W
2 Comments
 
LVL 43

Accepted Solution

by:
ravenpl earned 500 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 W
ID: 31571652
Made the change and restarted the dhcpd daemon as well to pick it up. Worked like a charm!
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Creating a Samba server for a small office. Ubuntu Linux and Samba can breathe new life into a retired PC and save an office money on new hardware/software. Our example server will have two hard disks, one exclusively for storing shared data. …
In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

757 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now