can't access internet
Okay Linux newbie here. I set up a server with Ubuntu 12.04 LTS I’m going to use it as a fog server. It has lamp and samba. I have set an static IP address, but unable to access internet, and can’t ping IP address either. I have already tried network restart commands sudo and with out sudo. I'm not sure if that was the right track or not just need to get this up and running.
|
try to check where your name servers and gateway are correct in
/etc/resolve.conf |
please run this to provide the necessary diag info:
Code:
echo uname: && uname -a -m -p && echo lspci: && lspci && echo lsusb: && lsusb && echo lsmod: && lsmod && echo ifconfig: && ifconfig && echo ifconfig -a: && ifconfig -a && echo iwconfig: && iwconfig && echo resolv.conf: && cat /etc/resolv.conf && echo route: && route -n && echo ping router: && ping -c 1 `route | awk '/default/ {print $2}'` && echo ping dns-server: && ping -c 1 `awk '/nameserver/ {print $2}' /etc/resolv.conf | head -n 1` && echo ping using ip: && ping -c 1 64.235.229.141 && echo ping using dns: && ping -c 1 www.02144.com |
1 Attachment(s)
I am attaching a shot of my ifconfig results to see if that helps to pin point problem.
|
i tried pinging that address but it just hangs.
|
yeah that's the same problem I am having not sure what to do...
|
Does anyone know what I need to do to get it to stop hanging?
|
Have you tried dhclient eth0
|
Hi,
how did you configure your static IP? Did you edit your /etc/network/interfaces file? What did you set for gateway and netmask? If you reinitialise that interface do (assuming you really are using /etc/network/interfaces): Code:
sudo ifdown eth0 |
Hi,
Quote:
OP: can you confirm? Evo2. |
You must use ifconfig to see if the interface is configured. If the network interface has the IP you want, then it's configured. If you can't ping it, a firewall or router is probably blocking the ping. If you have no router between the machines, then you have to use a xover cable. Traceroute might help after you make sure the interface is configured. If you have a default DROP packet filter, you must specifically allow ICMP for ping to pass through.
|
Member Response
Hi,
I'll add to what other members have suggested. From the 'ifconfig' your IP is assigned to ' Board of Regents of the University System of Georgia'. Do you have the kernel route table setup properly? From the 'cli' do a 'route -n'; Quote:
Code:
route -n Quote:
Quote:
Code:
route add -net 168.30.166.27 netmask 255.255.255.0 dev eth0 If the eth device has been configured properly and with a valid IP then a valid 'route table a 'ping' to a known good IP should respond properly. |
All times are GMT -5. The time now is 07:20 AM. |