V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
kevinonepiece
V2EX  ›  宽带症候群

centos6 重启后 ping 不通自身 ip,网关,可以 ping 通 127.0.0.1

  •  
  •   kevinonepiece · 2021-04-12 12:43:26 +08:00 · 1677 次点击
    这是一个创建于 1081 天前的主题,其中的信息可能已经有所发展或是发生改变。
    10 条回复    2021-04-13 08:42:30 +08:00
    brMu
        1
    brMu  
       2021-04-12 12:58:10 +08:00
    iptables ?
    arptables ?
    网卡配置错误?
    kevinonepiece
        2
    kevinonepiece  
    OP
       2021-04-12 13:08:16 +08:00
    kevinonepiece
        3
    kevinonepiece  
    OP
       2021-04-12 13:09:41 +08:00
    重启网卡,服务器不行
    kevinonepiece
        4
    kevinonepiece  
    OP
       2021-04-12 13:14:22 +08:00
    dier
        5
    dier  
       2021-04-12 14:21:25 +08:00
    ifconfig 看看 IP 信息
    cat /etc/sysconfig/network-scripts/ifcfg-eth0 或 eth3 看看配置信息
    Rwing
        6
    Rwing  
       2021-04-12 14:24:08 +08:00
    CentOS 6
    End of life
    November 30, 2020
    tomwen
        7
    tomwen  
       2021-04-12 15:21:15 +08:00
    cat /etc/sysconfig/network-scripts/ifcfg-eth* 看一下
    kevinonepiece
        8
    kevinonepiece  
    OP
       2021-04-12 19:14:37 +08:00
    @dier
    @tomwen 关闭了防火墙,就可以了,想问下,为什么呢?
    cpstar
        9
    cpstar  
       2021-04-13 08:41:31 +08:00
    iptables 丢弃了 ICMP 包吧
    iscurry
        10
    iscurry  
       2021-04-13 08:42:30 +08:00
    # 1.
    vim /etc/sysctl.conf

    # 2. 增加一行
    net.ipv4.icmp_echo_ignore_all=1 # 0 是禁止,1 是允许
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   4768 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 09:59 · PVG 17:59 · LAX 02:59 · JFK 05:59
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.