LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 04-06-2003, 02:44 PM   #1
triplem
LQ Newbie
 
Registered: Feb 2002
Location: Northern Ireland
Posts: 14

Rep: Reputation: 0
Redhat 9, VMware and DHCP Server


I have installed Redhat 9 under vmware (3.2). i am trying to get the machine networked. i am unable to get eth0 activated. My Router BEFSX41 is acting as a DHCP server. I have plugged PC into port 1 of router. My broadband connection is plugged into the WAN connection. How do i get the eth0 to pick up addresses from the DHCP Server.

thanks in advance

triplem
 
Old 04-06-2003, 03:57 PM   #2
dorian33
Member
 
Registered: Jan 2003
Location: Poland, Warsaw
Distribution: LFS, Gentoo
Posts: 587

Rep: Reputation: 32
more info pls:
1. which platform you used (linux) for VMware?
2. why do you want to use dhcp from router? VMware usually uses their own dhcp (remeber that NIC of virtual machine is not the same as eth of the phisical box)
3. did you allowed the packet forwarding (iptables on linux, internet connection sharing on win)?
 
Old 04-06-2003, 04:43 PM   #3
aero
LQ Newbie
 
Registered: Apr 2003
Location: Portugal
Distribution: VMware 4.0 RedHat 9.0
Posts: 29

Rep: Reputation: 15
Finally someone with the same problem !
I have been working on same problem, for 2 days now, I began by upgrading a RH8 in the VMAware 3.2 it ggave the same result. I have now got a patch for VMware Utils, but can't get it 2 work
If I give an fixed IP to it, it starts eth0 but the dhcp doesnt recognized the machine and it will not get into the intranet also
any luck by now ?
 
Old 04-06-2003, 04:57 PM   #4
dorian33
Member
 
Registered: Jan 2003
Location: Poland, Warsaw
Distribution: LFS, Gentoo
Posts: 587

Rep: Reputation: 32
Hi guys!
I am using VMvare on linux platform without any troubles. I could help you buy be more specific and say more about chosen configuration.
What kind of networking have you choosen (Bridged , Network Address Translation (NAT) or Host-Only)?
 
Old 04-06-2003, 05:12 PM   #5
triplem
LQ Newbie
 
Registered: Feb 2002
Location: Northern Ireland
Posts: 14

Original Poster
Rep: Reputation: 0
thx everyone for your help. i am in the same predicament as aero eth0 starts up if i assign it a static ip but won't if i use DHCP. Using bridged networking. I am using windows XP with RH9 running in virtual machine

triplem

Last edited by triplem; 04-06-2003 at 05:13 PM.
 
Old 04-06-2003, 05:42 PM   #6
aero
LQ Newbie
 
Registered: Apr 2003
Location: Portugal
Distribution: VMware 4.0 RedHat 9.0
Posts: 29

Rep: Reputation: 15
Unhappy

yeh precisely what I have, I think the driver wont work in RH9, maybe because of the new kernel, I think there is a new VMware 4 Beta available for beta test I think I'll give it a try, meanwhile I'll try to compile the driver that came with the patch if you want I can send the patch to you is only 150k. send me yr e-mail via pm
 
Old 04-09-2003, 01:21 PM   #7
bigkuba
LQ Newbie
 
Registered: Apr 2003
Posts: 4

Rep: Reputation: 0
Hi all!

I have the same problem. Some comments:
1. I have VMWare 4.0 (already upgraded from 3.2 to 4.0 for 99$ ) running on win2k. The problem arises as well.
2. I am using NAT on VMNet8.
3. Running dhclient as root from a console will correctly get DHCP info even if the eth0 interface is inactive and using vnetsniffer on vmnet8 you can see packets. Once dhclient used, DHCP packets are properly sent to DHCP server, although eth0 is down.
4. And as usually, static assignment works.
 
Old 04-09-2003, 01:57 PM   #8
RVK
Member
 
Registered: Mar 2003
Distribution: Mandrake 9.1
Posts: 42

Rep: Reputation: 15
VMware won't actually be able to pickup an IP from the DHCP server unless you have an extra IP for it to pick up. You have to think of your guest OS as a second machine which is using your Host OS as the router.

Go into your network configurations for the RH 9 Virtual Machine and select Network Address Translation (NAT). This has to be set with the VM powered off. This will make your Host OS assign an local network IP address to your guest OS. Your guest OS can then piggy back on the host's internet connection.

Good Luck

-R
 
Old 04-09-2003, 02:26 PM   #9
dorian33
Member
 
Registered: Jan 2003
Location: Poland, Warsaw
Distribution: LFS, Gentoo
Posts: 587

