linux 取消混杂模式,Linux下网卡混杂模式设置和取消
1、Linux下網(wǎng)卡常用的幾種模式說(shuō)明:
廣播方式:該模式下的網(wǎng)卡能夠接收網(wǎng)絡(luò)中的廣播信息。
組播方式:設(shè)置在該模式下的網(wǎng)卡能夠接收組播數(shù)據(jù)。
直接方式:在這種模式下,只有目的網(wǎng)卡才能接收該數(shù)據(jù)。
混雜模式:在這種模式下的網(wǎng)卡能夠接收一切通過(guò)它的數(shù)據(jù),而不管該數(shù)據(jù)是否
2、查看、添加和取消混雜模式
a、查看網(wǎng)卡模式
[root@zabbix?~]#?ifconfig?-a
ens32:?flags=4163??mtu?1500
inet?10.203.12.88??netmask?255.255.255.0??broadcast?10.203.12.255
inet6?fe80::250:56ff:feb3:2253??prefixlen?64??scopeid?0x20
ether?00:50:56:b3:22:53??txqueuelen?1000??(Ethernet)
RX?packets?2800921171??bytes?2087772292594?(1.8?TiB)
RX?errors?0??dropped?61583??overruns?0??frame?0
TX?packets?2328391024??bytes?1651122431491?(1.5?TiB)
TX?errors?0??dropped?0?overruns?0??carrier?0??collisions?0
lo:?flags=73??mtu?65536
inet?127.0.0.1??netmask?255.0.0.0
inet6?::1??prefixlen?128??scopeid?0x10
loop??txqueuelen?0??(Local?Loopback)
RX?packets?287928092??bytes?25694088025?(23.9?GiB)
RX?errors?0??dropped?0??overruns?0??frame?0
TX?packets?287928092??bytes?25694088025?(23.9?GiB)
TX?errors?0??dropped?0?overruns?0??carrier?0??collisions?0
b、添加ens32網(wǎng)卡的混雜模式
[root@zabbix?~]#?ifconfig?ens32?promisc
[root@zabbix?~]#?ifconfig?-a
ens32:?flags=4419??mtu?1500
inet?10.203.12.88??netmask?255.255.255.0??broadcast?10.203.12.255
inet6?fe80::250:56ff:feb3:2253??prefixlen?64??scopeid?0x20
ether?00:50:56:b3:22:53??txqueuelen?1000??(Ethernet)
RX?packets?2800927421??bytes?2087779226027?(1.8?TiB)
RX?errors?0??dropped?61585??overruns?0??frame?0
TX?packets?2328394266??bytes?1651123460792?(1.5?TiB)
TX?errors?0??dropped?0?overruns?0??carrier?0??collisions?0
lo:?flags=73??mtu?65536
inet?127.0.0.1??netmask?255.0.0.0
inet6?::1??prefixlen?128??scopeid?0x10
loop??txqueuelen?0??(Local?Loopback)
RX?packets?287929365??bytes?25694221536?(23.9?GiB)
RX?errors?0??dropped?0??overruns?0??frame?0
TX?packets?287929365??bytes?25694221536?(23.9?GiB)
TX?errors?0??dropped?0?overruns?0??carrier?0??collisions?0
c、除去ens32網(wǎng)卡的混雜模式
[root@zabbix?~]#?ifconfig?ens32?-promisc
[root@zabbix?~]#?ifconfig?-a
ens32:?flags=4163??mtu?1500
inet?10.203.12.88??netmask?255.255.255.0??broadcast?10.203.12.255
inet6?fe80::250:56ff:feb3:2253??prefixlen?64??scopeid?0x20
ether?00:50:56:b3:22:53??txqueuelen?1000??(Ethernet)
RX?packets?2800929338??bytes?2087779370583?(1.8?TiB)
RX?errors?0??dropped?61607??overruns?0??frame?0
TX?packets?2328396280??bytes?1651123608090?(1.5?TiB)
TX?errors?0??dropped?0?overruns?0??carrier?0??collisions?0
lo:?flags=73??mtu?65536
inet?127.0.0.1??netmask?255.0.0.0
inet6?::1??prefixlen?128??scopeid?0x10
loop??txqueuelen?0??(Local?Loopback)
RX?packets?287931015??bytes?25694392926?(23.9?GiB)
RX?errors?0??dropped?0??overruns?0??frame?0
TX?packets?287931015??bytes?25694392926?(23.9?GiB)
TX?errors?0??dropped?0?overruns?0??carrier?0??collisions?0
創(chuàng)作挑戰(zhàn)賽新人創(chuàng)作獎(jiǎng)勵(lì)來(lái)咯,堅(jiān)持創(chuàng)作打卡瓜分現(xiàn)金大獎(jiǎng)總結(jié)
以上是生活随笔為你收集整理的linux 取消混杂模式,Linux下网卡混杂模式设置和取消的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 文石快刷彩墨平板 Tab10 C 降至
- 下一篇: 非cpu0启动linux,SD卡无法启动