分类: LINUX
2008-03-22 02:25:44
~# apt-get install uml-utilities bridge-utils
auto lo eth0 tap0 br0
iface lo inet loopback
iface br0 inet dhcp
bridge_ports eth0 tap0
bridge_maxwait 0
bridge_fd 0
iface eth0 inet manual
iface tap0 inet manual
pre-up tunctl -b -u-t tap0
pre-up ifconfig tap0 up
post-down tunctl -d tap0
iface br0 inet static
address xxx.xxx.xxx.xxx
network xxx.xxx.xxx.xxx
.
.
.
bridge_ports eth0 tap0
bridge_maxwait 0
~# ifdown -a
~# ifup -a
~# groupadd usbfs
~# echo "procbususb /proc/bus/usb usbfs devmode=0664,devgid=`cat /etc/group | grep usbfs | cut -d : -f 3` 0 0" >> /etc/fstab
~# adduser YOUR_USER usbfs
~# mount -o remount /proc/bus/usb