安装uml-utilities
apt-get install uml-utilities
启用tun
modprobe tun
使用tunctl命令,这时会生成tap0的interface
tunctl ifconfig tap0 172.16.1.110 netmask 255.255.0.0 up
如果想再添加,则再运行tunctl命令
tunctl ifconfig tap1 172.16.1.111 netmask 255.255.0.0 up
Think before you speak, read before you think.
安装uml-utilities
apt-get install uml-utilities
启用tun
modprobe tun
使用tunctl命令,这时会生成tap0的interface
tunctl ifconfig tap0 172.16.1.110 netmask 255.255.0.0 up
如果想再添加,则再运行tunctl命令
tunctl ifconfig tap1 172.16.1.111 netmask 255.255.0.0 up
Leave a Reply