LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Two DHCP IP assigned to a single Machine? (https://www.linuxquestions.org/questions/linux-newbie-8/two-dhcp-ip-assigned-to-a-single-machine-802325/)

linuxunix 04-16-2010 01:28 AM

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.

jefro 04-16-2010 06:36 PM

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.

10speed705 04-16-2010 09:22 PM

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

jefro 04-17-2010 11:14 AM

Oh, instead of stop maybe simply try to renew lease.

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


All times are GMT -5. The time now is 04:11 PM.