来源:http://blog.csdn.net/duyiwuer2009/article/details/26263855 1. ip route show $ ip route show default via 192.168.217.2 dev eth0 metric 100 192.168.122.0/24 dev virbr0 proto kernel scope link src 192.168.122.1 192.168.217.0/24 dev eth0 proto ke…
Windows 查看本机 IP 打开 cmd,输入 ipconfig,回车,找到IPv4地址 或者通过以下方式查看 点击Win10系统的右下角的宽带连接图标,如下图所示. 点击弹出菜单的“查看连接设置”,如下图所示 点击后会打开电脑设置下的网络设置,点击右侧的以太网,如下图所示. 点击后可以查看本机电脑的IP地址等信息.如下图所示. Linux 查看本机 IP 地址 与 Windows 有点不同,命令为 ifconfig 我使用的是虚拟机,所…
Linux下查看网关方法:route -n ip route show traceroute www.prudentwoo.com -s 100 第一行就是自己的默认网关 netstat -r more /etc/network/interfaces Debian/Ubuntu Linux more /etc/sysconfig/network-scripts/ifcfg-eth0 Red Hat…
route命令的用法:操作或者显示IP路由表route:DESCRIPTION Route manipulates the kernel's IP routing tables. Its primary use is to set up static routes to specific hosts or networks via an interface after it has been configured with the ifconfig(8) pro‐gram. When the a…