Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 May 2013 11:10:26 +0530
From:      hrkesh sahu <hrisikeshsahu@gmail.com>
To:        =?ISO-8859-1?Q?Trond_Endrest=F8l?= <Trond.Endrestol@fagskolen.gjovik.no>,  FreeBSD questions <freebsd-questions@freebsd.org>
Subject:   Re: Fresh installation 9.1
Message-ID:  <CAMB42mzFdMrDqFbRXW5rj8NyK2rwmTKP4C_UOiMirq7YpAMc0A@mail.gmail.com>
In-Reply-To: <alpine.BSF.2.00.1305091019190.72982@mail.fig.ol.no>
References:  <CAMB42mzLT_T7UEsCASZg6AvQ67=6QwVqrtWy_roWPohK4jO1bw@mail.gmail.com> <CAMB42myZvcABC0p167RtDMxF=Qv0rXxpYi_B9EiVz9HQe-niDg@mail.gmail.com> <alpine.BSF.2.00.1305091019190.72982@mail.fig.ol.no>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi All,
IPv4 Routing  -
------------------------
I disabled the DHCP from rc.conf for both the interface. but still I am not
able to route trafic from one interface to another.

rc.conf
---------------
hostname=3D"idc-freebsd"
keymap=3D"hy.armscii-8.kbd"
#ifconfig_re0=3D"DHCP"
#ifconfig_rl0=3D"DHCP"
dumpdev=3D"NO"
ifconfig_rl0=3D"inet 192.168.100.101 netmask 255.255.255.0
ifconfig_re0=3D"inet 192.168.200.101 netmask 255.255.255.0
ipv6_activate_all_interfaces=3D"YES"
gateway_enable=3D"YES"
default_router=3D"192.168.200.1"

I am using FreeBSD - 9.1 Release version

I need to communicate between two different subnets.

Am i missing anything to enable freebsd as router?
Do i need to add a route entry?

If possible could you please share rc.conf file with IPv4 routing?

Regards
Hrisikesh







On Thu, May 9, 2013 at 2:04 PM, Trond Endrest=F8l <
Trond.Endrestol@fagskolen.gjovik.no> wrote:

> On Thu, 9 May 2013 12:18+0530, hrkesh sahu wrote:
>
> > > HI All,
> > >
> > I have a FreeBSD 9.1 Release installed with TWO NIC cards. I was trying
> to
> > make this FreeBSD machine as a router .
> > This is my rc.conf
> > --------------------------------
> > ifconfig_rl0 =3D "inet 192.168.100.101 netmask 255.255.255.0"
> > ifconfig_re0=3D"inet 192.168.200.101 netmask 255.255.255.0"
> >
> > gateway_enable =3D "YES"
> > ifconfig_rl0 =3D "DHCP"
> > ifconfig_re0 =3D "DHCP"
> >
> > defaultrouter =3D "192.168.100.1"
> > ipv6_activate_all_interfaces =3D "YES"
> > sshd_enable =3D "YES"
> > synchronous_dhclient=3D"YES"
> >
> > Please help me to establish a IPv4 router.
> > Both the interfaces are connected to to different laptops with a static
> IP
> > address.
>
> You should place a # in front of the two lines:
>
> > ifconfig_rl0 =3D "DHCP"
> > ifconfig_re0 =3D "DHCP"
>
> Next, you probably shouldn't place spaces before and after the equal
> signs.
>
> > Laptop 1 =3D 192.168.100.102  ( connected to interface rl0) gateway  -
> > 192.168.100.1
> >
> > Laptop 2 =3D 192.168.200.102 ( connected to interface re0)
> > ping from Laptop1 -> rl0 is successful
> > but ping from Laptop1 -> re0 is not successful.
> >
> > After this I want to know also How to make this as IPv6 router?
>
> See
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-ipv6.ht=
ml
> .
>
> You probably should create a ULA prefix or two, and assign these to
> your router interfaces. http://www.sixxs.net/tools/grh/ula/ might help
> you.
>
> Something along these lines might help you achieve what you want:
>
> ifconfig_rl0_ipv6=3D"inet6 fd8f:d6d0:e6e7:100::1 prefixlen 64"
> ifconfig_re0_ipv6=3D"inet6 fd44:13de:a366:200::1 prefixlen 64"
> ipv6_gateway_enable=3D"YES"
>
> Finally you probably should configure and enable Router Advertisement
> and Host Auto Configuration as explained in section 32.11.6 of
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-ipv6.ht=
ml
> .
>
> --
> +-------------------------------+------------------------------------+
> | Vennlig hilsen,               | Best regards,                      |
> | Trond Endrest=F8l,              | Trond Endrest=F8l,                   =
|
> | IT-ansvarlig,                 | System administrator,              |
> | Fagskolen Innlandet,          | Gj=F8vik Technical College, Norway,  |
> | tlf. mob.   952 62 567,       | Cellular...: +47 952 62 567,       |
> | sentralbord 61 14 54 00.      | Switchboard: +47 61 14 54 00.      |
> +-------------------------------+------------------------------------+



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