problem with routnig

Marko Lerota marko.lerota at zg.t-com.hr
Wed Sep 27 01:25:06 PDT 2006


I have gateway machine that doesn't work. Here is a setup:

rc.conf
#################################################################
defaultrouter="192.168.1.1"
gateway_enable="YES"
network_interfaces="xl0 fxp0"
ifconfig_xl0="inet 192.168.1.70  netmask 255.255.255.0"
ifconfig_fxp0="inet 192.168.2.71  netmask 255.255.255.0"
static_routes="lan2"
route_lan2="-net 192.168.2.0 -netmask 255.255.255.0 -iface xl0"
################################################################

The hosts on network 192.168.2.0/24 are connected to fxp0 and they 
can't go anywhere. I can't find the problem. I tried with following
static route but it didn't help 
route_lan2="-net 192.168.2.0 -netmask 255.255.255.0 192.168.1.1"

here is netstat 

Routing tables

Internet:
Destination        Gateway            Flags    Refs      Use  Netif Expire
default            192.168.1.1        UGS         0        1    xl0
127.0.0.1          127.0.0.1          UH          0        0    lo0
192.168.1          link#1             UC          0        0    xl0
192.168.1.1        00:09:f3:78:48:2e  UHLW        2        0    xl0   1197
192.168.1.67       00:17:31:bc:0a:3d  UHLW        1       26    xl0   1192
192.168.2          link#2             UC          0        0   fxp0
192.168.2.64       00:0d:60:fd:7c:2f  UHLW        1        3   fxp0   1192

This is  FreeBSD 6.1-RELEASE #0

-- 
One cannot sell the earth upon which the people walk
                               			Tacunka Witco 


More information about the freebsd-net mailing list