Folks,
I can create an IP tunnel that is registered with GLDv3 and mostly
hooked into ip below it. The data-paths are not quite complete, and
there are lots of unfinished corners.
bash-3.00# dladm create-iptun -T ipv4 -s 10.8.57.39 -d 129.148.174.103 iptun1
bash-3.00# dladm show-iptun
tunnel name type source destination hoplimit encaplimit
iptun1 ipv4 10.8.57.39 129.148.174.103 0 N/A
bash-3.00# dladm show-link
bge0 type: non-vlan mtu: 1500 device: bge0
bge1 type: non-vlan mtu: 1500 device: bge1
aggr1 type: non-vlan mtu: 1500 aggregation: key 1
iptun1 type: non-vlan mtu: 65515 device: iptun1
bash-3.00# ifconfig iptun1 plumb 11.0.0.1 12.0.0.2 up
bash-3.00# ifconfig -a4
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232
index 1
inet 127.0.0.1 netmask ff000000
bge0: flags=1004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4> mtu 1500 index 2
inet 10.8.57.39 netmask ffffff00 broadcast 10.8.57.255
ether 0:3:ba:29:fc:cc
iptun1: flags=10008d1<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST,IPv4> mtu 65515
index 4
inet tunnel src 10.8.57.39 tunnel dst 129.148.174.103
tunnel hop limit 0
inet 11.0.0.1 --> 12.0.0.2 netmask ff000000
bash-3.00# snoop -d iptun1
Using device /dev/iptun1 (promiscuous mode)
Since the data-path doesn't quite work yet, I can't demonstrate packets
flowing through here, but that is on the cusp of working as well.
-Seb