首页
关于
Search
1
PVE设置IPv6虚拟机
3 阅读
2
欢迎使用 Typecho
1 阅读
默认分类
登录
Search
Typecho
累计撰写
2
篇文章
累计收到
1
条评论
首页
栏目
默认分类
页面
关于
搜索到
2
篇与
的结果
2025-05-18
PVE设置IPv6虚拟机
网络重启 systemctl restart networking.servicedns echo "nameserver 2001:4860:4860::8888" | tee -a /etc/resolv.conf改网卡 nano /etc/network/interfaces配置v6echo "net.ipv6.conf.all.forwarding = 1" >> /etc/sysctl.conf && sysctl -p apt -y install ndppd nano /etc/ndppd.conf proxy vmbr0 { rule 2001:41d0:x:xxxx::/64 { static } } systemctl restart ndppd.service systemctl enable ndppd.service网卡设置一auto lo iface lo inet loopback auto vmbr0 iface vmbr0 inet static address 202.194.15.228/24 gateway 202.194.15.254 bridge_ports ens33 bridge_stp off bridge_fd 0 iface vmbr0 inet6 static address 2001:da8:7000:15:20c:29ff:feff:e247/128 gateway fe80::5298:b8ff:fed2:3001 auto vmbr1 iface vmbr1 inet static address 172.16.1.1/24 bridge_ports none bridge_stp off bridge_fd 0 post-up echo 1 > /proc/sys/net/ipv4/ip_forward post-up echo 1 > /proc/sys/net/ipv4/conf/vmbr1/proxy_arp post-up iptables -t nat -A POSTROUTING -s '172.16.1.0/24' -o vmbr0 -j MASQUERADE post-down iptables -t nat -D POSTROUTING -s '172.16.1.0/24' -o vmbr0 -j MASQUERADE iface vmbr1 inet6 static address 2001:db8:1::1/64 post-up sysctl -w net.ipv6.conf.all.forwarding=1 post-up ip6tables -t nat -A POSTROUTING -s 2001:db8:1::/64 -o vmbr0 -j MASQUERADE post-down sysctl -w net.ipv6.conf.all.forwarding=0 post-down ip6tables -t nat -D POSTROUTING -s 2001:db8:1::/64 -o vmbr0 -j MASQUERADE auto vmbr2 iface vmbr2 inet6 static address 2001:da8:7000:15:20c:29ff:feff:e247/64 bridge_ports none bridge_stp off bridge_fd 0 # 虚拟机网关为母鸡v6地址网卡设置二auto lo iface lo inet loopback iface eth0 inet manual auto vmbr0 iface vmbr0 inet static address xx.xx.xx.xx/24 gateway xx.xx.xx.xx bridge-ports eth0 bridge-stp off bridge-fd 0 iface vmbr0 inet6 static address 2001:41d0:x:xxxx::1/64 gateway 2001:41d0:x:xxxx:ff:ff:ff:ff auto vmbr1 iface vmbr1 inet static address 192.168.0.1 netmask 255.255.255.0 bridge_ports none bridge_stp off bridge_fd 0 post-up echo 1 > /proc/sys/net/ipv4/ip_forward post-up iptables -t nat -A POSTROUTING -s '192.168.0.0/24' -o vmbr0 -j MASQUERADE post-down iptables -t nat -D POSTROUTING -s '192.168.0.0/24' -o vmbr0 -j MASQUERADE
2025年05月18日
3 阅读
0 评论
0 点赞
2025-05-18
欢迎使用 Typecho
如果您看到这篇文章,表示您的 blog 已经安装成功.
2025年05月18日
1 阅读
1 评论
0 点赞