Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[已解决]虚拟机没办法获取桥接的网络问题,没办法获取局域网地址

Featured Replies

md文件,请随便找个md解析器查看

 

23年的时候遇到过一次,[原贴](https://forums.unraid.net/topic/139040-%E8%99%9A%E6%8B%9F%E6%9C%BA%E7%BD%91%E7%BB%9C%E5%85%B1%E4%BA%AB%E9%97%AE%E9%A2%98%E8%AF%B7%E6%95%99/#comment-1302676),今天有遇到了一次
## 版本
unraid正版,版本: 6.11.5
虚拟机是乌班图
之前是一块网卡,修改后变成两块网卡

## 问题描述
虚拟机设置了br0(网络桥接)
变更硬件后无法获取192开头的局域网地址,只能获取172开头的虚拟地址

## 步骤
虚拟机硬盘满了进行扩容,第一次误操作添加了额外的硬盘,后面关机后直接编辑硬盘大小,再通过挂载实现的扩容.

简单的步骤列表:
* 系统正常运行,ip正常
* 发现硬盘不足
* 关机,添加了个硬盘(出错的原因)
* 关机,删除添加的硬盘
* 编辑第一块硬盘的大小
* 多次重启,挂载硬盘
* 开机,挂载成功
* 检查后发现获取不到ipv4

## 解决
和上年的步骤一样,核心点在于**要让网卡的bus地址靠前**

1. 没有添加共享时的配置: 网卡的bus地址是0x01和0x02,启动后能获取成功:
![1734152536276-2024-12-14-130216.png](https://pic.devitem.top/uTools/2024/12/1734152536276-2024-12-14-130216.png)
第二个网卡的bus='0x02'是能获取到192.168.x.x的地址的

2. 添加共享后的截图:
![1734152665272-2024-12-14-130425.png](https://pic.devitem.top/uTools/2024/12/1734152665272-2024-12-14-130425.png)
两个网卡的地址从0x01,0x02变成了0x02,0x05,这时候启动是没办法获取桥接的地址的

 3. 把共享和网卡的进行交换,共享的变成0x05,网卡(第二个)变成0x01,启动后能获取ipv4
 ![1734152792272-2024-12-14-130632.png](https://pic.devitem.top/uTools/2024/12/1734152792272-2024-12-14-130632.png)
 
4.如果有两个共享目录,也要确保网卡的bus值靠前:
 ![1734152972273-2024-12-14-130932.png](https://pic.devitem.top/uTools/2024/12/1734152972273-2024-12-14-130932.png)

 5.我试了下,只有一个网卡,bus地址是0x01,启动后还是没办法获取192.168的地址,稀罕
 只能有两个网卡

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.