andre.maldonado
August 25th, 2012, 01:58 PM
Hi. I'm new to Ubuntu Server, this is my first attempt.
This is the cenario:
I'm connected to internet and the connection go to my D-Link DI-524 good and old router.
I have 2 computers (Win7 and Linux) cabble connected in the router and one mobile device wirelless connected. The Win7 computer connects to the internet without problems, the same thing happens with mobile device.
The linux 12.04 fresh installed server can't connect. FYI, in the router I configured DHCP to give an static IP to the linux server (192.168.0.102).
I can connect via ssh from windows to linux without any problem. But I can't reach internet from linux. So, when I do:
wget www.google.com
I get this error:
--2012-08-25 09:42:35-- http://www.google.com/
Resolving www.google.com (www.google.com)... failed: Temporary failure in name resolution.
wget: unable to resolve host address `www.google.com'
This is the /etc/network/interfaces:
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet dhcp
This is the ifconfig output:
eth0 Link encap:Ethernet HWaddr 00:1a:80:bb:62:32
inet addr:192.168.0.102 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::21a:80ff:febb:6232/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:9997 errors:0 dropped:0 overruns:0 frame:0
TX packets:7767 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1162542 (1.1 MB) TX bytes:1085352 (1.0 MB)
Interrupt:16
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1613 errors:0 dropped:0 overruns:0 frame:0
TX packets:1613 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:127782 (127.7 KB) TX bytes:127782 (127.7 KB)
And this is the resolv.conf:
nameserver 201.46.240.40
nameserver 201.46.240.45
nameserver 192.168.0.100
Where 192.168.0.100 is my router.
So, why I can't reach internet from linux server?
Thank's a lot!
This is the cenario:
I'm connected to internet and the connection go to my D-Link DI-524 good and old router.
I have 2 computers (Win7 and Linux) cabble connected in the router and one mobile device wirelless connected. The Win7 computer connects to the internet without problems, the same thing happens with mobile device.
The linux 12.04 fresh installed server can't connect. FYI, in the router I configured DHCP to give an static IP to the linux server (192.168.0.102).
I can connect via ssh from windows to linux without any problem. But I can't reach internet from linux. So, when I do:
wget www.google.com
I get this error:
--2012-08-25 09:42:35-- http://www.google.com/
Resolving www.google.com (www.google.com)... failed: Temporary failure in name resolution.
wget: unable to resolve host address `www.google.com'
This is the /etc/network/interfaces:
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet dhcp
This is the ifconfig output:
eth0 Link encap:Ethernet HWaddr 00:1a:80:bb:62:32
inet addr:192.168.0.102 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::21a:80ff:febb:6232/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:9997 errors:0 dropped:0 overruns:0 frame:0
TX packets:7767 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1162542 (1.1 MB) TX bytes:1085352 (1.0 MB)
Interrupt:16
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1613 errors:0 dropped:0 overruns:0 frame:0
TX packets:1613 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:127782 (127.7 KB) TX bytes:127782 (127.7 KB)
And this is the resolv.conf:
nameserver 201.46.240.40
nameserver 201.46.240.45
nameserver 192.168.0.100
Where 192.168.0.100 is my router.
So, why I can't reach internet from linux server?
Thank's a lot!