Date: Tue, 24 Aug 1999 17:19:47 +0200 (MET DST) From: Christian Wolf <Christian.Wolf@medis.de> To: Christoph Kukulies <kuku@gilberto.physik.RWTH-Aachen.DE> Cc: Hellmuth Michaelis <hm@hcs.de>, ISDN Mailinglist <freebsd-isdn@FreeBSD.ORG> Subject: Routing (was: isic0 not found at 0x340) Message-ID: <Pine.GSO.3.96.990824165526.15325A-100000@sun-chris.medis.de> In-Reply-To: <19990824152855.A51258@gil.physik.rwth-aachen.de>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 24 Aug 1999, Christoph Kukulies wrote: > On Tue, Aug 24, 1999 at 01:51:55PM +0200, Hellmuth Michaelis wrote: > > If i remember correctly, a packet is only routed to a destination in case > > the destination is in a different network. > > Hhmm. > <scratching head> Normaly a packet is routed to an interface if the destination is in the *same* network, because this is what the ifconfig command adds to the routing table. I assume this is, what Helle wanted to say ;-). On a point-to-point interface the netmask should not matter, because ifconfig adds only a host-route. On an broadcast or point-to-multipoint interface a network-route is added to the routing table. This is the setup on one of our routers which works well on FreeBSD 3.1-RELEASE with i4b-00.83.00-beta-300799: /etc/rc.conf looks like this: ------------------------------------- 8< ------------------------------------- network_interfaces="ed0 ipr0 ipr1 ipr2 ipr3 lo0" ifconfig_ed0="inet 193.141.96.42 netmask 255.255.255.224" defaultrouter="193.141.96.47" hostname="bsdgate.medis.de" keymap="german.iso" ifconfig_ipr0="inet 193.141.96.42 193.141.96.1 link1" ifconfig_ipr1="inet 193.141.96.42 193.141.96.2 link1" ifconfig_ipr2="inet 193.141.96.42 193.141.96.3 link1" ifconfig_ipr3="inet 193.141.96.42 193.141.96.4 link1" gateway_enable="YES" sendmail_enable="NO" isdn_enable="YES" isdn_fsdev="NO" isdn_flags="-dn -d0x1f9" # Flags for isdnd isdn_trace="NO" # Enable the ISDN trace subsystem (or NO). isdn_traceflags="-f /var/tmp/isdntrace0" # Flags for isdntrace ------------------------------------- >8 ------------------------------------- this results in: ------------------------------------- 8< ------------------------------------- $ ifconfig -au ed0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet 193.141.96.42 netmask 0xffffffe0 broadcast 193.141.96.63 ether 00:00:c0:87:f5:ae lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet 127.0.0.1 netmask 0xff000000 ipr0: flags=2811<UP,POINTOPOINT,SIMPLEX,LINK1> mtu 1500 inet 193.141.96.42 --> 193.141.96.1 netmask 0xffffff00 ipr1: flags=2811<UP,POINTOPOINT,SIMPLEX,LINK1> mtu 1500 inet 193.141.96.42 --> 193.141.96.2 netmask 0xffffff00 ipr2: flags=2811<UP,POINTOPOINT,SIMPLEX,LINK1> mtu 1500 inet 193.141.96.42 --> 193.141.96.3 netmask 0xffffff00 ipr3: flags=2811<UP,POINTOPOINT,SIMPLEX,LINK1> mtu 1500 inet 193.141.96.42 --> 193.141.96.4 netmask 0xffffff00 $ netstat -rn Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 193.141.96.47 UGSc 0 191 ed0 127.0.0.1 127.0.0.1 UH 0 13 lo0 193.141.96.1 193.141.96.42 UH 1 41427 ipr0 193.141.96.2 193.141.96.42 UH 0 0 ipr1 193.141.96.3 193.141.96.42 UH 0 230 ipr2 193.141.96.4 193.141.96.42 UH 0 0 ipr3 193.141.96.32/27 link#1 UC 0 0 ed0 193.141.96.33 8:0:20:18:af:93 UHLW 2 8250 ed0 930 193.141.96.36 8:0:20:81:9a:e1 UHLW 4 33530 ed0 1181 193.141.96.47 link#1 UHLW 1 0 ed0 ------------------------------------- >8 ------------------------------------- Regards, Chris To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.3.96.990824165526.15325A-100000>