brent timothy saner on 29 Aug 2009 13:31:18 -0700

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] network fixer hat

Hash: SHA1

Eric wrote:
> I'm thinking this might work:
> route -v add -net netmask -dev eth1
> Would I add this permanently or just when I needed it?
> Thanks,
> Eric

i've seen some creative suggestions, but the old-fashioned rfc-friendly
way for this is to have routes defined on your routers, or use a dynamic
routing protocol (which would be overkill for this).

let's say you are at workstation A (a.k.a. the network),
the router (i'm assuming there's only one? if not, reply back with what
routers are where in the network and this can be tweaked) is at B, and
the block is at C (since it's a virtual concept and not
limited to a physical device).

(gosh, i hope my formatting keeps.)

    /       \
(ifaceB)    (ifaceC)
|		|
|		|
|		|
A		C

A needs a default route ( to B. C needs a default route to B.

B needs routes that look a-little a-like a-this (pardon the mangling):

root@legion:~# grep -v tun route.table
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface UH    0      0        0
eth0.1 UH    0      0        0
eth0.0   U     0      0        0 wl0   UG    0      0        0
eth0.1   U     0      0        0
eth0.1   UG    0      0        0
eth0.0   U     0      0        0
eth0.0         UG    0      0        0

in the example listed above, is the "WAN" to that network
(this was actually just a LAN/WLAN under another LAN, but the same
concept applies).
you wouldn't need the route, since that's there just to
route to one network up.

anyways, right. so in the above example, the LAN on that router is and is accessed via eth0.0. the WLAN is and
is on device wl0 (this is on an openwrt-flashed buffalo, if that
explains things). take note; eth0.0 and eth0.1 etc. are entirely
different physical interfaces, they aren't virtual NICs on the same

let me know if that clears things up for you.
Version: GnuPG v2.0.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla -

Philadelphia Linux Users Group         --
Announcements -
General Discussion  --