From owner-freebsd-questions Wed Nov 22 08:38:34 1995 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id IAA24338 for questions-outgoing; Wed, 22 Nov 1995 08:38:34 -0800 Received: from cdp.igc.apc.org (cdp.igc.apc.org [192.82.108.1]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id IAA24318 for ; Wed, 22 Nov 1995 08:38:25 -0800 Received: from kick.knooppunt.be (kick.knooppunt.be [194.10.201.200]) by cdp.igc.apc.org (8.6.12/Revision: 1.212 ) with ESMTP id IAA24665 for ; Wed, 22 Nov 1995 08:37:25 -0800 Received: (from techno@localhost) by kick.knooppunt.be (8.6.11/8.6.12) id RAA06720; Wed, 22 Nov 1995 17:19:55 GMT Date: Wed, 22 Nov 1995 17:19:55 +0000 () From: Daniel Verhoeven To: freebsd-questions@FreeBSD.org Subject: subnetting Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@FreeBSD.org Precedence: bulk Dear Friends, I switched from useing routed to gated on a FreeBSD 2.0.5. We have a PPP link over a leased line to our provider. But we only have one real IP-number, namely 194.10.201.200. We have a small local Ip-network on ethernet (ed0), using the fake net 192.168.31 and we have three dialin modems for PPP (using ppp for cleint-ppp) setting up links between: 192.168.32.254 <-> 192.168.32.1 192.168.32.254 <-> 192.168.32.2 192.168.32.254 <-> 192.168.32.2 respectively. Here is a sample output of netstat -rn: Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 194.10.201.254 UGSc 24 255 ppp0 127 127.0.0.1 URc 0 0 lo0 127.0.0.1 127.0.0.1 UH 0 203 lo0 192.168.31 link#1 UC 0 0 192.168.31.125 link#1 UHLW 2 76862 192.168.31.133 0:0:e8:ca:c6:71 UHLW 0 4 ed0 339 192.168.31.254 0:0:e8:cb:69:20 UHLW 1 781 lo0 194.10.201.254 194.10.201.200 UH 24 0 ppp0 224 link#1 UCS 0 0 224.0.0.9 127.0.0.1 UH 0 4 lo0 And one of ifconfig -ia ed0: flags=8863 mtu 1500 inet 192.168.31.254 netmask 0xffffff00 broadcast 192.168.31.255 ether 00:00:e8:cb:69:20 lp0: flags=810 mtu 1500 lo0: flags=8009 mtu 16384 inet 127.0.0.1 netmask 0xff000000 ppp0: flags=8051 mtu 1500 inet 194.10.201.200 --> 194.10.201.254 netmask 0xffffff00 tun0: flags=50 mtu 576 tun1: flags=50 mtu 1500 tun2: flags=50 mtu 512 tun3: flags=11 mtu 1500 inet 0.0.0.0 --> 0.0.0.0 netmask 0x0 My gated.conf looks like this: # Only broadcast RIP information for xxx.xxx.yy out the ed Ethernet interface # # # tracing options # traceoptions "/var/tmp/gated.output" replace size 100k files 2 general ; # rip yes { broadcast ; interface all version 1 ; traceoptions route ; } ; # # # # Turn on a bunch of tracing info for the interface to the kernel: kernel { traceoptions remnants request routes info interface ; } ; # # Propagate the route to xxx.xxx.yy out the Ethernet interface via RIP # export proto rip { proto direct { 194.10.201.200 masklen 24 ; } ; } ; # # Accept routes from RIP via ed Ethernet interfaces import proto rip interface ed0 tun0 tun1 tun2 { all ; } ; When I used routed, defining some static routes, I could ping from within the network to outside. This isn't possible anymore. Can someone help us. We are the system of the Association for Progressive Communication in Belgium. Many thans beforehand. Daniel Verhoeven.