LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 09-05-2009, 06:04 PM   #1
madkayaker
LQ Newbie
 
Registered: Dec 2008
Location: New Hampshire
Distribution: Debian Etch
Posts: 10

Rep: Reputation: 0
Question Static IP Address not connecting to the internet Ubuntu 9.04


Hi, I just installed Ubuntu 9.04 on my desktop. I had networking working for a while under DHCP after I installed Wicd (and uninstalled Gnome Network Manager) but now that I've set up a static IP address (that campus IT gave me, I'm on a college network), it has ceased to connect to the internet. I cannot use Firefox or ping any external servers (eg: www.google.com) or internal computers (my laptop).

Here are the results for the following commands:

Code:
okeefm@okeefmdeb:~$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:25:11:2e:55:2a  
          inet addr:128.113.158.58  Bcast:128.113.159.255  Mask:255.255.248.0
          inet6 addr: fe80::225:11ff:fe2e:552a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:24865 errors:0 dropped:0 overruns:0 frame:0
          TX packets:193 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:2117671 (2.1 MB)  TX bytes:21265 (21.2 KB)
          Interrupt:252 

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:69 errors:0 dropped:0 overruns:0 frame:0
          TX packets:69 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:6088 (6.0 KB)  TX bytes:6088 (6.0 KB)
Code:
okeefm@okeefmdeb:~$ cat /etc/resolv.conf
nameserver 128.113.26.77
nameserver 128.113.28.67
Code:
okeefm@okeefmdeb:~$ netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
128.113.152.0   0.0.0.0         255.255.248.0   U         0 0          0 eth0
0.0.0.0         128.113.152.254 0.0.0.0         UG        0 0          0 eth0
all of the IP addresses are correct with what my school has given me.

If you could help at all, it would be greatly appreciated
 
Old 09-05-2009, 06:35 PM   #2
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
It can be that it's not that, but just on the first look, I find something strange in the addresses that you were given. Can you check IP addresses again with your school?
 
Old 09-05-2009, 08:25 PM   #3
madkayaker
LQ Newbie
 
Registered: Dec 2008
Location: New Hampshire
Distribution: Debian Etch
Posts: 10

Original Poster
Rep: Reputation: 0
This is over wired networking.

The values that I was given by my school are:
Code:
IP Address
128.113.158.58	
Netmask
255.255.248.0	
Gateway
128.113.152.254	
DNS Server
128.113.26.77, 128.113.28.67
copied straight from the webpage they were given on.
 
Old 09-06-2009, 12:51 AM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,516

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
Can you ping your gateway?
Code:
ping 128.113.152.254
If yes, can you ping the outsite
Code:
ping 209.85.229.104
If yes, can you ping on IP?
Code:
ping www.google.com
Any firewall?
Code:
iptables -L
Disable the firewall
Code:
iptables -F

Last edited by repo; 09-06-2009 at 06:44 AM.
 
Old 09-06-2009, 06:34 AM   #5
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,033

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Quote:
Code:

IP Address
128.113.158.58
Netmask
255.255.248.0
Gateway
128.113.152.254
DNS Server
128.113.26.77, 128.113.28.67
That is some strange network.
From RFC1919:
Quote:
Section 3: Private Address Space

The Internet Assigned Numbers Authority (IANA) has reserved the
following three blocks of the IP address space for private networks:

10.0.0.0 - 10.255.255.255
172.16.0.0 - 172.31.255.255
192.168.0.0 - 192.168.255.255

We will refer to the first block as "24-bit block", the second as "20-bit
block", and the third as "16-bit" block". Note that the first block is
nothing but a single class A network number, while the second block is a set
of 16 continuous class B network numbers, and the third block is a set of 255
continuous class C network numbers.
So your school's network isn't in any of the three ranges for a private LAN. I think this is going to cause you BIG problems.
 
Old 09-06-2009, 06:51 AM   #6
JulianTosh
Member
 
Registered: Sep 2007
Location: Las Vegas, NV
Distribution: Fedora / CentOS
Posts: 674
Blog Entries: 3

Rep: Reputation: 90
Quote:
Originally Posted by tredegar View Post
So your school's network isn't in any of the three ranges for a private LAN. I think this is going to cause you BIG problems.
The numbers (ip, mask, broadcast, subnet) the OP provided jive. There are plenty of organizations that use public IP space on internal networks.

Need an answer on repo's questions on whether you can ping your gateway/etc.
 
Old 09-06-2009, 09:39 AM   #7
madkayaker
LQ Newbie
 
Registered: Dec 2008
Location: New Hampshire
Distribution: Debian Etch
Posts: 10

