首页 > 系统相关 >关于使用tcpdump命令抓包时网络接口的查询与指定

关于使用tcpdump命令抓包时网络接口的查询与指定

时间:2023-04-26 11:13:56浏览次数:53  
标签:interfaces list systems interface 包时 tcpdump 网络接口

第一步:首先可以通过tcpdump命令的--list-interfaces选项,列出系统中的所有网络接口(这个与ip addr列出的还有略有点点差异)

-D
--list-interfaces
       Print  the  list  of  the network interfaces available on the system and on which tcpdump can capture packets.
       For each network interface, a number and an interface name, possibly followed by a  text  description  of  the
       interface,  is  printed.  The interface name or the number can be supplied to the -i flag to specify an inter‐
       face on which to capture.

       This can be useful on systems that don't have a command to list them (e.g., Windows systems, or  UNIX  systems
       lacking  ifconfig -a); the number can be useful on Windows 2000 and later systems, where the interface name is
       a somewhat complex string.

       The -D flag will not be supported if tcpdump was built with  an  older  version  of  libpcap  that  lacks  the
       pcap_findalldevs() function.

因为建议还是直接使用 tcpdump --list-interfaces 进行查询,查询使用普通用户都是可以的,结果类似下图所示

 

 

 

 

尊重别人的劳动成果 转载请务必注明出处: https://www.cnblogs.com/5201351/p/17355035.html

 

标签:interfaces,list,systems,interface,包时,tcpdump,网络接口
From: https://www.cnblogs.com/5201351/p/17355035.html

相关文章

  • TCPDump抓包工具的使用
      TCPDump是一款强大的网络抓包工具,它可以帮助网络管理员或安全专家监视和分析网络数据包。本文将详细介绍TCPDump的使用方法,以及如何解读TCPDump抓包结果。工具安装    TCPDump在Linux中已经默认安装。如果没有安装可以利用yumaptopkg等命令直接进行安装。查看......
  • pyinstaller 打包时第三方模块与图片资源加载
    打包命令pyinstaller--onefile--windowed**.py 修改**.spec文件pathex=['/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/ddddocr'],datas=[('./images','images'),('/Library/Frameworks/Python.fram......
  • 关于项目组件打包时遇到 `Uncaught TypeError: Cannot read property 'toLowerCase' o
    在全局注册组件时采用遍历组件池的方法时 每个组件都应该具备name属性 否则会出现UncaughtTypeError:Cannotreadproperty'toLowerCase'ofundefined  ......
  • (IDEA)spring项目导入本地jar包方法和项目打包时找不到引入本地jar包的问题解决方案
    转:(IDEA)spring项目导入本地jar包方法和项目打包时找不到引入本地jar包的问题解决方案 【Maven】理解maven的6大内置属性   ......
  • vue项目在打包时Some chunks are larger than 500 kBs after minification(一些区块在
    https://blog.csdn.net/qq_45284938/article/details/129707796 加上适应的配置项  根目录上vite.config.ts 文件 outDir:BUILD_DIR,//指定打包文件的输出目录emptyOutDir:true,//打包时先清空上一次构建生成的目录 build:{outDir:BUILD_DIR,......
  • Windows上删除jar包时提示已经被打开,怎样找到并杀掉
    场景Windows服务器上删除某个jar包时提示已经在Java....中被打开。则可能是该jar包之前运行时被异常关闭,此时线程还在,需要找到该线程并杀掉它。注:博客:https://blog.csdn.net/badao_liumang_qizhi实现1、打开cmd,输入jps,查看所有运行jar包的PID  这里我们明确知道该j......
  • Linux tcpdump命令
    Linuxtcpdump命令非常强大的工具,只有root账号可以使用,是安全和黑客入侵必备工具tcpdump:verboseoutputsuppressed,use-v[v]...forfullprotocoldecodelisteningoneth0,link-typeEN10MB(Ethernet),snapshotlength262144bytes22:29:28.233024IP119.91.211.2......
  • centos编译安装tcpdump
    环境CentOSLinuxrelease7.9.2009(Core)准备安装包libpcap-1.5.3.tar.gztcpdump-4.9.2.tar.gz下载地址:https://www.tcpdump.org/release/开始安装安装libpcap[root@localhost~]#tarzxvflibpcap-1.5.3.tar.gz[root@localhost~]#cdlibpcap-1.5.3[root@localhost......
  • maven打包时报错:找不到符号,errors提示:符号:类 xxx位置:程序包 xxx.xxx
    原因分析:找不到符号要么就是有些依赖没有,有些依赖没识别到。要打包的项目依赖本地其他模块出现这种情况比较多,没有识别到或者找不到,那就重新安装要依赖的本地模块就好了。解决方案:第一步确认找不到的依赖是什么。在日志里可以查看,errors提示:符号:类xxx位置:程序包xxx.xxx。......
  • ubuntu离线安装tcpdump
    环境DistributorID: UbuntuDescription: Ubuntu16.04.5LTSRelease: 16.04Codename: xenial准备安装包tcpdump官网:https://www.tcpdump.org/因为ubuntu版本是16.04,所以选择了16.04推荐的版本,安装tcpdump需要提前安装libpcap。https://www.tcpdump.org/release/libpcap-1......