Wuming Shi wrote:
  I'm playing with the IP tunnel technology. With command line, I can
set up an tunnel with
     ifconfig ip.tun0 plumb tsrc 166.111.71.3 tdst 166.111.71.4
192.168.3.10 192.168.3.11  up

  I then try to use the /etc/hostname.ip.tun0 file. I edited this file
so it contains:
     tsrc 166.111.71.3 tdst 166.111.71.4 192.168.3.10 192.168.3.11

  I tried with "svcadm restart network/physical" or "svcadm restart
network/initial", but neither of them can bring the tunnel up. Can
anyone tell me how to do this? Thanks in advance.

There is no way to do this with svcadm currently. Configuring tunnels on a live system must be done manually using ifconfig. The /etc/hostname.ip.tun0 file will only be read by svc:/network/initial at boot time. The network/initial service doesn't have a restart method. Even stop, then start doesn't do the right thing, although in your case, it may configure the tunnel you've defined in /etc/hostname.ip.tun0 file. The stop method will not remove any previously configured tunnels.

With Clearview's upcoming IP tunneling work, a svc:network/iptun service will be introduced that will support functional start, stop, and restart methods.

http://www.opensolaris.org/os/project/clearview/iptun-design.pdf

-Seb
_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to