auto lo

iface lo inet loopback

mapping eth1
script /home/honza/bin/pripoj_eth1
map home1 vhome
map skole1 vskola
map other1 vother
map rm1	vrm

mapping eth0
script /home/honza/bin/pripoj_eth0
map home0 vhome
map skola0 vskola
map other0 vother

#-----------ETH1---------------
iface skole1 inet dhcp


iface rm1 inet dhcp
	#wpa-driver wext
	#wpa-roam /etc/wpa_supplicant.conf
	pre-up  wpa_supplicant -ieth1 -c/etc/wpa_supplicant.conf &
	post-down killall wpa_supplicant
	post-up  openvpn --config /etc/openvpn/client_wan.conf --log-append /var/log/openvpn --verb 5&
	#post-up 





#----------eth0-------------
iface home0 inet dhcp

iface skola0 inet dhcp
	post-up /home/honza/bin/6to4.sh

iface other0 inet dhcp

#------------jura---------------------
iface kolej0 inet dhcp
hwaddress ether 00:16:d3:e1:5a:60

#iface tun6to4 inet6 v4tunnel
#	address $ip6
#	netmask 16
#	gateway ::192.88.99.1
	#endpoint any
	#local $ip4
	#pre-up ip4=` ip a s dev eth0 | grep "inet " | tr -s ' ' | cut -d' ' -f3 | cut -d'/' -f1`
	#pre-up ip6=`printf "2002:%02x%02x:%02x%02x::1" `echo $ip4 | tr . ' '``

#nejede
#dns-server 192.168.2.1
#wpa-driver wext
#wpa-ssid RM
#wpa-proto WPA
#wpa-ap-scan 1
#wpa-group TKIP
#wpa-pairwise TKIP
#wpa-key-mgmt WPA-PSK 
#wpa-psk fbb30dac22cce5db41ebc6cd96080b7e5eb430f356eadcca64c773b8b46a7084


