Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Oct 2002 11:23:35 -0400
From:      Jon-Erik Lido <jlido@goof.com>
To:        freebsd-questions@freebsd.org
Subject:   Routing Problem- interface to alias
Message-ID:  <20021008112335.A41704@goof.com>

next in thread | raw e-mail | index | archive | help
I'm trying to something a little bizarre with routing, so I suppose it
bears some explanation.  I recently purchased one of those all-in-one
firewall/NAT/ethernet switch/801.11b access point boxes for my home use.
802.11b security being what it is (useless), I'm planning on setting up
IPSec for my WLAN for authentication and encryption.  However, I
haven't gotten that far yet.

I've set up two subnets behind my firewall.  One is 10.10.10.0/24 and is
for the wired LAN.  The other is 10.0.0.0/24 and is for the wireless
LAN.  I've got a FreeBSD box with a single NIC ethernetted to one of
the ports on the firewall's switch.  I'm planning to use it as my
10.0.0.0/24 to 10.10.10.0/24 gateway.  Two subnets on one segment.

So I have:
ifconfig ed0 inet 10.10.10.1 netmask 0xffffff00
ifconfig ed0 inet 10.10.10.10 netmask 0xffffffff alias
ifconfig ed0 inet 10.0.0.1 netmask 0xffffff00 alias

The 10.10.10.10 is simply an alias I'm using since I'm running dnscache
on 10.10.10.1 and tinydns on 10.10.10.10.

I have IP forwarding compiled into the kernel and enabled.

With my wireless laptop set to 10.0.0.50 using the 10.0.0.1 gateway
as its default route I am able to ping 10.0.0.1, 10.10.10.1, but no
other hosts on or off the LAN.  traceroute from the laptop reveals a hop
to 10.0.0.1 and then the packets are simply lost.  

10.10.10.1's routing table looks like this (with 10.0.0.50 not connected):

Destination        Gateway            Flags    Refs      Use  Netif Expire
default            10.10.10.254       UGSc       12       30    ed0
10/24              link#1             UC          0        0    ed0
10.10.10/24        link#1             UC          3        0    ed0
10.10.10.1         00:4f:49:0a:1e:85  UHLW        1      753    lo0
10.10.10.10        00:4f:49:0a:1e:85  UHLW        1       52    lo0 =>
10.10.10.10/32     link#1             UC          1        0    ed0
10.10.10.254       00:30:f1:18:84:3c  UHLW       13       25    ed0   1175
127.0.0.1          127.0.0.1          UH          0        0    lo0

Notice that the 10/24 subnet is listed, but not the 10.0.0.1 IP number.

I'm sure what I'm trying to do is possible;  the FreeBSD handbook
section on routing even alludes to it.  I just can't seem to get it
to work.

Any ideas?

-Jon

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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