point-to-point network with unknown peer ip address
Peter Jeremy
peter at rulingia.com
Thu Feb 21 19:01:59 UTC 2013
On 2013-Feb-20 02:56:55 -0800, "M. V." <bored_to_death85 at 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=89d1<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=1 on the remote system.
--
Peter Jeremy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-net/attachments/20130222/663cd286/attachment.sig>
More information about the freebsd-net
mailing list