eth0 could not connect internet
3 Attachment(s)
My box is scientific linux 6.1 x86 on virtualbox. After reinstalling vritualbox, I could not connect internet.
The file "/etc/sysconfig/network-scripts/ifcfg-eth0" is this. Code:
DEVICE=eth0 Thanks inadvance. |
have you tried releasing ip address?
Quote:
also ONBOOT=no try changing that to yes plus make sure the networking service is running. Try this Quote:
|
evilputty/
I did as you instructed. PHP Code:
Please make ip address 192.168.0.4. So I tried to edit "/etc/sysconfig/network-scripts/ifcfg-eth0" as this. Code:
DEVICE=eth0 |
1 Attachment(s)
And I checked ipaddress as attached photo.
As you can see, the ip addresses are different between "ifconfig" and "system eth0". |
have you restarted the network after making changes in the eth0 file?
check the type of network connection between virtual machine and your host machine If you are trying to get ip from dhcp then it should be bridged connection |
deep27ak/
I restart computer with vm. And I've changed to bridged connection. But still same states. Now ipconfig and connection information of system eth0 is same ip, but still browse any internet site. After "dhclient -r" and "dhclient" commands, "inet addr" was disappeared. Code:
[root@localhost Documents]# dhclient -r |
Instead of dhcp why don't you try giving a static IP address
can you ping to the host IP? what is the IP range of your host and what is the dhcp range you have assigned to dhcp server? Are you sure your dhcp server is working properly? |
deep27ak/
The result of ping is here. Quote:
About dhcpd, Quote:
|
1 Attachment(s)
so it seems you are not even connected to your local network
check your virtual box network setting is it same as the one I have attached? and as I said try with a static IP in eth0 file and one thing which surprises me is you have used bootproto 2 times in your config file? Code:
DEVICE=eth0 Code:
bootproto=none |
please do
Code:
ipconfig /all Also, why did you need to reinstall virtualbox in the first place? Maybe a little more information about the host will help us out. also how many network interfaces are on your virtual machine? |
1 Attachment(s)
1. The resut of "ipconfig /all".
Quote:
3. There is one network interfaces on scientific linux VM. 4. And the attached photo is file list of "/etc/sysconfig/network-scripts" |
If you are making static ip address then the following steps should be involved as,
1. ipconfig eth0 <x.x.x.x> netmask <x.x.x.x> up 2. edit /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 BOOTPROTO=none ONBOOT=yes TYPE=Ethernet BOOTPROTO=static IPADDR=<static ip address> NETMASK=<netmask address> GATEWAY=<Gateway ip address> HWADDR=<Lan hardware address> 3. Check your proxy server setting if any 4. Restart the network as service network restart 5. also, chkconfig --level 2345 network on 6. check, ifconfig eth0 If you are making dhcp ip address then the following steps should be involved as, 1. edit /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 BOOTPROTO=none ONBOOT=yes BOOTPROTO=dhcp TYPE=Ethernet HWADDR=<Lan hardware address> 2. Restart the network as service network restart 3. Also, chkconfig --level 2345 network on 4. run, dhclient 5. check, ifconfig eth0 Now check your internet connection. |
smilemukul/ I followed second tip, but the result of ping is this.
Quote:
|
Quote:
Code:
#vi /etc/sysconfig/network-scripts/ifcfg-eth0 Code:
#vi /etc/sysconfig/network Code:
#service network restart |
Can you paste the output of /etc/sysconfig/network-scripts/ifcfg-eth0 & ifconfig eth0
also to which interface "192.168.0.102" ip is allocated ? & you are trying to ping from which machine (windows or linux) ? |
All times are GMT -5. The time now is 04:51 PM. |