kotacakki
Posts: 4
Joined: Sat Jan 26, 2013 6:39 am

network connection to raspberry pi

Tue Feb 05, 2013 3:39 pm

I have read the post saying that "You may know your Pi's ip address by entring route command into prompt. Yo will see something like this:
pi@raspberrypi ~ $ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0

but, in my rasp i am getting reply that this:
pi@raspberrypi ~ $ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface

---there is no information regarding destination, gateway, etc.
As such I am not getting any network connected. Please trouble shoot if you can Please........

DBryant
Posts: 281
Joined: Sat Feb 02, 2013 12:41 pm
Location: Berkshire, UK

Re: network connection to raspberry pi

Wed Feb 06, 2013 8:39 am

Several things might be done before looking at routing tables.

To get the name of the system
hostname

To list all interfaces
ifconfig -a

Look for a line containing "UP BROADCAST RUNNING MULTICAST", the keyword is UP and in the lines above that, it will report IP address (v4 and v6) abd the broadcast address. The HWaddr/MAC address is also reported, useful if you want to check your DSL router.

You can do things like:
ping $(hostname)

which will determine your host and then attempt to ping it, which will have the IP address in the response.

It is also useful to know that if Apple's Bonjour services are in use then you can refer to your system by name simply by appending .local to the end. So if your system's name is pi, then it will respond to names like pi.local. Try:

ping pi.local

where pi is your name, and see if it works. If not, try installing libnss-mdns with:

sudo apt-get update
sudo apt-get install libnss-mdns

And then repeat. No longer do you need to know IP addresses (probably not true!).

Do the same on any other system in your network. In Windows this will work too, as long as you have ITunes installed. And if you don't have ITunes, then Google 'Bonjour print services' and install that. The open a command terminal on the Windows box and try 'ping pi.local' and it should resolve the IP address auto-magically.

Please run the ifconfig command and report the result.

Return to “Troubleshooting”