Vivek Garud writes:
> I was looking for some documentation on configuring basic
> IP-in-IP encapsulation tunnel on solaris and I keep finding
> documentation related to IPv6. Can somebody point me to some
> document that explains how to do this step by step? Any example
> applications of this and related theory would be welcome too...
ifconfig(1M) should have the relevant information. See "Example 5:
Configuring an IP-in-IP Tunnel."
The process looks like this:
# ifconfig ip.tun0 plumb 10.0.0.1 10.0.0.2 tsrc hosta \
tdst hostb up
That sets up an IPv4-in-IPv4 tunnel between "hosta" and "hostb" with
inner addresses (tunnel endpoints) 10.0.0.1 and 10.0.0.2. Use
"ip6.tun0" to set up an IPv4-in-IPv6 tunnel.
Basically, when you say "nameA.nameB.nameC..." to ifconfig, it assumes
that "nameA" is a driver (/dev/ip) and that "nameB" and the others are
STREAMS modules to push (tun). This causes ifconfig to open /dev/ip,
push the tun(7M) module, and then treat the resulting stream as a DLPI
interface. It attaches to instance 0 and configures IP.
Though this is how it works internally today, don't rely on the way
STREAMS modules are handled to push arbitrary modules. That may
change in the future. Instead, the allowable "interface" name string
is defined in ifconfig(1M) in the "OPERANDS" section.
--
James Carlson, KISS Network <[EMAIL PROTECTED]>
Sun Microsystems / 1 Network Drive 71.232W Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677
_______________________________________________
networking-discuss mailing list
[email protected]