kevinonepiece

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

  •  
  •   kevinonepiece · Apr 12, 2021 · 3215 views
    This topic created in 2041 days ago, the information mentioned may be changed or developed.
    10 replies  •  2021-04-13 08:42:30 +08:00
    brMu
    brMu
    Apr 12, 2021
    1
    iptables ?
    arptables ?
    网卡配置错误?
    kevinonepiece
    kevinonepiece
    OP
    Apr 12, 2021
    3
    重启网卡,服务器不行
    kevinonepiece
    kevinonepiece
    OP
    Apr 12, 2021
    4
    dier
    dier
    Apr 12, 2021
    5
    ifconfig 看看 IP 信息
    cat /etc/sysconfig/network-scripts/ifcfg-eth0 或 eth3 看看配置信息
    Rwing
    Rwing
    Apr 12, 2021
    6
    CentOS 6
    End of life
    November 30, 2020
    tomwen
    tomwen
    Apr 12, 2021
    7
    cat /etc/sysconfig/network-scripts/ifcfg-eth* 看一下
    kevinonepiece
    kevinonepiece
    OP
    Apr 12, 2021
    8
    @dier
    @tomwen 关闭了防火墙,就可以了,想问下,为什么呢?
    cpstar
    cpstar
    Apr 13, 2021
    9
    iptables 丢弃了 ICMP 包吧
    iscurry
    iscurry
    Apr 13, 2021
    10
    # 1.
    vim /etc/sysctl.conf

    # 2. 增加一行
    net.ipv4.icmp_echo_ignore_all=1 # 0 是禁止,1 是允许
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1705 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 00:41 · PVG 08:41 · LAX 16:41 · JFK 19:41
    ♥ Do have faith in what you're doing.