0
点赞
收藏
分享

微信扫一扫

设置网卡混杂模式


测试平台:Ubuntu 12.04 LST

方法一:

~$ sudo ifconfig eth1 promisc	# 设置混杂模式
~$ sudo ifconfig eth1<pre name="code" class="html">ifconfig eth1 promisc


方法二:

~$ sudo ip link set eth1 promisc on
~$ sudo ip link set eth1 promisc off



注意:上面两种方法系统重启之后混杂模式会失效



永久设置混杂模式

方法一:加入 /etc/rc.local

ifconfig eth1 promisc

or

ip link set eth1 promisc on


方法二:/etc/network/interfaces

iface eth1 inet manual
  up ifconfig eth1 0.0.0.0 up
  up ifconfig eth1 promisc





参考资料

Permanently set interface in promiscuous mode.Setting up network interfaces to promiscuous mode

FlatDHCP模式单nova-network主机部署示例

举报

相关推荐

0 条评论