Wednesday, November 27, 2013

Wired internet not working in Xubuntu 12.0.4

You have assigned static IP address to your xubuntu machine or (virtual machine) using /etc/networks/interfaces.
You tried ifconfig and it gives you your IP address. You can access other computers on your local network but you have no internet connection.
Maybe the reason is your machine can not find DNS server to access internet.

a) Click "Network Manager" icon on top right corner.
b) Select 'Connection Information'. If disabled, then there is no active connection.

Chech your ip address

$ifconfig eth0(or eth1)

if no ip is assigned then try assigning static ip address from 'Network manager' or choose DHCP option for automatic ip address assignment. Automatic IP will be re-assigned on every system boot.
try

$ping -c 3 www.google.com

If it says "can't reach address"  then try followwing steps:

1) Binding DNS server to our machine.

$sudo dhclient eth0

 2) check DNS

$cat /etc/resolv.conf

It should have one-or-two IP addresses written and you should be able to access internet now.



No comments:

Post a Comment