Date: Wed, 21 Aug 1996 11:25:38 -0400 From: Chris Shenton <chris@absinthe.i3inc.com> To: freebsd-isp@freebsd.org Subject: Gated.conf for dialup subnets? Message-ID: <199608211525.LAA04423@absinthe.i3inc.com>
next in thread | raw e-mail | index | archive | help
----Next_Part(Wed_Aug_21_11:25:36_1996)--
Content-Type: Text/Plain; charset=us-ascii
I've set up a FreeBSD box for dialup access for a few dialups which
need to route to various home-office subnets. FreeBSD-2.1.5-RELEASE
routed doesn't support the variable-length subnet masks I need to use
to provide ppp PtP nets and larger ones for the remote nets, eg:
Dialup router: ppp0 207.31.83.5->207.31.83.6 /30 subnet
To remote net: 207.31.83.32 ... .48 /28 subnet
I took the plunge and brought up gated, and managed to hack a .conf
file together which rips out .6/32 and .32/28, but I'm not sure I have
it right. I can't depend on the remote nets sending me RIPv2 updates,
so I have to static them somehow.
The gated docs are decent syntax references, but aren't that helpful
as a guide of what to do and why. The O'Reilly TCP/IP Network
Administration book covers it pretty well, but the commands/syntax are
for an earlier version of gated, and don't include some items in the
latest rev in the ports collection (eg: define ... pointtopoint).
Anyone got working samples, advice, or pointers to good tutorials and
references?
Many thanks. I've attached config-du-jour if you think it might help
-- or just want to laugh :-)
--Chris
----Next_Part(Wed_Aug_21_11:25:36_1996)--
Content-Type: Text/Plain; charset=us-ascii
Content-Description: "gated.conf"
# $Id: gated.conf,v 1.8 1996/08/21 04:35:13 chris Exp $
#
# sisyphus: PPP server at Provider
# ed1 205.215.4.64/24
# ppp0 207.31.83.5:207.31.83.6/30 (to absinthe)
# ppp1 ??
# absinthe: gateway on homenet
# ppp0 207.31.83.6:207.31.83.5/30 (to sisyphus)
# le0 207.31.83.33/28 (on net 207.31.83.32/28)
#
# Want to advertise static/kernel/direct ?? route to PPP-connected homenet
# and PtP interface to the Provider net out ed1.
###############################################################################
traceoptions "/var/log/gated.log" replace size 50k files 3 general;
# Was advertising .32/28 and .6/32 OK without this;
# working on getting it to dynamically advertise when PPP is alive.
# See also: static{} and export ... {proto static...}
interfaces {
interface all passive; # never time them out
define 207.31.83.6 pointtopoint 207.31.83.5; # might not be at boot
};
rip yes {
broadcast; # regardless of #if's, static, etc
defaultmetric 1; # add to routes learned from other protos
interface 205.215.4.64 version 2; # RIPv2 to provider
};
static {
default gateway 205.215.4.1 retain; # default ether route
# Only see static when pppp's really up.
207.31.83.32 mask 255.255.255.240 gateway 207.31.83.6 interface ppp;
# Why isn't this advertised??
#207.31.83.32 mask 255.255.255.240 gateway 207.31.83.6;
# Advertised as .4/30; Direct does .6/32, why??
#207.31.83.4 mask 255.255.255.252 gateway 207.31.83.6; # use Direct??
# Need to set default route with "retain"... but not export
};
export proto rip interface 205.215.4.64 { # export to Provider
proto direct { # all direct nets
# Advertised as .6/32; why not 4/30??
207.31.83.4 mask 255.255.255.252 metric 1; # ppp mini-network only
};
proto static { # all defined statics
207.31.83.32 mask 255.255.255.240 metric 2; # homenet via ppp stat
};
# This rips out .32/28, finally, but remotes no longer sends .4/30.
# But what if it's not (manually) installed in the kernel??
# want it to come up when I log in via ppp.
proto kernel { # learned from kernel
207.31.83.32 mask 255.255.255.240 metric 1; # homenet
};
};
----Next_Part(Wed_Aug_21_11:25:36_1996)----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199608211525.LAA04423>
