LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-10-2015, 01:11 PM   #16
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 789

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by Thor_2.0 View Post
Hmm..okay, on to the netmasks...they have to be the same, as well as the broascast...let's check this...
A good example



All neatly INSIDE the network shell...

Melissa
Edit - what is the IP address of your router/modem?
What do you mean by neatly in the network shell?

I think the pi doesn't know the router IP. Is there a way to make ifconfig return this info?

My router/modem (same thing as the gateway, right?) IP is 192.168.1.1. I can ping it from another server on my network.
 
Old 12-10-2015, 01:29 PM   #17
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 789

Original Poster
Rep: Reputation: Disabled
Looks like my gateway is set correctly, no? This is the Pi:

Code:
eth0      Link encap:Ethernet  HWaddr b8:27:eb:77:55:11  
          inet addr:192.168.1.222  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::ba27:ebff:fe77:5511/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:223 errors:0 dropped:0 overruns:0 frame:0
          TX packets:516 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:15299 (14.9 KiB)  TX bytes:36356 (35.5 KiB)

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:65536  Metric:1
          RX packets:187 errors:0 dropped:0 overruns:0 frame:0
          TX packets:187 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:19040 (18.5 KiB)  TX bytes:19040 (18.5 KiB)

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 eth0
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
0.0.0.0         192.168.1.1     0.0.0.0         UG        0 0          0 eth0
192.168.1.0     0.0.0.0         255.255.255.0   U         0 0          0 eth0
PING 192.168.1.222 (192.168.1.222) 56(84) bytes of data.
64 bytes from 192.168.1.222: icmp_req=1 ttl=64 time=0.147 ms
64 bytes from 192.168.1.222: icmp_req=2 ttl=64 time=0.114 ms
64 bytes from 192.168.1.222: icmp_req=3 ttl=64 time=0.089 ms
64 bytes from 192.168.1.222: icmp_req=4 ttl=64 time=0.082 ms
64 bytes from 192.168.1.222: icmp_req=5 ttl=64 time=0.081 ms

--- 192.168.1.222 ping statistics ---
5 packets transmitted, 5 received, 0 packet loss, time 3996ms
rtt min/avg/max/mdev = 0.081/0.102/0.147/0.027 ms
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
From 192.168.1.222 icmp_seq=1 Destination Host Unreachable
From 192.168.1.222 icmp_seq=2 Destination Host Unreachable
From 192.168.1.222 icmp_seq=3 Destination Host Unreachable

--- 192.168.1.1 ping statistics ---
5 packets transmitted, 0 received, +3 errors, 100% packet loss, time 4007ms
pipe 3
PING 192.168.1.201 (192.168.1.201) 56(84) bytes of data.
From 192.168.1.222 icmp_seq=1 Destination Host Unreachable
From 192.168.1.222 icmp_seq=2 Destination Host Unreachable
From 192.168.1.222 icmp_seq=3 Destination Host Unreachable

--- 192.168.1.201 ping statistics ---
5 packets transmitted, 0 received, +3 errors, 100% packet loss, time 4002ms
pipe 3
  477  ifconfig > x
  478  route -n >> x
  479  netstat -r -n >> x
  480  ping 192.168.1.222 >> x
  481  ping 192.168.1.1 >> x
  482  ping 192.168.1.201 >> x
  483  history 7 >> x
And this is my other server:

Code:
[root@devserver ~]# ifconfig
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:65536  Metric:1
          RX packets:376865 errors:0 dropped:0 overruns:0 frame:0
          TX packets:376865 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:66457194 (63.3 MiB)  TX bytes:66457194 (63.3 MiB)

wlan0     Link encap:Ethernet  HWaddr B8:76:3F:69:31:95
          inet addr:192.168.1.201  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::ba76:3fff:fe69:3195/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1280565 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1091622 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:375569680 (358.1 MiB)  TX bytes:537755155 (512.8 MiB)

[root@devserver ~]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 wlan0
169.254.0.0     0.0.0.0         255.255.0.0     U     1002   0        0 wlan0
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 wlan0
[root@devserver ~]# netstat -r -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
192.168.1.0     0.0.0.0         255.255.255.0   U         0 0          0 wlan0
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 wlan0
0.0.0.0         192.168.1.1     0.0.0.0         UG        0 0          0 wlan0
[root@devserver ~]# ping 192.168.1.222
PING 192.168.1.222 (192.168.1.222) 56(84) bytes of data.
From 192.168.1.201 icmp_seq=2 Destination Host Unreachable
From 192.168.1.201 icmp_seq=3 Destination Host Unreachable
From 192.168.1.201 icmp_seq=4 Destination Host Unreachable
^C
--- 192.168.1.222 ping statistics ---
4 packets transmitted, 0 received, +3 errors, 100 packet loss, time 3595ms
pipe 3
[root@devserver ~]#

Last edited by NotionCommotion; 12-10-2015 at 01:49 PM.
 
Old 12-10-2015, 01:58 PM   #18
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 789

Original Poster
Rep: Reputation: Disabled
I feel like an idiot! My Pi was connected to my Ooma modem. Sorry for wasting your time.
 
Old 12-10-2015, 03:08 PM   #19
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
Quote:
I feel like an idiot!
Dont..it happens
The times I tried to ping a local server only to find the switch at the local node is not turned on...trust me, this happens
So...all working now?
By the way...
Quote:
Sorry for wasting your time.
...you did'nt I for one love doing this
Melissa

Last edited by ButterflyMelissa; 12-10-2015 at 03:10 PM.
 
Old 12-10-2015, 08:36 PM   #20
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 789

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Thor_2.0 View Post
Dont..it happens
The times I tried to ping a local server only to find the switch at the local node is not turned on...trust me, this happens
So...all working now?
By the way...

...you did'nt I for one love doing this
Melissa
Thanks Melissa, I very much appreciate your help and understanding. But you have to agree, it was quite the bonehead move! While not true in general life, one thing I always appreciate in technology is when I am facing something that seems just plain old impossible, I always eventually figure out exactly the culprit.
 
  


Reply


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
[SOLVED] Centos cannot ping hosts on the same subnet after change to static ip chenbo Linux - Networking 13 07-27-2011 12:40 AM
CentOS 3.5 Enterprise Server -- I need to change my Local Static IP address. kexpert Red Hat 12 11-08-2009 05:33 AM
FC4 won't ping 127.0.0.1 or the internet, but will ping local computers jalsk Linux - Networking 4 11-22-2005 05:59 PM
Cannot ping local system when pinging system is set for static IP SkipHuffman Linux - Networking 4 08-22-2005 11:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:48 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration