Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Feb 1996 19:40:09 +0100 (MET)
From:      guido@gvr.win.tue.nl (Guido van Rooij)
To:        freebsd-questions@freebsd.org
Subject:   gated hacker wanted!
Message-ID:  <199602051840.TAA16651@gvr.win.tue.nl>

Next in thread | Raw E-Mail | Index | Archive | Help

Okay all you gated hackers. I am trying to solve a problem.
I have a machine with multiple interfaces. Underneath is the
for my problme relevant part of gated.conf.
ed3 is configured with adres 194.151.68.1, netmask 0xfffffe00.
What I like is that gated sends out rip packets containing entries
for both 194.151.68.0 and 194.151.69.0, both metric 1. In the setup
below, it will only do that for 194.151.68.0. I know that this is
normal because it wants to send out the routing entry on the gateway
itself, and the netmaks gets lost.
I would like to think that it should be possible to configure 
gated in such a way that you just enter these two routing entries
in the static section. However, then nothing is send.

How can this be done?

-Guido

# our interfaces should never be timed out
interfaces {
	interface 192.168.1.2 passive ;
	interface ed3 passive ;
} ;
# configuration for rip protocols
rip yes {

	# tell the world about our routes
	broadcast;

        # metric for non rip routes
	defaultmetric 1;

	# which routing info do we accept
	interface 192.168.1.2 ripout version 1;
	interface ed3 ripin ripout version 1;

} ;

static {
	default    gateway 192.168.1.3   retain;
	131.155    gateway 192.168.1.1   retain; # TUE

	194.151.68 mask 255.255.254.0 gateway 194.151.68.1	retain;
} ;


# what should we export
export proto rip interface 192.168.1.2 {
	proto direct {
		194.151.68.0 mask 255.255.254.0 metric 1;
		#194.151.69.0 mask 255.255.255.0 refine metric 1;
		#194.151.69.0 metric 1;
	} ;
	proto static {
		#194.151.68.0 metric 2;
		#194.151.69.0 metric 2;
	} ;
} ;







Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?199602051840.TAA16651>