From owner-freebsd-net Fri Oct 29 6:32:30 1999 Delivered-To: freebsd-net@freebsd.org Received: from dent.axion.bt.co.uk (dent.axion.bt.co.uk [132.146.16.161]) by hub.freebsd.org (Postfix) with ESMTP id 5AE5C155D4 for ; Fri, 29 Oct 1999 06:32:18 -0700 (PDT) (envelope-from antonio.herrera-alcantara@bt.com) Received: from cbtlipnt01.btlabs.bt.co.uk by dent (local) with ESMTP; Fri, 29 Oct 1999 14:29:59 +0100 Received: by cbtlipnt01.btlabs.bt.co.uk with Internet Mail Service (5.5.2448.0) id ; Fri, 29 Oct 1999 14:29:10 +0100 Message-ID: <97E01B170FC1D211B8EB0000F8FE9E077116C6@mbtlipnt03.btlabs.bt.co.uk> From: antonio.herrera-alcantara@bt.com To: freebsd-net@freebsd.org Subject: 2 questions Date: Fri, 29 Oct 1999 14:29:07 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) Content-Type: text/plain Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hello all, I've got a couple of questions, perhaps some of you can give the answers. The first problem is with a FreeBSD-3.3 machine, it has xl0, fxp0, fxp1, fxp2, fxp3 as network interfaces. It has been configured as a router and I have included the following statements in /etc/rc.conf: gateway_enable="YES" network_interfaces="xl0 fxp0 fxp1 fxp2 fxp3 lo0" ifconfig_xl0="inet 132.146.130.108 netmask 255.255.255.0" ifconfig_fxp0="inet 10.10.30.252 netmask 255.255.255.0" ifconfig_fxp1="inet 10.10.35.252 netmask 255.255.255.0" ifconfig_fxp2="inet 10.10.31.252 netmask 255.255.255.0" ifconfig_fxp3="inet 10.10.23.252 netmask 255.255.255.0" defaultrouter="132.146.130.254" After rebooting the routing table doen't have entries for fxp0, ..., fxp3, only for xl0 and lo0. I've got tow other machines with a very similar configuration and this problem doesn't happen. Furthermoe, if I manully delete the IP address from fxp(0,1,2,3) with ifconfig and I reassing it the routing table gets updated. What's wrong?. Just after rebooting, netstat -rn gives: Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 132.146.130.254 UGSc 1 88 xl0 127.0.0.1 127.0.0.1 UH 0 2 lo0 132.146.130/24 link#3 UC 0 0 xl0 While it should be something like: Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 132.146.130.254 UGSc 1 88 xl0 10.10.23/24 link#5 UC 0 0 fxp3 10.10.30/24 link#1 UC 0 0 fxp0 10.10.31/24 link#4 UC 0 0 fxp2 10.10.35/24 link#2 UC 0 0 fxp1 127.0.0.1 127.0.0.1 UH 0 2 lo0 132.146.130/24 link#3 UC 0 0 xl0 Second question: if I want to add two static routes at start-up in a host, for instance: route add -net 10.10.31.0 10.10.11.254 route add -net 10.10.12.0 10.10.11.254 What is the systanx to achieve that using the static routes list within /etc/rc.conf: static_routes="??????????" Thanks in advance for your help, Antonio Herrera. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message