共计 1865 个字符,预计需要花费 5 分钟才能阅读完成。
安装好 win10 之后,网络那里显示感叹号,没有网络 |
网友回复:
注册 : 是 NAT 小鸡么?这个教程很多呀,看看是不是网络配置文件没有写好?
hoodhmy: DHCP
zxxx: 网络要自己配的,并不是 windows 那种虚拟机有默认配置了
pony: https://zhuanlan.zhihu.com/p/352355271
silence: 多 IP 就给小机配 IP 1 个 IP 就开 nat 端口给小机
爱国者捣蛋 : 对,是 NAT 小鸡,原来网络还要自己配置,我还以为 kimsufi 自带的 proxmox,网络是配置好掉的
younghwan: echo “net.ipv4.ip_forward=1” >> /etc/sysctl.conf && echo “net.core.default_qdisc=fq” >> /etc/sysctl.conf && echo “net.ipv4.tcp_congestion_control=bbr” >> /etc/sysctl.conf && sysctl - p 复制代码 nano /etc/network/interfaces 复制代码 # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5) source /etc/network/interfaces.d/* auto lo iface lo inet loopback allow-hotplug enp4s0 iface enp4s0 inet manual auto vmbr0 iface vmbr0 inet static address 1.2.3.4 netmask 255.255.255.0 gateway 1.2.3.1 bridge-ports enp4s0 bridge-stp off bridge-fd 0 auto vmbr1 iface vmbr1 inet static address 192.168.1.1 netmask 255.255.255.0 bridge_ports none bridge_stp off bridge_fd 0 复制代码 systemctl restart networking 复制代码 apt install –assume-yes ifupdown2 net-tools && apt install –assume-yes –no-install-recommends iptables-persistent netfilter-persistent && systemctl enable netfilter-persistent 复制代码 iptables -t nat -A POSTROUTING -s ‘192.168.1.0/24’ -o vmbr0 -j MASQUERADE iptables -t nat -A PREROUTING -i vmbr0 -p tcp –dport 10022 -j DNAT –to 192.168.1.2:22 iptables -t nat -A PREROUTING -i vmbr0 -p tcp –dport 13389 -j DNAT –to 192.168.1.2:3389 iptables-save > /etc/iptables/rules.v4 复制代码
hoodhmy: 问下想 OP 5O 这种 1 个 IP 的独服 装 PVE 也是用 NAT 方法给虚拟机分配 IP 吗?
zxxx: cpu 这么拉,你就别难为它了
注册 : 必须榨干 CPU 潜能 实际我还有一台 E3 的 1 个 IP OP,PVE 怎么给虚拟机弄网络?
注册 : 1IP 貌似只能 NAT 了
jinwyp: Proxmox VE 的一些配置 (kimsufi 母鸡配置 ipv6 开 vps) https://www.boxmoe.com/543.html
zxxx: 到底是 bridge-fd 还是 bridge_fd 呢?
zxxx: bridge-fd 0