Date: Mon, 20 Nov 1995 20:46:55 +0000 () From: Daniel Verhoeven <techno@kick.knooppunt.be> To: gated-people@merit.edu, freebsd-questions@FreeBSD.org Subject: fake subnet Message-ID: <Pine.BSF.3.91.951120201752.10657D-100000@kick.knooppunt.be>
next in thread | raw e-mail | index | archive | help
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<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet 192.168.31.254 netmask 0xffffff00 broadcast 192.168.31.255 ether 00:00:e8:cb:69:20 lp0: flags=810<POINTOPOINT,SIMPLEX> mtu 1500 lo0: flags=8009<UP,LOOPBACK,MULTICAST> mtu 16384 inet 127.0.0.1 netmask 0xff000000 ppp0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500 inet 194.10.201.200 --> 194.10.201.254 netmask 0xffffff00 tun0: flags=50<POINTOPOINT,RUNNING> mtu 576 tun1: flags=50<POINTOPOINT,RUNNING> mtu 1500 tun2: flags=50<POINTOPOINT,RUNNING> mtu 512 tun3: flags=11<UP,POINTOPOINT> 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.951120201752.10657D-100000>