Ping prohibited in Linux

Source: Internet
Author: User

1. modify the configuration file to take effect temporarily for the system. The setting does not take effect after the system is restarted.
[Root @ 208 ~] # Echo "1">/proc/sys/net/ipv4/icmp_echo_ignore_all

2. Change the system configuration file permanently.
[Root @ 208 ~] # Vim/etc/sysctl. conf
Net. ipv4.icmp _ echo_ignore_all = 1 -- add this row
[Root @ 208 ~] # Sysctl-p
Net. ipv4.ip _ forward = 0
Net. ipv4.conf. default. rp_filter = 1
Net. ipv4.conf. default. accept_source_route = 0
Kernel. sysrq = 0
Kernel. core_uses_pid = 1
Net. ipv4.tcp _ syncookies = 1
Net. bridge. bridge-nf-call-ip6tables = 0
Net. bridge. bridge-nf-call-iptables = 0
Net. bridge. bridge-nf-call-arptables = 0
Net. ipv4.icmp _ echo_ignore_all = 1
Net. ipv4.conf. all. arp_policy = 1

3. handle errors when they take effect
[Root @ 208 ~] # Sysctl-p
Net. ipv4.ip _ forward = 0
Net. ipv4.conf. default. rp_filter = 1
Net. ipv4.conf. default. accept_source_route = 0
Kernel. sysrq = 0
Kernel. core_uses_pid = 1
Net. ipv4.tcp _ syncookies = 1
Error: "net. bridge. bridge-nf-call-ip6tables" is an unknown key -- error message
Error: "net. bridge. bridge-nf-call-iptables" is an unknown key
Error: "net. bridge. bridge-nf-call-arptables" is an unknown key
Net. ipv4.icmp _ echo_ignore_all = 1
Net. ipv4.conf. all. arp_policy = 1

Solution:
[Root @ 208 ~] # Modprobe bridge
[Root @ 208 ~] # Lsmod | grep bridge
Bridge 83177 0
STPs 2218 1 bridge
Llc 5546 2 bridge, stp

Recommended reading:

Installation of arping under Fedora 18

Install smokeping in CentOS 6.2 to test network conditions

Iptables ping configuration in CentOS

How to ping Windows in VMware Linux

In Linux, ping the network for a long time, add a timestamp, and record the timestamp to the text.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.