我很难在debian路由器上找到一种使以下命令持久的方法
echo 1 > /proc/sys/net/ipv4/conf/all/proxy_arp我确实发现我可以在文件: /etc/sysctl.conf中进行ip转发,我只需要取消对ipv4.ip_forward=1的注释,但是我不知道如何为proxy_arp做这件事,它是ipv4.proxy_arp=1吗?
发布于 2018-03-14 15:39:49
你可以用两种不同的方法。首先,可以针对特定的接口(本例中为enp3so):
# The next line enables proxy arp for IPv4 on the main Ethernet port only
net.ipv4.conf.enp3s0.proxy_arp = 1另一种方法更通用,将适用于所有接口:
# Apply proxy arp for anyone
net.ipv4.conf.all.proxy_arp = 1然后sudo sysctl -p和您是好的
https://unix.stackexchange.com/questions/409090
复制相似问题