使用tunctl安装虚拟网卡

##安装tunctl软件包

yum install tunctl.x86_64

##添加虚拟网卡设备

tunctl -u alex
##设定虚拟网卡的mac地址
/sbin/ifconfig tap0 hw ether 00:01:02:03:04:05:06 
##使用tap0虚拟网卡
/sbin/ifconfig tap0 up

Advertisements
This entry was posted in Computers and Internet. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s