Original Poster
Rep: Reputation: 0
Here are the results:

Code:
 okeefm@okeefmdeb:~$ ping 128.113.152.254
PING 128.113.152.254 (128.113.152.254) 56(84) bytes of data.
From 128.113.158.58 icmp_seq=2 Destination Host Unreachable
From 128.113.158.58 icmp_seq=3 Destination Host Unreachable
From 128.113.158.58 icmp_seq=4 Destination Host Unreachable
From 128.113.158.58 icmp_seq=5 Destination Host Unreachable
From 128.113.158.58 icmp_seq=6 Destination Host Unreachable
From 128.113.158.58 icmp_seq=7 Destination Host Unreachable
From 128.113.158.58 icmp_seq=8 Destination Host Unreachable
From 128.113.158.58 icmp_seq=9 Destination Host Unreachable
From 128.113.158.58 icmp_seq=10 Destination Host Unreachable
^C
--- 128.113.152.254 ping statistics ---
13 packets transmitted, 0 received, +9 errors, 100% packet loss, time 12049ms
, pipe 3
Code:
 okeefm@okeefmdeb:~$ sudo iptables -L
[sudo] password for okeefm: 
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
Code:
 okeefm@okeefmdeb:~$ sudo iptables -F
the results for ping were the same after running "sudo ipatbles -L" and "sudo iptables -F"
 
Old 09-06-2009, 10:05 AM   #8
evilted
Member
 
Registered: Aug 2009
Location: Ouagadougou, Burkina Faso
Distribution: centos
Posts: 92

Rep: Reputation: 18
the problem is at your default gateway. maybe your not authorized to use it, or its an incorrect gateway.

out of interest do you have connectivity around your campus? can you ping your dns servers? (or anything else inside your campus network?)

iptables is firewall. your problem is routing.. 'Destination Host Unreachable'

Last edited by evilted; 09-06-2009 at 10:06 AM.
 
Old 09-06-2009, 10:20 AM   #9
madkayaker
LQ Newbie
 
Registered: Dec 2008
Location: New Hampshire
Distribution: Debian Etch
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by evilted View Post
the problem is at your default gateway. maybe your not authorized to use it, or its an incorrect gateway.
Hmm...could be. I tried using the gateway from the computer's DHCP settings, but I still get the exact same ping results.

Quote:
out of interest do you have connectivity around your campus? can you ping your dns servers? (or anything else inside your campus network?)
Not while the computer is using these static settings. I can't ping anything. When I switch to DHCP, I have no problem at all--I can use firefox, ping anything, etc.
 
Old 09-06-2009, 10:26 AM   #10
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,516

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
What happens if you use dhcp ?
 
Old 09-06-2009, 10:33 AM   #11
madkayaker
LQ Newbie
 
Registered: Dec 2008
Location: New Hampshire
Distribution: Debian Etch
Posts: 10

Original Poster
Rep: Reputation: 0
Code:
 okeefm@okeefmdeb:~$ ping 128.113.152.254
PING 128.113.152.254 (128.113.152.254) 56(84) bytes of data.
64 bytes from 128.113.152.254: icmp_seq=1 ttl=255 time=1.26 ms
64 bytes from 128.113.152.254: icmp_seq=2 ttl=255 time=1.01 ms
64 bytes from 128.113.152.254: icmp_seq=3 ttl=255 time=1.10 ms
64 bytes from 128.113.152.254: icmp_seq=4 ttl=255 time=1.99 ms
64 bytes from 128.113.152.254: icmp_seq=5 ttl=255 time=1.07 ms
64 bytes from 128.113.152.254: icmp_seq=6 ttl=255 time=0.996 ms
64 bytes from 128.113.152.254: icmp_seq=7 ttl=255 time=1.07 ms
64 bytes from 128.113.152.254: icmp_seq=8 ttl=255 time=0.808 ms
64 bytes from 128.113.152.254: icmp_seq=9 ttl=255 time=1.00 ms
^C
--- 128.113.152.254 ping statistics ---
9 packets transmitted, 9 received, 0% packet loss, time 8005ms
rtt min/avg/max/mdev = 0.808/1.147/1.992/0.322 ms
Code:
 okeefm@okeefmdeb:~$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:25:11:2e:55:2a  
          inet addr:128.113.193.83  Bcast:128.113.207.255  Mask:255.255.240.0
          inet6 addr: fe80::225:11ff:fe2e:552a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:16977 errors:0 dropped:0 overruns:0 frame:0
          TX packets:713 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1825354 (1.8 MB)  TX bytes:116085 (116.0 KB)
          Interrupt:252 

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:33 errors:0 dropped:0 overruns:0 frame:0
          TX packets:33 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:2880 (2.8 KB)  TX bytes:2880 (2.8 KB)
