Simple Route Question
- From: Hal Vaughan <hal@xxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 27 Jul 2007 19:53:36 -0400
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
.
- Follow-Ups:
- Re: Simple Route Question
- From: Floyd L. Davidson
- Re: Simple Route Question
- From: Mike
- Re: Simple Route Question
- Prev by Date: Re: Linux multihomed routing (2 ISP, 1 internal network) problem
- Next by Date: Seriously confused about linux routing
- Previous by thread: Setting up of local resolver
- Next by thread: Re: Simple Route Question
- Index(es):
Relevant Pages
|