Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 06 Jun 2007 00:01:22 -0700
From:      Martin Alejandro Paredes Sanchez <mapsware@prodigy.net.mx>
To:        freebsd-questions@freebsd.org
Subject:   Re: Configure ipaddress and route entries in /etc/rc.conf file
Message-ID:  <200706060001.22676.mapsware@prodigy.net.mx>
In-Reply-To: <4664FAAA.70608@adventnet.com>
References:  <4663AE7D.2090607@adventnet.com> <46641657.4000906@cs.okstate.edu> <4664FAAA.70608@adventnet.com>

next in thread | previous in thread | raw e-mail | index | archive | help
El Lun 04 Jun 2007, bsenthil escribi=F3:
> Yes, It working fine.. Thanks for your help..
>
> inetd_enable=3D"YES"
> hostname=3D"test.abc.com"
> ifconfig_fxp0=3D"inet 192.168.110.14  netmask 255.255.255.0"
> ifconfig_fxp1=3D"inet 192.168.111.14  netmask 255.255.255.0"
> hostname=3D"test.abc.com"
> static_routes=3D"net1 net2"
>
> route_net1=3D"-net 10.1.1.1/24 *fxp0*"  (Error ...)
>
> I am not configure any default router entries . But i want to redirect
> all 10.1.1.1/24 packets through  fxp0.

short answer:

route_net1=3D"-net 10.1.1.0/24 192.168.110.1"

Replace the ip 192.168.110.1 with the router in the LAN 192.168.110.0/24

Long answer:

so, you are connected to 2 LANs:

192.168.110.0/24
192.168.111.0/24

And there exist another LAN

10.1.1.0/24

when you configure the interface fxp0:

ifconfig_fxp0=3D"inet 192.168.110.14  netmask 255.255.255.0"

You are adding an entry in the routing table like this:

"-net 192.168.110.0/24 192.168.110.14"

Since you want to transmit all the trafic to the LAN 10.1.1.0/24 by the=20
interface fxp0 (connected to the LAN 192.168.110.0/24), there should exist=
=20
some connection betwen these 2 LANs (controled by a router), all you have t=
o=20
say is that the LAN 10.1.1.0/24 is reached by the router 192.168.110.X

route_net1=3D"-net 10.1.1.0/24 192.168.110.X"

maps



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