Rep: Reputation: 32
Quote:
Originally posted by bigkuba
Running dhclient as root from a console will correctly get DHCP info even if the eth0 interface is inactive and using vnetsniffer on vmnet8 you can see packets. Once dhclient used, DHCP packets are properly sent to DHCP server, although eth0 is down
What is strange in that and why you are confused?
You have got 3 i/f: lo, eth0 and vmnet8 at linux box. The vmnet8 is virtual interface but acts like phisical inteface. It is 'connected' to virtual switch. This 'switch' is created along with vmnet8 and connects virtual DHCP server and virtual machine inteface. So if you run dhclient and ask for ip you get the answer. See man dhcp: "If no interface names are specified on the command line dhclient will normally identify all network interfaces"
 
Old 04-09-2003, 02:41 PM   #10
bigkuba
LQ Newbie
 
Registered: Apr 2003
Posts: 4

Rep: Reputation: 0
Hmm, well. But the interface is down and trying to bring it up it says: check cable No packet goes through this interface until you run dhclient. Then only DHCP packets goes arround.
 
Old 04-09-2003, 02:45 PM   #11
bigkuba
LQ Newbie
 
Registered: Apr 2003
Posts: 4

Rep: Reputation: 0
RVK: I am using NAT and DHCP server is my host machine. I am able to handle advanced DHCP setting for VMWare DHCP server in vmnetdhcp.conf (I was able to configure it for full DHCP support for Solaris9). The problem is (looking through vnetsniffer) that RH 9 sends no packets through interface eth0, until you've made static assignment.
 
Old 04-09-2003, 05:40 PM   #12
aero
LQ Newbie
 
Registered: Apr 2003
Location: Portugal
Distribution: VMware 4.0 RedHat 9.0
Posts: 29

Rep: Reputation: 15
Thanks for the input, unfortunatly, If I give the Static IP, it will start eth0, but it wont connect and neither My dhcp server (Linksys Router) will register that Ip, and ofcourse nothing will go out or come in from the ethernet or internet.

I hoped that ver4 would come with another driver for the virtual linux machine, but it seems it won't. My RH8 virtual machine is working very well and i didn't had to bother with ip setings. I think the driver isn't compatible with RH9

My netware adapter bridged
 
Old 04-11-2003, 04:30 PM   #13
bigkuba
LQ Newbie
 
Registered: Apr 2003
Posts: 4

Rep: Reputation: 0
Solved

Hi all!

The solution for the problem can be found on news.vmware.com in vmware.guest.linux forum.

Shortly, it is bug in kernel Bad luck Fortunately, there is a solution (copied from the news server):

> I've had problems getting bridged or natted networking working with Redhat 9 and VMWare 4460.
> RH9 includes link status detection using (I think) `ethtool eth0` in the ifup script. This command always states that the network link is not connected for the VMWare Adapters.
> Commenting out this code in network-functions (grep for ethtool) seems to solve the problem and the adapter initialises and gets an address from DHCP.
> Looks like a bug somewhere.....

In Linux kernel. Currentl AMD PCnet driver simple cannot return 'link present' on hardware VMware emulates.

On Mandrake 9.1 add
NO_MII_SUPPORT=yes
to /etc/sysconfig/network-scripts/ifcfg-eth0.

On RedHat 9 add
check_link_down() {
return 1;
}
to the same file (just write it as is, Redhat fortunately allows functions in their config files...).
 
Old 04-13-2003, 06:32 AM   #14
aero
LQ Newbie
 
Registered: Apr 2003
Location: Portugal
Distribution: VMware 4.0 RedHat 9.0
Posts: 29

Rep: Reputation: 15
thanks I'll give it a try, anybody tryed this ?

Nice newsgroup also,thanks

Last edited by aero; 04-13-2003 at 06:53 AM.
 
Old 04-14-2003, 11:45 AM   #15
n0naim
LQ Newbie
 
Registered: Apr 2003
Posts: 2

Rep: Reputation: 0
I'll give it a try tonight when I get back from work.


Thanks!

--
n0naim
 
  


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
How to make DHCP server in Redhat 7----------- pal Linux - Newbie 3 06-03-2005 10:33 PM
How do I setup a DHCP server on RedHat 9 xsabre Linux - Newbie 1 06-23-2004 04:48 PM
XP Pro Build 2600/sp1 v.1105 DHCP Client to Redhat 8.0 DHCP Server - Problems atomant Linux - Networking 5 06-28-2003 11:24 AM
setup a dhcp server with suse 8.2 or redhat 6.2/9.0 The_SUSE_NEWBE Linux - Networking 1 06-10-2003 08:53 AM
Redhat Linux server not getting ip comcast dhcp server munisp Linux - Networking 1 03-24-2003 12:26 PM


All times are GMT -5. The time now is 08:09 AM.

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