• Welcome to LiuJason's Blog!

CentOS宿主机中开启IPv6给虚拟机使用的必要配置

Linux笔记 Jason 4 years ago (2021-03-13) 597 Views 0 Comments QR code of this page

折腾了好一会儿,做个记录以备后用

firewall-cmd --permanent --direct --passthrough ipv6 -I FORWARD -i br0 -j ACCEPT
firewall-cmd --permanent --direct --passthrough ipv6 -I FORWARD -o br0 -j ACCEPT
firewall-cmd --reload
ip6tables -A FORWARD -m physdev --physdev-is-bridged -j ACCEPT
ip6tables -A FORWARD -i br0 -j ACCEPT

echo -e 'net.ipv4.ip_forward = 1\nnet.ipv6.conf.all.forwarding = 1\nnet.ipv6.conf.br0.forwarding = 1\nnet.ipv6.conf.default.forwarding = 1\nnet.ipv6.conf.virbr0.disable_ipv6 = 0\nnet.ipv6.conf.all.proxy_ndp = 1'  > /etc/sysctl.conf
echo 'IPV6FORWARDING=yes' >> /etc/sysconfig/network-scripts/ifcfg-br0

This article is under CC BY-NC-SA 4.0 license.
Please quote the original link:https://www.liujason.com/article/1164.html
Like (1)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址