|
小鸡内可以访问百度等。但是外网连接不上小鸡。我是从Exsi备份磁盘转过来的。捅咕几个小时,就差这一步了。坛子里搜了半天也没啥解决方案。
小鸡桥接母鸡的 vmbr0,
然后系统内设置的静态 新独立IP (不是同一个C段,网关设置的也不同)。
本人对小鸡的配置做了以下检查
硬件标签 -> 网卡配置 -> 防火墙复选框是没勾选的。
防火墙标签 -> 选项标签 -> 防火墙复选框是没勾选的。
母鸡/etc/network/interfaces文件- auto lo iface lo inet loopback auto eth0 iface eth0 inet manual iface eth1 inet manual auto vmbr0 iface vmbr0 inet static address xxx.xxx.191.70/32 gateway xxx.xxx.191.1 bridge-ports eth0 bridge-stp off bridge-fd 0 dns-nameservers 8.8.8.8 8.8.4.4 hwaddress 0c:c4:7a:71:42:ee bridge-sftp off iface vmbr0 inet6 static address ipv6::/64
复制代码
母鸡执行iptable-saves -c命令- # Generated by iptables-save v1.8.7 on Sun Jan 2 07:30:55 2022 *nat :PREROUTING ACCEPT [0:0] :INPUT ACCEPT [0:0] :OUTPUT ACCEPT [0:0] :POSTROUTING ACCEPT [0:0] COMMIT # Completed on Sun Jan 2 07:30:55 2022 # Generated by iptables-save v1.8.7 on Sun Jan 2 07:30:55 2022 *raw :PREROUTING ACCEPT [378582:58871461] :OUTPUT ACCEPT [352273:79196563] COMMIT # Completed on Sun Jan 2 07:30:55 2022 # Generated by iptables-save v1.8.7 on Sun Jan 2 07:30:55 2022 *filter :INPUT ACCEPT [378559:58866967] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [352275:79196931] COMMIT # Completed on Sun Jan 2 07:30:55 2022
复制代码 |
|