Re: Simple Route Question



Floyd L. Davidson wrote:

Hal Vaughan <hal@xxxxxxxxxxxxxxxxxxxx> wrote:
I've worked on Linux and done some work with networking, but that's been
just basic setup stuff. For now, I have a net on 172.16.xxx.xxx and I
will need to be able to connect to a Linksys router I'm working with for a
while
that I'll be putting OpenWRT on. While doing this, I need to address the
router in its default 192.168.1.1 address from my workstation.

Okay, I'm assuming this is a Linksys WRT54G wireless
router, probably a Version 2??? (The following
discussion applies to any WRT54G.)

Yes, it is. I didn't want to go into that level of detail, but I guess
that's what most people are working with on something like this.

I used:

route add -host 192.168.1.1 eth0

Okay, that looks good!

then typed "route" and got this:

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
192.168.1.1 * 255.255.255.255 UH 0 0 0
eth0
172.16.7.0 * 255.255.255.0 U 0 0 0
eth0
link-local * 255.255.0.0 U 1000 0 0
eth0
default loc.fw.lan 0.0.0.0 UG 0 0 0
eth0

Yep, you now have a route from this host *to* the
router, via eth0.

But alas, the router's route table does not provide a
way to get back, via the LAN ports, to a host with an
address in the 172.16.x.x range.

I see. So what's on the Linux box is right, it's the router with the
problem.

This is a (somewhat obnoxious) result of the router
being designed (and the documentation written) to work
with home users of Windows. I.e., it defaults to what
will work on the simplest Windows system, and they don't
tell you what that is.

Yes. I originally had a new WRT54GS and that was worse. I didn't know the
default IP address and used the setup disk on my one Windows system and it
hosed the networking settings. I had to change all the settings back to
get the computer to work on my network again.

The router defaults to 192.168.1.1, *and* has its DHCP
server enabled... with a route table that knows about
the IP addresses which the DHCP server can assign, and
nothing else. There is no default to the LAN ports
(there might be to the WAN port, I don't remember... but
it would be worthless too because it cannot access the
HTTP server).

The WAN can access the HTTP server, but not until it's configured to do
that. I was able to change over to do it eventually, but I've flashed the
firmware now and I'm having a similar problem again, but I'm getting help
in configuring the firewall on the OpenWRT site.

So, there are two possible tricks you can use to access
the router. One is to use DHCP to get an Ethernet
interface configured to match the router. You can do
that with a laptop, using the only Ethernet port or
using a spare on a desktop that has two or more, or
whatever.

dhcpcd -d eth0

I ended up just having to pull plugs on my Ethernet switch and taking the
only system with a cable long enough to connect to another router, which
was my Windows system.

....
What am I doing wrong?

You're doing nothing wrong... you just need to continue
with a few more of the right things!

Thanks for the help! Once I understood the issue and that it was on the
router's end, I pulled the cable out and hooked up my Windows system, as I
said. It solved that problem and was a big help!

Hal

.



Relevant Pages

  • Re: Cannot connect to RWW from home PC
    ... eth0 172.26.0.1/16 Extra none ... That would be the address you need a DNS record for. ... One question - if I reset the Thomson Router will that clear all the ... Heres' the info for our server: ...
    (microsoft.public.windows.server.sbs)
  • Re: Cannot connect to RWW from home PC
    ... No 10.0.0.138 is the address used to log onto Thomson's router to make the ... On the DNS question I can add an MX record in the DNS area of GoDaddy's ... eth0 172.26.0.1/16 Extra none ... Heres' the info for our server: ...
    (microsoft.public.windows.server.sbs)
  • Re: Cannot connect to RWW from home PC
    ... We have rerun CEICW sort of hoping it would sort out the router but no ... If you mean that you used the above as the cert in the CEICW, ... Ethernet adapter Server LAN Connection: ... eth0 169.254.243.18/16 Auto none ...
    (microsoft.public.windows.server.sbs)
  • Re: Cannot connect to RWW from home PC
    ... If your router is listening to 10.0.0.138, ... eth0 172.26.0.1/16 Extra none ... That would be the address you need a DNS record for. ... Heres' the info for our server: ...
    (microsoft.public.windows.server.sbs)
  • Re: Cannot connect to RWW from home PC
    ... No 10.0.0.138 is the address used to log onto Thomson's router to make the ... On the DNS question I can add an MX record in the DNS area of GoDaddy's ... eth0 172.26.0.1/16 Extra none ... Heres' the info for our server: ...
    (microsoft.public.windows.server.sbs)