全球主机交流论坛
标题:
有台kt的独服闲置,装了个Proxmox玩,开的小机联不了网
[打印本页]
作者:
fenggenet
时间:
2018-11-7 19:55
标题:
有台kt的独服闲置,装了个Proxmox玩,开的小机联不了网
本帖最后由 fenggenet 于 2018-11-7 21:48 编辑
闲置的KT有5个IP,装了个Proxmox,开了个小鸡,没网络,小鸡里也PING不通外网..哪位大佬指点下?
已GOOGLE解决~
修改/etc/network/interfaces
如果没有IPv6请去掉IPV6相关
auto lo
iface lo inet loopback
iface lo inet6 loopback
# enp2s0为母鸡的网卡接口名称,有的机器未必是这个,根据interfaces文件初始信息修改
# 修改为手动方式
iface enp2s0 inet manual
iface enp2s0 inet6 manual
# 增加桥接网卡配置,后续另开IP的VPS网络选桥接方式,网卡选vmbr0
auto vmbr0
iface vmbr0 inet static
address <母鸡IP>
netemask <母鸡掩码>
gateway <母鸡网关>
pointtopoint <母鸡网关>
broadcast <母鸡广播>
bridge_ports enp2s0
bridge_stp off
bridge_fd 0
up ip route add -net <母鸡网络> netmask <母鸡掩码> gw <母鸡网关> dev enp2s0
iface vmbr0 inet6 static
address <母鸡ipv6>
netmask <母鸡ipv6掩码,应该是64>
gateway <母鸡ipv6网关>
复制代码
重启网络服务生效该配置:service networking restart,不行就重启。
作者:
abysscong
时间:
2018-11-7 20:03
iptables把10流量转发到公网网卡
欢迎光临 全球主机交流论坛 (https://www.iloc.eu.org/)
Powered by Discuz! X3.4