# This file describes the network interfaces available on your system# and how to activate them. For more information, see interfaces(5).
# The loopback network interfaceauto loiface lo inet loopback
# The primary network interfaceallow-hotplug eth0iface eth0 inet manualup ifconfig eth0 0.0.0.0 promisc upauto eth0
auto tap0iface tap0 inet manualup ifconfig $IFACE 0.0.0.0 updown ifconfig $IFACE downtunctl_user well(这个改成你的用户名)
auto br0iface br0 inet staticaddress 你的ipnetmask 255.255.255.0network 你的ip,最后一组改为0broadcast 你的ip,最后一组改为255gateway 你的网关的ip(如果你用的dhcp,上面6行请改为 iface br0 inet dhcp )bridge_ports all tap0
1/2 1 2 下一页 尾页