linux使用ping的通内外网,但是有提示From 192.168.1.3 (192.168.1.3) icmp_seq=1 Redirect Network(New nexthop: gatewa

linux使用ping的通内外网,但是一直提示:From 192.168.1.3 (192.168.1.3) icmp_seq=1 Redirect Network(New nexthop: gatewa

[root@localhost ~]# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
From 192.168.1.3 icmp_seq=1 Redirect Network(New nexthop: 192.168.1.1)
From 192.168.1.3: icmp_seq=1 Redirect Network(New nexthop: 192.168.1.1)
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=1.36 ms

[root@localhost ~]# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
From 192.168.1.3 icmp_seq=1 Redirect Network(New nexthop: 192.168.1.1)
From 192.168.1.3: icmp_seq=1 Redirect Network(New nexthop: 192.168.1.1)
64 bytes from 8.8.8.8: icmp_seq=1 ttl=115 time=188 ms

[root@localhost ~]# ping aliyun.com
PING aliyun.com (140.205.32.13) 56(84) bytes of data.
From 192.168.1.3 (192.168.1.3) icmp_seq=1 Redirect Network(New nexthop: gateway (192.168.1.1))
From 192.168.1.3 (192.168.1.3): icmp_seq=1 Redirect Network(New nexthop: gateway (192.168.1.1))
64 bytes from 140.205.32.13 (140.205.32.13): icmp_seq=1 ttl=41 time=10.3 ms

经过分析,内网外网都ping的通,发现是开了wifi共享的原因,主机被识别为路由了

解决:

//注释掉,再重启网络服务即可
[root@localhost ~]# vim /etc/sysconfig/network
# NETWORKING=yes
# HOSTNAME=localhost
# GATEWAY=192.168.1.1  
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值