Subject: Using ipip interfaces in netbsd-current
To: None <tech-net@netbsd.org>
From: Darren Reed <darrenr@reed.wattle.id.au>
List: tech-net
Date: 11/25/2001 01:44:13
On Solaris8, I can whip up a tunnel interface like this:

ip.tun1: flags=10008d1<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST,IPv4> mtu 65491 index 15
        inet tunnel src 192.168.1.11    tunnel dst 192.168.1.10
        inet 192.168.102.1 --> 192.168.102.2 netmask ffffff00 

ifconfig commands:
ifconfig ip.tun0 unplumb
ifconfig ip.tun0 plumb
ifconfig ip.tun0 192.168.102.1 192.168.102.2
ifconfig ip.tun0 tsrc 192.168.1.11 tdst 192.168.1.10
ifconfig ip.tun0 up

which is an IPIP tunnel "link" between two hosts on the same LAN. 
Solaris is using protocol 4 (IP-encap).

How would I do the same for NetBSD?  The examples all refer to
secnarios involving cisco's and default routes.

Darren