加入收藏 | 设为首页 | 会员中心 | 我要投稿 辽源站长网 (https://www.0437zz.com/)- 云专线、云连接、智能数据、边缘计算、数据安全!
当前位置: 首页 > 服务器 > 搭建环境 > Linux > 正文

Linux ip forward

发布时间:2021-01-26 12:01:15 所属栏目:Linux 来源:网络整理
导读:. . $ systemctl restart networking . . 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="colo

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

(编辑:辽源站长网)

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

    推荐文章
      热点阅读