auto tap0
iface tap0 inet static
address 192.168.5.1
netmask 255.255.255.0
but this won't work if the interface doesn't exist, so I end
up having to do everything by hand.
Thanks.
Jesse Sheidlower
--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Create and statically configure the device during the post-up of the
interface it depends upon. For example, I have a OpenVPN that I want to
come up on eth0. I added the line "openvpn $vpn_name" to the
configuration for the eth0 device.
If you are not doing openvpn, you may have to write your own script and use
the normal /etc/network/if-up.d interface.
If this is something to do with virtualization, so may want the device
create (and configure) script attached to the "lo" device.
If you are happy with having to run a command as root to create the device,
you could also run "ifup tap0" immediately after that command to save a
little manual work.
--
Boyd Stephen Smith Jr. ,= ,-_-. =.
b...@iguanasuicide.net ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-'
http://iguanasuicide.net/ \_/
To bring up a TAP interface, optionally readable by a non-root user, do:
iface mytap inet static
address 10.0.3.1
netmask 255.255.255.0
pre-up /usr/sbin/tunctl -u username -t mytap