Think before you speak, read before you think.

ubuntu本地回环

by

in

安装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

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *