想想怎么取IP玩
2018-06-08 15:49
302 查看
ifconfig eth0|egrep -o '([0-9]{1,3}\.){3}[0-9]{1,3}'|sed -n "1p" ifconfig eth0|sed -n "2p"|awk '{print$2}'|cut -d ":" -f 2 ifconfig eth0|awk -F: '{print$2}'|sed 's/ //'|sed 's/ /\n/g'|awk 'NR==4{print}' ifconfig eth0|head -n 2|tail -n 1|cut -c 21-32 ifconfig eth0|grep "inet addr:"|awk -F: '{print$2}'|sed "s/Bcast//g" ifconfig eth0|awk "NR==2{print}"|cut -d: -f 2|tr -d "Bcast"
应该还有很多种方法 目前的所学只能写一点出来
相关文章推荐
- Ansible配置100个新IP节点该怎么办?
- 1000台电脑怎么分配IP和子网掩码 推荐
- ipynb后缀文件怎么打开
- ip冲突怎么办,ip和其他系统有冲突的解决办法
- 遇到瓶颈和性能问题,不要掉进别人的坑中,而是想想自己做的话,怎么做。
- excel 怎么把转换成整形的ip还原成原来的ip地址
- Windows的IP设置在哪里查看?怎么查看?
- LINUX怎么换IP。
- ubantu怎么配置静态ip
- ip地址有冲突怎么办 局域网ip冲突如何解决
- 想想这道题怎么做?
- 路由器wan口和外网ip不一样怎么办
- 又是一个星期天,明天又要开始一周的工作了,想想上周的工作情况,不怎么理想。
- 怎么选择靠谱的IP地理位置定位产品?
- 1000台电脑怎么分配IP和子网掩码
- 怎么在一个ip上绑定多个域名
- 局域网怎么通过IP查看对方MAC
- nginx做反向代理负载均衡 Java怎么获取后端服务器获取用户IP
- 怎么将linux的动态IP设置成静态IP