LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-25-2008, 01:36 PM   #1
okos
Member
 
Registered: May 2007
Location: California
Distribution: Slackware/Ubuntu
Posts: 609

Rep: Reputation: 38
Please explain ifconfig and dhcpcd?? Losing eth0 due to vmware.


Hi,
My question is how to manage and understanding ifconfig, dhcpcd and bridging?

My problem:
I installed vmware server. When I reboot vmware hijacks my eth0 interface with bridged vmnet1 and vmnet8. I am no longer able to connect to the internet through slackware.

First of all I don't quite understand how ifconfig, dhcpcd, and bridging works.

To try to get it working ive googled quite a bit without really getting the answers I am looking for. Ive read the man pages on ifconfig and dhcpcd and was still not able to get reconnected.

To try to reconnect Ive done the following without success in root.

ifconfig eth0 up
ERROR while getting interface flags: No such device


ifconfig eth* up
Same thing.

dhcpcd
ifconfig
Still no eth0 interface

dhcpcd eth* up
ifconfig
Still not eth0 interface.

ifconfig vment1 down
ifconfig vment8 down
dhcpcd eth* up
ifconfig
Still no eth0 interface.

The only way Ive been able to reconnect is to:
chmod 000 /etc/rc.d/init.d/vmware
reboot

When I boot the vmware server is de-activiated and I get eth0 interface again.

Could anyone explain how to get both the vmnet* interfaces and eth0 up and working together?

Last edited by okos; 05-25-2008 at 08:42 PM.
 
Old 05-26-2008, 06:19 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590
AFAIK VMware comes with its own DHCP daemon so it should not block your hosts connection unless there's a failure in VMware (unlikely) or you configured things a bit wonky (less unlikely). You could boot with VMware off, save output from 'ifconfig -a; route -n' and your DHCP lease info to a file, then boot with VMware on and save output from 'ifconfig -a; route -n' and your DHCP lease info to another file and then compare (post?). Else check your syslogs and vmware serverd log for clues (post?), else backup your VMware config (by moving the whole config dir (/etc/vmware?) to another name) and start afresh?

Last edited by unSpawn; 05-27-2008 at 07:54 AM.
 
Old 05-26-2008, 07:02 PM   #3
seraphim172
Member
 
Registered: May 2008
Posts: 101

Rep: Reputation: 15
Nat

'ifconfig' is simply a tool to give you information related to networking. Running it as root also allows to apply certain settings.

I agree with unSpawn that VMware usually doesn't hijack ethernet connections (didn't happen with me so far). Maybe try NAT networking in VMware instead of bridging and see if that works.

Linux Archive

Last edited by seraphim172; 06-25-2008 at 05:32 AM.
 
Old 05-26-2008, 11:17 PM   #4
okos
Member
 
Registered: May 2007
Location: California
Distribution: Slackware/Ubuntu
Posts: 609

Original Poster
Rep: Reputation: 38
I installed vmplayer instead of vm server and everything seems to work.

I reinstalled vm server several times even keeping the same network settings as vm player and it still did not work.

I had to sudo chmod 000 /etc/rc.d/init.d/vmware to turn vmserver off at boot.

When reinstalling vmserver my settings would work until I rebooted. Then no internet connection at all.

I am not sure where the logs are for vmware. I will have to look into it.

In addition, Vmserver seems to run xp a little faster then vmplayer. There are also more setting options with vm server. So I am hoping to get it working. I nNow boot my xp partition through vm.

Here is my ifconfig with vmplayer.
Quote:
eth0 Link encap:Ethernet HWaddr 00:0d:56:ad:92:fe
inet addr:192.168.2.2 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::20d:56ff:fead:92fe/64 Scope:Link
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5941 errors:0 dropped:0 overruns:0 frame:0
TX packets:1884 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1505578 (1.4 MiB) TX bytes:403414 (393.9 KiB)
Interrupt:17

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:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:200 (200.0 B) TX bytes:200 (200.0 B)

