LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Centos in VMware no network access (https://www.linuxquestions.org/questions/linux-networking-3/centos-in-vmware-no-network-access-763396/)

Astol 10-21-2009 04:34 AM

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)

unSpawn 10-21-2009 11:06 AM

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.

Astol 10-21-2009 11:54 PM

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...

unSpawn 10-22-2009 04:20 PM

Quote:

Originally Posted by Astol (Post 3728041)
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.


All times are GMT -5. The time now is 02:32 AM.