Re: Simple Route Question



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 )


.



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: Second ISP
    ... make sure that the second ISP router does not have a better default ... All of this can be done with show ip route ... Does this require a routing ... but I would recommend a routing protocol. ...
    (comp.dcom.sys.cisco)
  • Re: Problem with IP Masquerade + routed internal network (pretty newbie question)
    ... The network looks like this: ... > other way to define routes other than typing route add... ... If you have a proper router set up, each box on each subnet should only ... would route everything to our factory WAN over frame relay. ...
    (comp.os.linux.networking)