Re: Simple Route Question
- From: Mike <mikedawg@xxxxxxxxx>
- Date: Sat, 28 Jul 2007 00:53:38 -0000
On Jul 27, 4:53 pm, Hal Vaughan <h...@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.
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
I don't quite understand what you're trying to do?
Are you trying to add a default gateway?
route add default gw 192.168.1.1 (optionally you COULD add: route
add default gw 192.168.1.1 dev eth0 )
.
- References:
- Simple Route Question
- From: Hal Vaughan
- Simple Route Question
- Prev by Date: Seriously confused about linux routing
- Next by Date: Re: Simple Route Question
- Previous by thread: Simple Route Question
- Next by thread: Re: Simple Route Question
- Index(es):
Relevant Pages
|