From owner-freebsd-net Mon Apr 23 19:39:16 2001 Delivered-To: freebsd-net@freebsd.org Received: from virtual2.sysadmin-inc.com (ns2.sysadmin-inc.com [209.16.228.145]) by hub.freebsd.org (Postfix) with SMTP id 5367237B43C for ; Mon, 23 Apr 2001 19:39:11 -0700 (PDT) (envelope-from peter@sysadmin-inc.com) Received: (qmail 8086 invoked by alias); 17 Apr 2001 13:59:07 -0000 Received: from unknown (HELO w2kstest) (10.10.1.70) by virtual2.sysadmin-inc.com with SMTP; 17 Apr 2001 13:59:07 -0000 From: "Peter Brezny" To: Subject: three nics, two networks, simple routing problem...i think. Date: Tue, 17 Apr 2001 10:05:39 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The excerpt from my rc.conf mostly illustrates what I'm trying to do. I want to connect a host (10.30.1.15) to xl1 So that I can partition it's traffic from that of the lan connected to xl2. 10.30.1.1 GW----xl0 10.30.1.30 FW xl2----10.20.30.1 LAN | xl1 | | 10.30.1.15 FW ----- 10.20.15.1 LAN However, with my current conf files, I can't even ping xl1 from the box it's in. I can manually add a route, but I still can't ping the interface itself. What have I missed? TIA Peter Brezny SysAdmin Services Inc. my rc.conf looks like this. ifconfig_xl0="inet 10.30.1.30 netmask 255.255.255.0" ifconfig_xl1="inet 10.30.1.31 netmask 255.255.255.0" ifconfig_xl2="inet 10.20.30.1 netmask 255.255.255.0" xl1 is the iface giving problems. when you look at just the output of a ifconfig, things look ok. xl0: flags=8843 mtu 1500 inet 10.30.1.30 netmask 0xffffff00 broadcast 10.30.1.255 inet6 fe80::201:2ff:feed:4275%xl0 prefixlen 64 scopeid 0x1 ether 00:01:02:ed:42:75 media: autoselect (100baseTX ) status: active supported media: autoselect 100baseTX 100baseTX 10baseT/UTP 10baseT/UTP 100baseTX xl1: flags=8843 mtu 1500 inet 10.30.1.31 netmask 0xffffff00 broadcast 10.30.1.255 inet6 fe80::201:2ff:feed:4225%xl1 prefixlen 64 scopeid 0x2 ether 00:01:02:ed:42:25 media: autoselect (10baseT/UTP) status: active supported media: autoselect 100baseTX 100baseTX 10baseT/UTP 10baseT/UTP 100baseTX xl2: flags=8843 mtu 1500 inet 10.20.30.1 netmask 0xffffff00 broadcast 10.20.30.255 inet6 fe80::210:4bff:fe98:52cd%xl2 prefixlen 64 scopeid 0x3 ether 00:10:4b:98:52:cd media: autoselect (none) status: no carrier supported media: autoselect 100baseTX 100baseTX 10baseT/UTP 10baseT/UTP 100baseTX However, netstat -r just gives this. Internet: Destination Gateway Flags Refs Use Netif Expire default 10.30.1.1 UGSc 1 7 xl0 10.20.30/24 link#3 UC 0 0 xl2 => 10.30.1/24 link#1 UC 0 0 xl0 => localhost localhost UH 1 106 lo0 Obviously the problem here is that the 10.30.1/24 network is routing through xl0, when I want to route just part of that network through xl1. Since the only machine that's going to be connected to xl1 has an address of 10.30.1.15, I tried adding a static route to it, without luck. First just with route add 10.30.1.15 10.30.1.31 still tries to send the packet through xl0, and although route add 10.30.1.15 -interface xl1 does put in the correct interface in the routing table, It doesn't work. Any Ideas? Thanks again. Peter Brezny SysAdmin Services Inc. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message