加入收藏 | 设为首页 | 会员中心 | 我要投稿 温州站长网 (https://www.0577zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 服务器 > 搭建环境 > Linux > 正文

Linux ip forward

发布时间:2021-01-25 21:35:02 所属栏目:Linux 来源:网络整理
导读:.. $ systemctl restart networking ..auto ens39 iface ens39 inet static address span style="color: #800080"192.168.span style="color: #800080"2.254span style="color: #000000" netmask span style="color: #800080"255.255.span style="color: #

Linux ip forward

Linux ip forward

Linux ip forward

..

$ systemctl restart networking

Linux ip forward

Linux ip forward

Linux ip forward

Linux ip forward

Linux ip forward

Linux ip forward

..auto ens39
iface ens39 inet static
address <span style="color: #800080">192.168.<span style="color: #800080">2.254<span style="color: #000000">
netmask <span style="color: #800080">255.255.<span style="color: #800080">255.0

Linux ip forward

Linux ip forward

$ /proc/sys/net/ipv4/ip_forward

Linux ip forward

$ sysctl - net.ipv4.ip_forward=

$ iptables -A FORWARD -i ens38 -o ens39 -m state --state RELATED,ESTABLISHED - iptables -A FORWARD -i ens39 -o ens38 -j ACCEPT

$ ip route add ./ via . dev ens38

Linux ip forward

$ -c .

Linux ip forward

(编辑:温州站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    热点阅读