LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 10-21-2009, 04:34 AM   #1
Astol
Member
 
Registered: Aug 2007
Location: Perth, Australia
Distribution: RHEL 5 + 4.5, Fedora
Posts: 88

Rep: Reputation: 15
Centos in VMware no network access


hi guys, long time no see.

im trying to set up a test machine in VMware Server, running CentOS (with asterix)

local IP's assigned:
Code:
   Connection-specific DNS Suffix  . : mycompany.local
   Description . . . . . . . . . . . : Broadcom 440x 10/100 Integrated Controlle
r
   Physical Address. . . . . . . . . : 00-1C-23-A8-F3-AB
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::217b:8670:4d4:8e81%11(Preferred)
   IPv4 Address. . . . . . . . . . . : 10.x.x.112(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Lease Obtained. . . . . . . . . . : Wednesday, 21 October 2009 11:04:36 AM
   Lease Expires . . . . . . . . . . : Tuesday, 27 October 2009 12:31:21 PM
   Default Gateway . . . . . . . . . : 10.x.x.2
   DHCP Server . . . . . . . . . . . : 10.x.x.20
   DHCPv6 IAID . . . . . . . . . . . : 234888227
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-12-5B-2A-92-00-1C-23-A8-F3-AB

   DNS Servers . . . . . . . . . . . : 10.x.x.20
                                       10.x.x.21
   NetBIOS over Tcpip. . . . . . . . : Enabled

Ethernet adapter VMware Network Adapter VMnet1:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : VMware Virtual Ethernet Adapter for VMnet
1
   Physical Address. . . . . . . . . : 00-50-56-C0-00-01
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::9141:d2bf:3c7a:d139%19(Preferred)
   IPv4 Address. . . . . . . . . . . : 192.168.177.1(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Lease Obtained. . . . . . . . . . : Wednesday, 21 October 2009 4:54:43 PM
   Lease Expires . . . . . . . . . . : Wednesday, 21 October 2009 5:24:42 PM
   Default Gateway . . . . . . . . . :
   DHCP Server . . . . . . . . . . . : 192.168.177.254
   DHCPv6 IAID . . . . . . . . . . . : 486559830
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-12-5B-2A-92-00-1C-23-A8-F3-AB

   DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
                                       fec0:0:0:ffff::2%1
                                       fec0:0:0:ffff::3%1
   NetBIOS over Tcpip. . . . . . . . : Enabled

Ethernet adapter VMware Network Adapter VMnet8:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : VMware Virtual Ethernet Adapter for VMnet
8
   Physical Address. . . . . . . . . : 00-50-56-C0-00-08
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::7ce2:bbe7:97da:6625%21(Preferred)
   IPv4 Address. . . . . . . . . . . : 192.168.60.1(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Lease Obtained. . . . . . . . . . : Wednesday, 21 October 2009 4:54:58 PM
   Lease Expires . . . . . . . . . . : Wednesday, 21 October 2009 5:24:57 PM
   Default Gateway . . . . . . . . . :
   DHCP Server . . . . . . . . . . . : 192.168.60.254
   DHCPv6 IAID . . . . . . . . . . . : 520114262
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-12-5B-2A-92-00-1C-23-A8-F3-AB

   DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
                                       fec0:0:0:ffff::2%1
                                       fec0:0:0:ffff::3%1
   Primary WINS Server . . . . . . . : 192.168.60.2
   NetBIOS over Tcpip. . . . . . . . : Enabled
what do i set the ip address etc to in the centos box? the dhcp doesnt work. im very confused, and if you need more info, please let me know

oh, and i have installed VMware tools (but dont know if i need to configure it)
 
Old 10-21-2009, 11:06 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,462
Blog Entries: 54

Rep: Reputation: 2899Reputation: 2899Reputation: 2899Reputation: 2899Reputation: 2899Reputation: 2899Reputation: 2899Reputation: 2899Reputation: 2899Reputation: 2899Reputation: 2899
Currently you have Vmnet 1 and 8 available so unless you route between networks traffic won't go anywhere. The easiest would be to configure the guest in VMWare to use "bridge" mode then configure the guest itself to use 'dhclient'. This way the guest will be able to get an IP from your LAN DHCPd like any other LAN machine.
 
Old 10-21-2009, 11:54 PM   #3
Astol
Member
 
Registered: Aug 2007
Location: Perth, Australia
Distribution: RHEL 5 + 4.5, Fedora
Posts: 88

Original Poster
Rep: Reputation: 15
i set the network adapted to bridged in VM Server, and used system-config-network to set DHCP, then did service network restart, and it says "Determining IP configuration for eth0... failed."

also, when i set manual IP, i can connect using ssh & telnet from the host machine, but cant get the linux VM to contact outside addresses

i just ran dhclient, and it came back with "no dhcpoffers received", however i do use a dhcp server...

Last edited by Astol; 10-22-2009 at 12:03 AM.
 
Old 10-22-2009, 04:20 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,462
Blog Entries: 54

Rep: Reputation: 2899Reputation: 2899Reputation: 2899Reputation: 2899Reputation: 2899Reputation: 2899Reputation: 2899Reputation: 2899Reputation: 2899Reputation: 2899Reputation: 2899
Quote:
Originally Posted by Astol View Post
i set the network adapted to bridged in VM Server, and used system-config-network to set DHCP, then did service network restart, and it says "Determining IP configuration for eth0... failed." also, when i set manual IP, i can connect using ssh & telnet from the host machine, but cant get the linux VM to contact outside addresses. i just ran dhclient, and it came back with "no dhcpoffers received", however i do use a dhcp server...
That information does not contain enough information to help us help you. We would need to know the address the DHCP server is at, the contents of the /etc/sysconfig/network-scripts/*eth* configuration file, if the DHCP server blocks unknown MAC addresses from getting a lease, any (error) output. In short: we need factual information not descriptions.
 
  


Reply

Tags
dhclient, dhcp, dhcpoffers, ssh, vmware


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
Access denied error while installing the VMWare player on headless centOS mohsleem Linux - Server 1 04-02-2014 10:21 AM
Configuration to access internet from vmware(host=winXP, guest on vmware=linux-5) afz_linux Linux - Newbie 3 12-30-2008 12:20 AM
Can't access Plesk on vmware Centos 5 server on LAN goodgirl Linux - Server 6 09-11-2008 11:25 PM
RedHat in Win2K vmware VM lost external network access for no known reason rxfelix Linux - Networking 0 02-14-2007 06:44 PM
RH9 under VMware Player loses network access after restart plong Linux - Networking 1 03-24-2006 01:28 PM


All times are GMT -5. The time now is 03:49 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