LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-11-2010, 12:59 AM   #1
ajeetsinghraina
Member
 
Registered: May 2010
Location: India
Distribution: Ubuntu 7.04/8.04/8.10/10.04, RHEL 6, OpenSUSE,Mandriva,Fedora, CentOS, XandrOS, Slackware, OpenSolar
Posts: 155

Rep: Reputation: 55
Is it possible to assign DHCP IP for client for 5 interfaces at one shot?


I have a RHEL Machine. All I have is 5 Ethernet cards.
I want all of them to be assigned IP through DHCP while I boot my system.
Is it possible?
 
Old 05-11-2010, 02:05 AM   #2
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64- 5.15.2
Posts: 909

Rep: Reputation: 55
Sure its possible if you have a DHCP enabled Gateway and Dhcpd clients configured. Are you using an ISP's Gateway/Router/Modem are you wanting to configure one of your computers as to provides these services? Do you have a static or dynamic public address?
Given the information provided: You want to setup a home or LAN
network and share your internet connection. Not a problem. You can use DHCP or Masquerade with static Private Network IPs and just configure the pc1 as dhcp client.
http://www.educ.umu.se/~bjorn/linux/...ni/DHCP-4.html

Here is link for masquerade: http://tldp.org/HOWTO/IP-Masquerade-HOWTO/

You may also want to check this site out:
http://www.tldp.org/HOWTO/Security-Q.../services.html

Checkout basicconfig.com too!

Last edited by NightSky; 05-13-2010 at 01:47 PM.
 
Old 05-11-2010, 03:20 AM   #3
ajeetsinghraina
Member
 
Registered: May 2010
Location: India
Distribution: Ubuntu 7.04/8.04/8.10/10.04, RHEL 6, OpenSUSE,Mandriva,Fedora, CentOS, XandrOS, Slackware, OpenSolar
Posts: 155

Original Poster
Rep: Reputation: 55
Both the link is not working


I am using office desktop where I have the available NICs.
How can I setup?Here we have as usual DHCP configured.
 
Old 05-12-2010, 02:24 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,553

Rep: Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946
Quote:
Originally Posted by ajeetsinghraina View Post
Both the link is not working
Look at the link. It obviously has an extra http:// at the beginning. Remove it, and the link works fine.
Quote:
I am using office desktop where I have the available NICs.
How can I setup?Here we have as usual DHCP configured.
How can you setup WHAT? The 'office desktop', or a DHCP server?

If you want the NIC's to get a DHCP address, configure the NIC to get one when you're building the system. Since you're using RHEL, you've got access to the RedHat knowledebase, since you're paying for it. Google also has many articles on how to set up NIC's in RHEL. RedHat has "system-config-network", so if you run that, you can set up your NIC's to use DHCP, instead of static addresses.

If you need to build a DHCP server, again, there are many how-tos on it.
 
Old 05-12-2010, 06:36 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,348

Rep: Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749
Actually,the RHKB is still open to the public.
@OP; here's a typical cfg file for DHCP ethernet card eg /etc/sysconfig/network-scripts/ifcfg-eth0
Code:
DEVICE=eth0
HWADDR=<put MAC address here in hex format>
BOOTPROTO=dhcp
ONBOOT=yes
Type=Ethernet
repeat for another 4 files ie eth1-4
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it possible to ask DHCP assign a randomize hostname to client? Reaperhk Linux - Server 1 11-20-2009 08:53 PM
How to assign global IPv6 adresses to internal interfaces? ktf Linux - Networking 0 09-06-2009 09:52 AM
assign network interfaces to linux users? FireRaven Linux - Networking 4 04-29-2007 08:04 PM
Can't seem to dynamically assign my ethernet card using DHCP client daemon tre Linux - Networking 1 01-03-2004 10:21 AM
How can I assign an IP instead of DHCP? pilot1 Linux - Networking 2 12-06-2002 03:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration