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

linux系统查看网关命令(linux 查看网关),第1张

1."linux查看网关命令,为您提供linux查看网关命令图文信息,linux查看网关的命令是ifconfig。 2.打开linux系统,在linux的桌面的空白处右击。 3.在d出的下拉选项里,点击打开终端。 4.在终端窗口中输入ifconfig命令,回车后即可查看到网关。

你的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 RefUse Iface\x0d\x0a192.1.1.0 * 255.255.255.0 U 0 00 eth0\x0d\x0a169.254.0.0 * 255.255.0.0 U 0 00 eth0\x0d\x0adefault 192.1.1.1 0.0.0.0 UG0 00 eth0


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/yw/8364737.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-04-15
下一篇 2023-04-15

发表评论

登录后才能评论

评论列表(0条)

保存