Request Linux network debugging command advice



Somehow, on Centos6, I was able to get connected to a test wireless ISP
antenna, but I'd like advice on being 'smoother' next time.

DO you have advice for better DEBUGGING networking on Linux?

Here's my saga:
- I mounted a ubiquiti rocket M2 radio outside & set it up
- I turned off my wireless adapter with a switch on the laptop
- I plugged in a cat5 cable linking the radio with the laptop
.... First problem: I couldn't connect to the radio at 192.168.1.20
# ping 192.168.1.20 failed
http://192.168.1.20 failed
- I solved the connect problem by setting my laptop to the same subnet
- $ sudo ifconfig eth0 192.168.1.21
.... Second problem: The gateway was 0.0.0.0 instead of 192.168.1.20
# arp -n showed the gateway for eth0 to be 0.0.0.0
# route -n showed the eth0 gateway to be 0.0.0.0
- I solved the gateway by running the route command
- $ sudo route del default gw 0.0.0.0 eth0
- $ sudo route add default gw 192.168.1.20 eth0
.... Third problem: The DNS servers in the radio were not found
- I solved that by editing the /etc/resolv.conf file
- $ vi /etc/resolv.conf
(I added these two lines)
nameserver 8.8.8.8
nameserver 4.2.2.2

At this point, the following commands started working:
$ host www.google.com
$ nslookup www.google.com
$ dig www.google.com
$ traceroute www.google.com

But strangely, the web still failed for a while - but then - inexplicably
- the web finally started working.

I wish I had better debugging skills as I had to look up all the steps
above:
a) How to set the eth0 adapter to the same subnet as the radio
b) How to set the gateway on the laptop (no router is involved)
c) How to set the DNS servers on the laptop (connected directly to the
radio)

Do you have debugging suggestions?
.



Relevant Pages

  • Re: What would your dream SW portable receiver look like?
    ... My IC-706 coupled with a laptop can do many of those... ... specialized search functions- be able to define the search band. ... The receiver itself is better than most scanners for sure.... ... is tempting...The 2000 is a handy radio. ...
    (rec.radio.shortwave)
  • Re: OT - need computer help
    ... Or maybe I should call that a word processor. ... I want to learn how to use it once, maybe get advice ... Go with a used laptop, ... several models/brands within your price range then go with the one which has ...
    (rec.pets.dogs.behavior)
  • Re: Help needed:Turning internal IDE drive into external USB drive
    ... I need a little advice please. ... I spent $AU62 on the thingso while I want a decent one that does the job & doesn't overheat,I don't want to spend a fortune on it.Brand/price recommendation would be welcome. ... Also,will it work with a laptop?I have a DellInspiron 6400/E1505 with 1 G memory & 80G hard drive with Windows Vista Home Basic.It's an excellent little laptop that has given me no hassles in the year that ... I originally wanted the drive to store my music on.I got an ipod for Xmas & Itunes & mp3s are a memory hog. ...
    (comp.os.os2.setup.misc)
  • Helping a scammed friend
    ... I wonder if any here would be kind enough to offer me some advice. ... laptop from a HK seller, that is shipped over, you know the rest. ... Royal Bank of Scotland account via bank transfer. ... via eBay. ...
    (uk.people.consumers.ebay)
  • Re: Best laptop for MAME
    ... > is adequate for my purposes. ... > I already know that battery life will be crap regardless of what laptop ... > Any advice would be appreciated. ... There is one Handheld PC I would love to play mame games on, ...
    (alt.games.mame)