sed 's/.*10\.129\.50\.12\.\([0-9]\+\).*/\1/g' /opt/dicc/tcpdump
查找10.129.50.l2IP后的端口号
例如:
16:23:55.217324 IP 10.80.0.45.3699675161 > 10.129.57.42.2049: 100 getattr [|nfs]
结果为2049
相关热门文章
给主人留下些什么吧!~~
chinaunix网友2010-12-03 15:54:45
很好的, 收藏了 推荐一个博客,提供很多免费软件编程电子书下载: http://free-ebooks.appspot.com
评论热议