We help IT Professionals succeed at work.

when i change ubunto server 11 to static ip if cant see internet how do i stop this

awolarczuk
awolarczuk used Ask the Experts™
on
Hi all when i change my server to a static ip it cant see the the internet it appears if it can seethe rest of my networkjust not the internet

how do i stop this
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Issue these commands.

ping yahoo.com

ping 98.137.149.56

Also show your /etc/resolv.conf file.

It could simply be a DNS issue.  Or may be a gateway issue.

Issue command
netstat -nr

Author

Commented:
heres what i get mate



  Graph this data and manage this system at https://landscape.canonical.com/
Last login: Fri Aug  5 12:29:23 2011
root@Server2:~# ping yahoo.com
connect: Network is unreachable
root@Server2:~# ping 98.137.149.56
connect: Network is unreachable
root@Server2:~# netstat -nr
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
192.168.0.0     0.0.0.0         255.255.255.0   U         0 0          0 eth0
root@Server2:~#

Author

Commented:
ok worked it out mate but i have just install dhcp server through wemin as well and it is not comming up in the server area do you know why
When you setup your static, you are not setting the gateway correctly.  That is the reason.

Two things you have to take care of are
1.  Gateway
2.  DNS setting