Code:
 okeefm@okeefmdeb:~$ netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
128.113.192.0   0.0.0.0         255.255.240.0   U         0 0          0 eth0
0.0.0.0         128.113.192.254 0.0.0.0         UG        0 0          0 eth0
Oddly enough, while I can ping any internal (128.113) IP, I can't ping anything outside (www.google.com). I'm pretty sure this is the result of firewalling at the campus pipeline to the internet, since it's the same way on my laptop. I can get to websites on the desktop while using DHCP, so it doesn't have any connectivity issues.
 
Old 09-06-2009, 10:34 AM   #12
evilted
Member
 
Registered: Aug 2009
Location: Ouagadougou, Burkina Faso
Distribution: centos
Posts: 92

Rep: Reputation: 18
yes, like i thought its at your default gw.. not your pc..

Last edited by evilted; 09-06-2009 at 10:36 AM.
 
Old 09-06-2009, 10:35 AM   #13
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,516

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
Can you ping on IP?

Code:
ping 212.100.160.51
If yes, there is a problem with the DNS server
 
Old 09-06-2009, 10:40 AM   #14
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,516

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
128.113.192.254 is the gateway if you use dhcp, correct?
can you ping 128.113.192.254 when you are on dhcp ?

When you use stati ip the gateway is 128.113.152.254
 
Old 09-06-2009, 10:52 AM   #15
madkayaker
LQ Newbie
 
Registered: Dec 2008
Location: New Hampshire
Distribution: Debian Etch
Posts: 10

Original Poster
Rep: Reputation: 0
Yes, 128.113.192.254 is my gateway on DHCP. Ping results while on DHCP:

Code:
 okeefm@okeefmdeb:~$ ping 128.113.192.254
PING 128.113.192.254 (128.113.192.254) 56(84) bytes of data.
64 bytes from 128.113.192.254: icmp_seq=1 ttl=255 time=0.683 ms
64 bytes from 128.113.192.254: icmp_seq=2 ttl=255 time=0.617 ms
64 bytes from 128.113.192.254: icmp_seq=3 ttl=255 time=0.566 ms
64 bytes from 128.113.192.254: icmp_seq=4 ttl=255 time=0.609 ms
64 bytes from 128.113.192.254: icmp_seq=5 ttl=255 time=0.719 ms

64 bytes from 128.113.192.254: icmp_seq=6 ttl=255 time=0.624 ms
64 bytes from 128.113.192.254: icmp_seq=7 ttl=255 time=0.594 ms
64 bytes from 128.113.192.254: icmp_seq=8 ttl=255 time=0.624 ms
^C
--- 128.113.192.254 ping statistics ---
8 packets transmitted, 8 received, 0% packet loss, time 6999ms
rtt min/avg/max/mdev = 0.566/0.629/0.719/0.052 ms
when I ping 212.100.160.51 on static IP:

Code:
 okeefm@okeefmdeb:~$ ping 212.100.160.51
PING 212.100.160.51 (212.100.160.51) 56(84) bytes of data.
From 128.113.158.58 icmp_seq=1 Destination Host Unreachable
From 128.113.158.58 icmp_seq=2 Destination Host Unreachable
From 128.113.158.58 icmp_seq=3 Destination Host Unreachable
^C
--- 212.100.160.51 ping statistics ---
6 packets transmitted, 0 received, +3 errors, 100% packet loss, time 5030ms
, pipe 3
On DHCP, though:

Code:
 okeefm@okeefmdeb:~$ ping 212.100.160.51
PING 212.100.160.51 (212.100.160.51) 56(84) bytes of data.
^C
--- 212.100.160.51 ping statistics ---
207 packets transmitted, 0 received, 100% packet loss, time 206815ms
 
  


Reply

Tags
ip, networking, static, ubuntu


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Connecting to internet via ubuntu 9.04 adithya24 Linux - Networking 2 08-12-2009 12:17 AM
Ubuntu static IP address assignment error tebucky Linux - Networking 2 08-06-2009 11:43 AM
Static IP address in Ubuntu Russ Linux - Networking 3 03-01-2009 08:27 AM
Help with Connecting to Internet - Ubuntu tjd50 Linux - General 8 09-04-2008 04:29 AM
Linux, Internet Radio and Static IP address webwolf70 Linux - Software 5 03-10-2005 02:10 AM


All times are GMT -5. The time now is 08:52 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration