Simple Route Question



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.

I used:

route add -host 192.168.1.1 eth0

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

When I try to reach the router by the web interface, there's no response and
lynx is "Unable to connect to remote host." I've tried adding "dev"
before "eth0" when I set up the route, but it doesn't work.

I've been looking for a routing tutorial, but all the ones I find use
iproute or iproute2 and the man page for route gives examples for adding
nets, but no specific examples of adding hosts, so while I'm using what the
few references I can find seem to say to do, I figure I've got to be doing
something wrong and I can't find a good resource on the net to tell me what
I need to change.

What am I doing wrong?

Thanks!

Hal
.



Relevant Pages

  • Re: Debian Install help
    ... I CAN ping other machines on my local lan. ... The output of 'route' looks ... also redhad 7.0 through the same router and dsl modem and same network ...
    (Debian-User)
  • Re: Simple Route Question
    ... router in its default 192.168.1.1 address from my workstation. ... you now have a route from this host *to* the ... router, via eth0. ... that the *only* DHCP server on that LAN segment is that ...
    (comp.os.linux.networking)
  • Re: pppoe configuration - unable to ping outside
    ... output of route is ... I can ping my local machines, my router, but not outside (from my ...
    (Debian-User)
  • Re: Simple Route Question
    ... router in its default 192.168.1.1 address from my workstation. ... route add -host 192.168.1.1 eth0 ... before "eth0" when I set up the route, ... iproute or iproute2 and the man page for route gives examples for adding ...
    (comp.os.linux.networking)
  • Re: Baypass request from eth1 to eth0
    ... i connect local pc to the eth0. ... Sounds like you're missing a route to 172.16.1.0/24 (or whatever the ... If it is a hardware router, ... another host that you intend to act as a router. ...
    (Fedora)