vmnet1 Link encap:Ethernet HWaddr 00:50:56:c0:00:01
inet addr:192.168.129.1 Bcast:192.168.129.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:fec0:1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

vmnet8 Link encap:Ethernet HWaddr 00:50:56:c0:00:08
inet addr:192.168.201.1 Bcast:192.168.201.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:fec0:8/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

wlan0 Link encap:Ethernet HWaddr 00:90:4b:63:60:85
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

wmaster0 Link encap:UNSPEC HWaddr 00-90-4B-63-60-85-76-6D-00-00-00-00-00-00-00-00
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.129.0 0.0.0.0 255.255.255.0 U 0 0 0 vmnet1
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.201.0 0.0.0.0 255.255.255.0 U 0 0 0 vmnet8
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.2.1 0.0.0.0 UG 0 0 0 eth0
With vmserver there is no eth0 and no internet connection through host or guest.

I will reinstall server and post what happends.
 
Old 05-27-2008, 12:09 AM   #5
okos
Member
 
Registered: May 2007
Location: California
Distribution: Slackware/Ubuntu
Posts: 609

Original Poster
Rep: Reputation: 38
I am not sure what is going on but it is working now.

I reinstalled it about five times, each time fiddling with the settings.
I am not sure what the problem was.

Here is my settings:
Quote:
Do you want networking for your virtual machines? (yes/no/help) [yes]

Would you prefer to modify your existing networking configuration using the
wizard or the editor? (wizard/editor/help) [editor] wizard

The following bridged networks have been defined:

. vmnet0 is bridged to eth0

Do you wish to configure another bridged network? (yes/no) [no] y

Configuring a bridged network for vmnet2.

The following bridged networks have been defined:

. vmnet0 is bridged to eth0
. vmnet2 is bridged to wlan0

All your ethernet interfaces are already bridged.

Do you want to be able to use NAT networking in your virtual machines? (yes/no)
[yes]

Configuring a NAT network for vmnet8.

The NAT network is currently configured to use the private subnet
192.168.201.0/255.255.255.0. Do you want to keep these settings? [yes]

This system appears to have a DHCP server configured for normal use. Beware
that you should teach it how not to interfere with VMware Server's DHCP server.
There are two ways to do this:

1) Modify the file /etc/dhcpd.conf to add something like:

subnet 192.168.201.0 netmask 255.255.255.0 {
# Note: No range is given, vmnet-dhcpd will deal with this subnet.
}

2) Start your DHCP server with an explicit list of network interfaces to deal
with (leaving out vmnet8). e.g.:

dhcpd eth0

Consult the dhcpd(8) and dhcpd.conf(5) manual pages for details.
A little off the subject,
Could you explain dhcpcd and ifconfig?
 
Old 05-27-2008, 08:00 AM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590
Quote:
Originally Posted by okos View Post
I am not sure what is going on but it is working now. I reinstalled it about five times, each time fiddling with the settings. I am not sure what the problem was.
And you never will know because you probably didn't save info between runs to compare nor did you post any logs or whatever else.


Quote:
Originally Posted by okos View Post
A little off the subject, Could you explain dhcpcd and ifconfig?
Doesn't it read "Consult the dhcpd(8) and dhcpd.conf(5) manual pages for details" right there?
 
  


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
Very odd Ethernet problem when using ifconfig and dhcpcd vdemuth Slackware 7 11-16-2007 07:57 AM
how to make iwconfig, ifconfig and dhcpcd load during boot? pwc101 Linux - Wireless Networking 1 12-28-2006 04:11 PM
tying "dhcpcd" into "ifconfig" up and down Riddick Linux - Software 8 09-10-2005 08:14 PM
eth0 removed from ifconfig after dhcpcd eth0 johnklvr Linux - Networking 3 01-15-2004 09:21 PM
ifconfig and dhcpcd - scripted papasasha Linux - Networking 4 03-29-2002 05:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:23 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration