Linux 网络配置命令

2022-10-22 09:16
124
0

ifconfig eth0 101.244.6.1 broadcast 101.244.6.255 netmask 255.255.255.0

vi /etc/sysctl.conf

net.ipv4.ip_forward = 1
net.ipv4.ip_local_reserved_ports = 30000-32767
net.bridge.bridge-nf-call-iptables = 1
net.bridge.bridge-nf-call-arptables = 1
net.bridge.bridge-nf-call-ip6tables = 1
vm.max_map_count = 262144
fs.inotify.max_user_instances = 524288
kernel.pid_max = 65535
vm.swappiness = 0

 

sysctl -p

 

全部评论