189 8069 5689

linux网关查询命令 查看网关命令linux

linux 如何查看自己的网关是多少?

你的linux是如何上网的呢?\x0d\x0a如果固定IP上网,cat /etc/sysconfig/network里面gateway项\x0d\x0a如果是dhcp上网,使用route命令,default那一行就是网关了\x0d\x0a[root@hello ~]# route\x0d\x0aKernel IP routing table\x0d\x0aDestination Gateway Genmask Flags Metric Ref Use Iface\x0d\x0a192.1.1.0 * 255.255.255.0 U 0 0 0 eth0\x0d\x0a169.254.0.0 * 255.255.0.0 U 0 0 0 eth0\x0d\x0adefault 192.1.1.1 0.0.0.0 UG 0 0 0 eth0

创新互联建站成都网站建设按需策划,是成都网站推广公司,为LED显示屏提供网站建设服务,有成熟的网站定制合作流程,提供网站定制设计服务:原型图制作、网站创意设计、前端HTML5制作、后台程序开发等。成都网站推广热线:028-86922220

linux系统查看网关命令(linux 查看网关)

1."linux查看网关命令,为您提供linux查看网关命令图文信息,linux查看网关的命令是ifconfig。

2.打开linux系统,在linux的桌面的空白处右击。

3.在弹出的下拉选项里,点击打开终端。

4.在终端窗口中输入ifconfig命令,回车后即可查看到网关。

linux查询网关的命令是什么

1.cat /etc/resolv.conf (看DNS)

2.netstat –r

3.cat /etc/sysconfig/network(Ubuntu10.04不行)

4.cat /etc/sysconfig/network-scripts/ifcfg-eth0(Ubuntu10.04不行)

5.traceroute 第一行就是自己的网关

6.ip route show

7.route -n

以上几个是比较常用的查询网关的命令


分享名称:linux网关查询命令 查看网关命令linux
转载注明:http://cdxtjz.cn/article/ddcigho.html

其他资讯