Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Aug 1998 15:00:45 +0400
From:      "Andrew A.Karjagin" <Andrew.Karjagin@tdis.gctc.rssi.ru>
To:        "Net@FreeBSD.ORG" <freebsd-net@FreeBSD.ORG>, richi@tdis
Subject:   Router
Message-ID:  <35DC01DC.BFF93BF4@tdis.gctc.rssi.ru>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------2C690D7994D084A9E781B95E
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

 Hi !
 I have a server P100-32Mb with FreeBSD 2.2.5 and two interfaces NE2000
on it. "ed0" interface is outside network interface and has two IP
(193.232.26.20 - legal IP, 192.168.5.1 - local IP for SLIP connections),
"ed1" is inside network interface and also has two IP (193.232.26.77 -
legal IP, 192.168.0.31 - local IP for local LAN network). Also it have a
8-channel multiplexor with 8 modems for SLIP connections. As proxy
server - DelagateD, and router - GateD 3-5-7.
 I want to start it server as a router and gateway for "ed1" network
(legal and local IP too). I am edit the options "gateway="YES" and
"routed="YES", "defaultrouter="193.232.26.17" from ed0 in /etc/rc.conf.
Used "ports" GateD-3-5-7 as a routed daemon. For it gated.conf file
(attach). But it didn't work as a router between two interfaces.
 I am read the GateD documentation and HandBook, but don't understand,
where I am wrong.
 Thank you for your help!

--

Best wishes                        Andrew A.Karjagin
Gagarin Cosmonaut Training Center, Star Town, Russia



--------------2C690D7994D084A9E781B95E
Content-Type: text/plain; charset=us-ascii; name="gated.conf"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="gated.conf"

#
# gated configuration file for FreeBSD 2.2.5 server, gated version 3.5.7
#
#

rip yes { interface sl noripout noripin ;
        interface 193.232.26.20 ripin ripout ;
        interface 193.232.26.77 ripin ripout ;
        interface 192.168.0.31 noripin noripout ;
	traceoptions route ;
} ;

# Turn on a bunch of tracing info for the interface to the kernel
#
kernel {
	traceoptions remnants request routes info interface ;
} ;

# Static route from ed1 to ed0 via RIP
static { host 193.232.26.77 gateway 193.232.26.20 preference 100 ; 
         } ;
#
# Propagate the route to 192.168.5.0 out the Ethernet interface via RIP
# and to 193.232.26.0 by Ethernet interface via RIP
export proto rip interface ed {
	proto direct {
		192.168.5.0 mask 255.255.255.0 metric 1 ; # SLIP connections
		} ;    
        proto rip {
                193.232.26.0 mask 255.255.255.240 ;
                } ;
} ;

#
# Accept routes from RIP via ed Ethernet interfaces
#
import proto rip interface ed {
		all ;
} ;


--------------2C690D7994D084A9E781B95E--


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?35DC01DC.BFF93BF4>