[SOLVED] Not able to get internet on CentOS

Issues related to configuring your network
Post Reply
Ram102
Posts: 3
Joined: 2015/03/28 18:11:18

[SOLVED] Not able to get internet on CentOS

Post by Ram102 » 2015/03/28 18:28:32

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.

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: Not able to get internet on CentOS

Post by gerald_clark » 2015/03/28 19:18:33

Use a bridged connection, not NAT.

Ram102
Posts: 3
Joined: 2015/03/28 18:11:18

Re: Not able to get internet on CentOS

Post by Ram102 » 2015/04/01 05:10:29

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

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: Not able to get internet on CentOS

Post by gerald_clark » 2015/04/01 13:03:04

You need to add a nameserver to /etc/resolv.conf.
You need to add a GATEWAY to /etc/sysconfig/network.

Ram102
Posts: 3
Joined: 2015/03/28 18:11:18

Re: [SOLVED] Not able to get internet on CentOS

Post by Ram102 » 2015/04/01 15:29:46

it works, thanks for your hlep

Post Reply