I recently installed Cent OS-6 desktop on my virtualBox, My host OS is Win 7 64-bit.
After install i'm not able to get internet or ping host os or ping to google.com.
router IP : 192.168.1.1
Ipconfig from host OS.
Wireless LAN adapter Wireless Network Connection:
Connection-specific DNS Suffix . : xxxxxxx
Link-local IPv6 Address . . . . . : fe80::7cdc:6812:12cd:7e30%14
IPv4 Address. . . . . . . . . . . : 192.168.1.132
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1
Ethernet adapter Local Area Connection:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Ethernet adapter VirtualBox Host-Only Network:
Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::19af:6567:9007:2fe8%26
IPv4 Address. . . . . . . . . . . : 192.168.56.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
Virtual Box:
cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
HWADDR=08:00:28:83:82:FF
TYPE: Etherent
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=
IPADDR=192.168.1.120
NETWORK:192.168.1.1
USERCTL=yes
NETMASK=255.255.255.0
PEERDNS=yes
Can anybody suggest, how to resolve this issue?
I need to get internet on my VM and ssh required from my Host OS.
[SOLVED] Not able to get internet on CentOS
-
- Posts: 10642
- Joined: 2005/08/05 15:19:54
- Location: Northern Illinois, USA
Re: Not able to get internet on CentOS
Use a bridged connection, not NAT.
Re: Not able to get internet on CentOS
Thanks for the response, i changed to bridge Adapter and able to ping router but not able to get internet.
ping www.google.com
ping: unknown host www.google.com
ping www.google.com
ping: unknown host www.google.com
-
- Posts: 10642
- Joined: 2005/08/05 15:19:54
- Location: Northern Illinois, USA
Re: Not able to get internet on CentOS
You need to add a nameserver to /etc/resolv.conf.
You need to add a GATEWAY to /etc/sysconfig/network.
You need to add a GATEWAY to /etc/sysconfig/network.
Re: [SOLVED] Not able to get internet on CentOS
it works, thanks for your hlep