全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 1334|回复: 14

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

[复制链接]
发表于 2022-7-22 15:36:35 | 显示全部楼层 |阅读模式
本帖最后由 hoodhmy 于 2022-7-23 06:28 编辑

安装好win10之后,网络那里显示感叹号,没有网络
有大佬知道要怎么弄吗?
____________________________________
在proxmox官方论坛上找到了一个贴子,按照上面的方法完美解决
https://forum.proxmox.com/threads/kimsufi-ks-11-windows-server-2016-vm-has-no-internet.105742/
发表于 2022-7-22 15:38:23 | 显示全部楼层
是NAT小鸡么?这个教程很多呀,看看是不是网络配置文件没有写好?
发表于 2022-7-22 15:39:33 | 显示全部楼层
网络要自己配的,并不是windows那种虚拟机有默认配置了
发表于 2022-7-22 15:40:13 | 显示全部楼层
https://zhuanlan.zhihu.com/p/352355271
发表于 2022-7-22 15:43:27 | 显示全部楼层
多IP就给小机配IP  1个IP就开nat端口给小机
 楼主| 发表于 2022-7-22 15:44:45 | 显示全部楼层
zxxx 发表于 2022-7-22 15:38
是NAT小鸡么?这个教程很多呀,看看是不是网络配置文件没有写好?

对,是NAT小鸡,原来网络还要自己配置,我还以为kimsufi自带的proxmox,网络是配置好掉的
发表于 2022-7-22 15:50:41 | 显示全部楼层
本帖最后由 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
复制代码


发表于 2022-7-22 15:55:19 | 显示全部楼层
问下想OP 5O这种1个IP的独服  装PVE 也是用NAT 方法给虚拟机分配IP吗?
发表于 2022-7-22 16:05:12 | 显示全部楼层
jinwyp 发表于 2022-7-22 15:55
问下想OP 5O这种1个IP的独服  装PVE 也是用NAT 方法给虚拟机分配IP吗?

cpu这么拉,你就别难为它了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-6-14 06:45 , Processed in 0.075394 second(s), 8 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表