快速查看Linux网络状态
2016-05-17 01:57
330 查看
快速查看Linux网络状态
1、查看各网卡的状态
ifconfig -a包括IP,子网掩码
eth0 Link encap:Ethernet HWaddr 00:0C:29:6E:EB:AB
inet addr:192.168.232.178 Bcast:192.168.232.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe6e:ebab/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:163336 errors:0 dropped:0 overruns:0 frame:0
TX packets:17220 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:218194934 (208.0 MiB) TX bytes:1780297 (1.6 MiB)
2、查看网关
route通过路由查看网关等信息,其中有default的就是本地网关
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.232.0 * 255.255.255.0 U 0 0 0 eth0
link-local * 255.255.0.0 U 1002 0 0 eth0
default 192.168.232.2 0.0.0.0 UG 0 0 0 eth0
1、查看各网卡的状态
ifconfig -a包括IP,子网掩码
eth0 Link encap:Ethernet HWaddr 00:0C:29:6E:EB:AB
inet addr:192.168.232.178 Bcast:192.168.232.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe6e:ebab/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:163336 errors:0 dropped:0 overruns:0 frame:0
TX packets:17220 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:218194934 (208.0 MiB) TX bytes:1780297 (1.6 MiB)
2、查看网关
route通过路由查看网关等信息,其中有default的就是本地网关
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.232.0 * 255.255.255.0 U 0 0 0 eth0
link-local * 255.255.0.0 U 1002 0 0 eth0
default 192.168.232.2 0.0.0.0 UG 0 0 0 eth0
相关文章推荐
- SM2算法第十一篇:扫盲HTTPS和SSL/TLS协议
- UNIX网络编程:IPC之信号量
- 20159315《网络攻防实践》第十一周总结
- http-equiv,很强大
- rbf神经网络的实现
- ngnix代理转发https请求
- HTTP状态码详解
- 部分安卓手机微信浏览器中使用XMLHttpRequest 2上传图片显示字节数为0的解决办法
- 使用单例模式实现自己的HttpClient工具类
- HTTP 访问接口封装,app开发中常用
- Windows 下 Apache HTTP Server 安装、配置以及与 Tomcat 的整合(附图)
- Windows 下 Apache HTTP Server 安装、配置以及与 Tomcat 的整合(附图)
- 使用七牛云存储解决ios7.1的app部署问题 https
- HTTP in iOS你看我就够
- HTTP状态码是什么意思?
- httpd
- http协议初体验
- http://www.doc88.com/p-7374285513754.html
- 《Wireshark 网络分析就这么简单》学习笔记
- C#网络编程 (四) 套接字编程原理