Hi list,

'sh /etc/netstart tun1' assign IPv4 address from '/etc/hostname.tun1' to 'tun0' 
interface which must be IPv6 only instead of 'tun1' as argument of netstart.

# ifconfig tun0
tun0: flags=8051<<UP,POINTTOPOINT,RUNNING,MULTICAST> mtu 1500
     description: IPv6 interface
     index priority 0 llprio 3
     groups: tun
     status: active
     inet6: fe80::....%tun0 --> prefixlen 64 scopeid 0x1f
     inet6: fd90:... --> prefixlen 48
     inet 192.168.55.1 --> 192.168.55.255 netmask 0xffffff00

I have two tun0 and tun1 interfaces defined by /etc/hostname.tun0 and 
/etc/hostname.tun1

1. tun0 contains
up
!/bin/command ...
which run software and this software assign IPv6 address only to 'tun0' 
interface once started. There is no IPv4 for 'tun0' just IPv6.

2. $ cat /etc/hostname.tun1
up
inet 192.168.55.1 255.255.255.0 192.168.55.255
!/usr/bin/env LD_LIBRARY_PATH=/usr/lib:/usr/local/lib /usr/local/sbin/openvpn 
--config /etc/openvpn/server.conf

Why 'sh /etc/netstart tun1' assign 192.168.55.1 to 'tun0' instead of 'tun1' as 
argument? Can it be a bug or misconfiguration?

Martin

Reply via email to