Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Oct 1999 14:29:07 +0100
From:      antonio.herrera-alcantara@bt.com
To:        freebsd-net@freebsd.org
Subject:   2 questions
Message-ID:  <97E01B170FC1D211B8EB0000F8FE9E077116C6@mbtlipnt03.btlabs.bt.co.uk>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?97E01B170FC1D211B8EB0000F8FE9E077116C6>