vps交流

kimsufi通过后台装好Proxmox V7,然后装好win10为什么无法上网?


安装好win10之后,网络那里显示感叹号,没有网络
有大佬知道要怎么弄吗?
是NAT小鸡么?这个教程很多呀,看看是不是网络配置文件没有写好?
DHCP
kimsufi通过后台装好Proxmox V7,然后装好win10为什么无法上网?
网络要自己配的,并不是windows那种虚拟机有默认配置了
https://zhuanlan.zhihu.com/p/352355271
多IP就给小机配IP  1个IP就开nat端口给小机

zxxx 发表于 2022-7-22 15:38
是NAT小鸡么?这个教程很多呀,看看是不是网络配置文件没有写好?

对,是NAT小鸡,原来网络还要自己配置,我还以为kimsufi自带的proxmox,网络是配置好掉的

本帖最后由 zxxx 于 2022-7-22 15:53 编辑

  1. echo "net.ipv4.ip_forward=1" >> /etc/sysctl.conf &&
  2. echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf  &&
  3. echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf && sysctl -p

复制代码

  1. nano /etc/network/interfaces

复制代码

  1. # This file describes the network interfaces available on your system
  2.     # and how to activate them. For more information, see interfaces(5)
  3.     source /etc/network/interfaces.d/*
  4.     auto lo
  5.     iface lo inet loopback
  6.     allow-hotplug enp4s0
  7.     iface enp4s0 inet manual
  8.     auto vmbr0
  9.     iface vmbr0 inet static
  10.             address 1.2.3.4
  11.             netmask 255.255.255.0
  12.             gateway 1.2.3.1
  13.             bridge-ports enp4s0
  14.             bridge-stp off
  15.             bridge-fd 0
  16.     auto vmbr1
  17.     iface vmbr1 inet static
  18.             address 192.168.1.1
  19.             netmask 255.255.255.0
  20.             bridge_ports none
  21.             bridge_stp off
  22.             bridge_fd 0

复制代码

  1. systemctl restart networking

复制代码

  1. apt install –assume-yes  ifupdown2 net-tools &&
  2. apt install –assume-yes –no-install-recommends iptables-persistent netfilter-persistent &&
  3. systemctl enable netfilter-persistent

复制代码

  1. iptables -t nat -A POSTROUTING -s ‘192.168.1.0/24’ -o vmbr0 -j MASQUERADE
  2. iptables -t nat -A PREROUTING -i vmbr0 -p tcp –dport 10022 -j DNAT –to 192.168.1.2:22
  3. iptables -t nat -A PREROUTING -i vmbr0 -p tcp –dport 13389 -j DNAT –to 192.168.1.2:3389
  4. iptables-save > /etc/iptables/rules.v4

复制代码

问下想OP 5O这种1个IP的独服  装PVE 也是用NAT 方法给虚拟机分配IP吗?

jinwyp 发表于 2022-7-22 15:55
问下想OP 5O这种1个IP的独服  装PVE 也是用NAT 方法给虚拟机分配IP吗?

cpu这么拉,你就别难为它了

赞(0)
版权声明:本贴采用知识共享 署名4.0国际许可协议 [BY-NC-SA] 进行授权
帖子名称:《kimsufi通过后台装好Proxmox V7,然后装好win10为什么无法上网?》
帖子链接:https://bbs.toot.su/145228.html

相关推荐