Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Feb 2013 06:01:43 +1100
From:      Peter Jeremy <peter@rulingia.com>
To:        "M. V." <bored_to_death85@yahoo.com>
Cc:        "freebsd-net@freebsd.org" <freebsd-net@freebsd.org>
Subject:   Re: point-to-point network with unknown peer ip address
Message-ID:  <20130221190143.GC44920@server.rulingia.com>
In-Reply-To: <1361357815.70014.YahooMailNeo@web165005.mail.bf1.yahoo.com>
References:  <1361357815.70014.YahooMailNeo@web165005.mail.bf1.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--DSayHWYpDlRfCAAQ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On 2013-Feb-20 02:56:55 -0800, "M. V." <bored_to_death85@yahoo.com> wrote:
>I have 2 FreeBSD8.2 systems. I have a point-to-point interface
>(myif0) on each side connected together, but on each side I don't
>know IP address of the other side. to make the connection work, On
>each side I set IP address (2.2.2.32/24 and 2.2.2.33/24) and added a
>route which sends all traffic to the network to interface:
>
>#route add 2.2.2.0/24 -interface myif0
>
>#ifconfig myif0
>myif0: flags=3D89d1<UP,POINTOPOINT,RUNNING,NOARP,PROMISC,SIMPLEX,MULTICAST=
> metric 0 mtu 1500

I'm not certain what you are trying to achieve but point-to-point links
would normally be /32, not /24.

>now, from one side if I ping the other side (say 2.2.2.33/24)
>everything seems ok. but if I ping any other IP in the network (say
>2.2.2.100/24) the other endpoint sends back packet + an ICMP REDIRECT
>packet.

2.2.2.100 is not a valid address in the network you have described.
Where did you expect you expect the packet to be sent?

>my sysctl output:
>...
>
>net.inet.ip.redirect: 1
>net.inet.icmp.drop_redirect: 0
>...

You don't say what you are trying to achieve but my crystal ball says that
you want net.inet.ip.forwarding=3D1 on the remote system.

--=20
Peter Jeremy

--DSayHWYpDlRfCAAQ
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)

iEYEARECAAYFAlEmbxcACgkQ/opHv/APuIcxMwCglklwqwunTrufuRYs4n4jHdB7
vTUAnRmn2EcBWBvdZ464a+MdXayvBOWd
=Qep8
-----END PGP SIGNATURE-----

--DSayHWYpDlRfCAAQ--



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