No File or Directory Prompted When Executing the sysctl -p Command
Symptom
After the /etc/sysctl.conf file is modified, when the sysctl -p command is run for the modification to take effect, the message "No such file or directory" is displayed indicating that there is no file or directory.

Key Process and Cause Analysis
When Neutron is deployed, you need to add net.ipv4.conf.all.rp_filter=0 and net.ipv4.conf.default.rp_filter=0 in the system configuration file. However, the br_netfilter driver is not installed in the system.
Conclusion and Solution
- Install the br_netfilter driver.
modprobe br_netfilter sysctl -p
- To make the settings remain effective after the system is restarted, you need to create configuration files.
Create the /etc/rc.sysinit file and add the following information to the file:
#!/bin/bash for file in /etc/sysconfig/modules/*.modules ; do [ -x $file ] && $file done
- Create the /etc/sysconfig/modules/br_netfilter.modules file and add the following information to the file:
modprobe br_netfilter
- Run the following command to change the permission so that the module is automatically loaded after the system is restarted.
chmod 755 /etc/sysconfig/modules/br_netfilter.modules
Parent topic: OpenStack