LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 04-16-2010, 01:28 AM   #1
linuxunix
Member
 
Registered: Mar 2010
Location: California
Distribution: Slackware
Posts: 235

Rep: Reputation: 18
Two DHCP IP assigned to a single Machine?


I just installed Fedora 13 on my ESX box.I have Fedora 13 Machine which was early having 1 network adapter.I added a new Interface type: e1000 to this VM.Now,My ifconfig says:

Code:
[root@fedora-13 ~]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:50:56:BA:00:15
          inet6 addr: fe80::250:56ff:feba:15/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:9234 errors:1 dropped:0 overruns:0 frame:0
          TX packets:124 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:751133 (733.5 KiB)  TX bytes:12489 (12.1 KiB)
          Interrupt:18 Base address:0x2000

eth1      Link encap:Ethernet  HWaddr 00:0C:29:43:38:B9
          inet addr:10.112.173.74  Bcast:10.112.173.255  Mask:255.255.254.0
          inet6 addr: fe80::20c:29ff:fe43:38b9/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4600 errors:0 dropped:0 overruns:0 frame:0
          TX packets:122 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:412156 (402.4 KiB)  TX bytes:14882 (14.5 KiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:51 errors:0 dropped:0 overruns:0 frame:0
          TX packets:51 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
Whenever I restart the network it says:
Code:
[root@fedora-13 ~]# service network restart
Shutting down interface eth0:  Error org.freedesktop.DBus.Error.ServiceUnknown: The name com.redhat.ifcfgrh1 was not provided by any .service files
Error: Device 'eth0' (/org/freedesktop/NetworkManager/Devices/0) disconnecting failed: Cannot disconnect an inactive device.
                                                           [FAILED]
Shutting down interface eth1:  Error org.freedesktop.DBus.Error.ServiceUnknown: The name com.redhat.ifcfgrh1 was not provided by any .service files
Error: Device 'eth0' (/org/freedesktop/NetworkManager/Devices/0) disconnecting failed: Cannot disconnect an inactive device.
                                                           [FAILED]
Shutting down loopback interface:  Error org.freedesktop.DBus.Error.ServiceUnknown: The name com.redhat.ifcfgrh1 was not provided by any .service files
Error org.freedesktop.DBus.Error.ServiceUnknown: The name com.redhat.ifcfgrh1 was not provided by any .service files
Error org.freedesktop.DBus.Error.ServiceUnknown: The name com.redhat.ifcfgrh1 was not provided by any .service files
Error org.freedesktop.DBus.Error.ServiceUnknown: The name com.redhat.ifcfgrh1 was not provided by any .service files
                                                           [  OK  ]
Bringing up loopback interface:  Error org.freedesktop.DBus.Error.ServiceUnknown: The name com.redhat.ifcfgrh1 was not provided by any .service files
Error org.freedesktop.DBus.Error.ServiceUnknown: The name com.redhat.ifcfgrh1 was not provided by any .service files
Error org.freedesktop.DBus.Error.ServiceUnknown: The name com.redhat.ifcfgrh1 was not provided by any .service files
Error org.freedesktop.DBus.Error.ServiceUnknown: The name com.redhat.ifcfgrh1 was not provided by any .service files
                                                           [  OK  ]
[root@fedora-13 ~]#
All i was trying to provide IP to eth0 and eth1 through dhcp.
is it possible to provide two IP address to eth0 and eth1 both through DHCP.

Last edited by linuxunix; 04-16-2010 at 03:16 AM.
 
Old 04-16-2010, 06:36 PM   #2
jefro
Guru
 
Registered: Mar 2008
Posts: 11,323

Rep: Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386
Any number of nic's either real or virtual could get a single IP assigned by dhcp.

It may be possible in the actual reference that a second IP could be offered also but I have never seen it implemented.


I'd suggest that you re-install the OS from scratch and see if it fails with the two nic's present at install time.

Kind of hard to isolate a beta install to some feature or bug.


Also if both are add on cards, move the cards order in the pci slots too.

Last edited by jefro; 04-16-2010 at 06:39 PM.
 
Old 04-16-2010, 09:22 PM   #3
10speed705
Member
 
Registered: May 2009
Location: Ontario Canada
Distribution: debian
Posts: 56

Rep: Reputation: 17
Also maybe try disabling eth1
Code:
ifconfing eth1 down
and see if you can get an IP on eth2

I have a box right now in a production environment that gives me access to the internal network on eth1 and i test/config other modem/routers as well as pass external traffic on eth2 seeing both have different gateways i prefer to static the IP on eth2 this may also prove as a solution to you if DHCP is not a necessity for your task.

in my case
Code:
ifcfg eth2 192.168.15.2
hope you get this working
 
Old 04-17-2010, 11:14 AM   #4
jefro
Guru
 
Registered: Mar 2008
Posts: 11,323

Rep: Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386
Oh, instead of stop maybe simply try to renew lease.

http://ubuntuforums.org/showthread.php?t=150713
 
  


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
eth0 ip assigned by dhcp , how would i know the ip address of the dhcp server where.. kublador Linux - Networking 14 05-16-2006 06:33 AM
working SAMBA PDC and DHCP on single machine?? hasnain Linux - Networking 1 01-05-2005 04:25 AM
What's my DHCP assigned IP and where is it? Buckyjunior Linux - Networking 7 02-27-2004 01:29 PM
dhcp assigned address nilbog Linux - Networking 4 04-02-2003 11:17 AM
How to find out my IP address on a DHCP IP Assigned machine? simonh Linux - Networking 2 12-10-2002 05:49 AM


All times are GMT -5. The time now is 09:39 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration