linux网络不可达


当前第2页 返回上一页

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

[root@mysql51 ~]# systemctl stop NetworkManager    //配置网关,需先停止网络管理  

[root@mysql51 ~]# route -n                  //查看网关Gateway      

Kernel IP routing table

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface

192.168.4.0     0.0.0.0         255.255.255.0   U     100    0        0 eth0

192.168.122.0   0.0.0.0         255.255.255.0   U     0      0        0 virbr0

[root@mysql51 ~]# route add default gw 192.168.4.50                

    route: SIOCADDRT: Network is unreachable    //配置网关,出现网络不可达,重新配置ip

[root@mysql51 ~]# route add default gw 192.168.4.50

[root@mysql51 ~]# route -n

Kernel IP routing table

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface

0.0.0.0         192.168.4.50    0.0.0.0         UG    0      0        0 eth0      

192.168.4.0     0.0.0.0         255.255.255.0   U     100    0        0 eth0

192.168.122.0   0.0.0.0         255.255.255.0   U     0      0        0 virbr0

推荐:linux服务器维护

以上就是linux网络不可达的详细内容,更多文章请关注木庄网络博客

返回前面的内容

相关阅读 >>

Linux打开文件命令有哪些

如何查看Linux的内存

如何使用createcommand新建一条云助手命令

Linux内核如何编译

探秘Linux swap交换内存扩容的方法

Linux有哪些文件系统?

Linux文件无法删除

存放Linux基本命令的是什么目录

怎么查询一个安全组和其他哪些安全组有安全组级别的授权行为

Linux如何查看文件的第几行到第几行

更多相关阅读请进入《Linux》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...