linux 设置默认网关
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash
免费下载资源
·
ping 114.114.114.114 都是ping不通,提示如下:
root@DayDream:/# ping www.baidu.com
ping: bad address 'www.baidu.com'
root@DayDream:/# ping 114.114.114.114
PING 114.114.114.114 (114.114.114.114): 56 data bytes
ping: sendto: Network is unreachable
输入 route 。发现没有设置网关:
root@DayDream:/# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
113.115.0.1 * 255.255.255.255 UH 0 0 0 3g-ppp0
192.168.20.0 * 255.255.255.0 U 0 0 0 br-lan
于是,设置上默认网关
route add default gw 113.115.0.1
在尝试一次。发现成功了:
root@DayDream:/# ping www.baidu.com
PING www.baidu.com (180.97.33.107): 56 data bytes
64 bytes from 180.97.33.107: seq=0 ttl=55 time=87.532 ms
GitHub 加速计划 / li / linux-dash
6
1
下载
A beautiful web dashboard for Linux
最近提交(Master分支:3 个月前 )
186a802e
added ecosystem file for PM2 4 年前
5def40a3
Add host customization support for the NodeJS version 4 年前
更多推荐
已为社区贡献9条内容
所有评论(0)