虚拟机上的windows能上网,但主机不能上网
-
- 帖子: 5
- 注册时间: 2014-09-21 16:02
- 系统: ubuntu 14.04
虚拟机上的windows能上网,但主机不能上网
校园网客户端不支持ubuntu,所以用vbox安装了windows的虚拟机并在虚拟机上用校园网客户端连上了网,但ubuntu还是不能上网。这个该怎么弄啊?
-
- 论坛版主
- 帖子: 18279
- 注册时间: 2009-08-04 16:33
Re: 虚拟机上的windows能上网,但主机不能上网
windows 可以上網
相同的設定 Ubuntu 應該也可以上網
把下面指令 複製 貼進終端機 執行
1. sudo lshw -numeric -class network
2. sudo ifconfig -a
3. sudo route -nv
4. sudo dhclient -v
5. sudo cat /etc/resolv.conf
把結果直接複製 貼上來
相同的設定 Ubuntu 應該也可以上網
把下面指令 複製 貼進終端機 執行
1. sudo lshw -numeric -class network
2. sudo ifconfig -a
3. sudo route -nv
4. sudo dhclient -v
5. sudo cat /etc/resolv.conf
把結果直接複製 貼上來
-
- 帖子: 5
- 注册时间: 2014-09-21 16:02
- 系统: ubuntu 14.04
Re: 虚拟机上的windows能上网,但主机不能上网
qionglin@qionglin-pc:~$ sudo lshw -numeric -class network
[sudo] password for qionglin:
*-network
description: Ethernet interface
product: RTL8101E/RTL8102E PCI Express Fast Ethernet controller [10EC:8136]
vendor: Realtek Semiconductor Co., Ltd. [10EC]
physical id: 0
bus info: pci@0000:02:00.0
logical name: eth0
version: 05
serial: 08:00:27:6e:81:d6
size: 100Mbit/s
capacity: 100Mbit/s
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=rtl_nic/rtl8105e-1.fw ip=10.6.14.138 latency=0 link=yes multicast=yes port=MII speed=100Mbit/s
resources: irq:43 ioport:2000(size=256) memory:d3804000-d3804fff memory:d3800000-d3803fff
*-network
description: Network controller
product: BCM4313 802.11bgn Wireless Network Adapter [14E4:4727]
vendor: Broadcom Corporation [14E4]
physical id: 0
bus info: pci@0000:03:00.0
version: 01
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list
configuration: driver=bcma-pci-bridge latency=0
resources: irq:17 memory:d3900000-d3903fff
*-network DISABLED
description: Wireless interface
physical id: 3
logical name: wlan0
serial: f4:b7:e2:18:0a:84
capabilities: ethernet physical wireless
configuration: broadcast=yes driver=brcmsmac driverversion=3.13.0-32-generic firmware=N/A link=no multicast=yes wireless=IEEE 802.11bgn
[sudo] password for qionglin:
*-network
description: Ethernet interface
product: RTL8101E/RTL8102E PCI Express Fast Ethernet controller [10EC:8136]
vendor: Realtek Semiconductor Co., Ltd. [10EC]
physical id: 0
bus info: pci@0000:02:00.0
logical name: eth0
version: 05
serial: 08:00:27:6e:81:d6
size: 100Mbit/s
capacity: 100Mbit/s
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=rtl_nic/rtl8105e-1.fw ip=10.6.14.138 latency=0 link=yes multicast=yes port=MII speed=100Mbit/s
resources: irq:43 ioport:2000(size=256) memory:d3804000-d3804fff memory:d3800000-d3803fff
*-network
description: Network controller
product: BCM4313 802.11bgn Wireless Network Adapter [14E4:4727]
vendor: Broadcom Corporation [14E4]
physical id: 0
bus info: pci@0000:03:00.0
version: 01
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list
configuration: driver=bcma-pci-bridge latency=0
resources: irq:17 memory:d3900000-d3903fff
*-network DISABLED
description: Wireless interface
physical id: 3
logical name: wlan0
serial: f4:b7:e2:18:0a:84
capabilities: ethernet physical wireless
configuration: broadcast=yes driver=brcmsmac driverversion=3.13.0-32-generic firmware=N/A link=no multicast=yes wireless=IEEE 802.11bgn
-
- 帖子: 5
- 注册时间: 2014-09-21 16:02
- 系统: ubuntu 14.04
Re: 虚拟机上的windows能上网,但主机不能上网
root@qionglin-pc:/home/qionglin# sudo ifconfig -a
eth0 Link encap:以太网 硬件地址 08:00:27:6e:81:d6
inet 地址:10.6.14.138 广播:10.6.14.255 掩码:255.255.255.0
inet6 地址: fe80::a00:27ff:fe6e:81d6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 跃点数:1
接收数据包:66642 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:66004 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:1000
接收字节:75135267 (75.1 MB) 发送字节:9395212 (9.3 MB)
lo Link encap:本地环回
inet 地址:127.0.0.1 掩码:255.0.0.0
inet6 地址: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 跃点数:1
接收数据包:3147 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:3147 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:0
接收字节:269322 (269.3 KB) 发送字节:269322 (269.3 KB)
wlan0 Link encap:以太网 硬件地址 f4:b7:e2:18:0a:84
BROADCAST MULTICAST MTU:1500 跃点数:1
接收数据包:0 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:0 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:1000
接收字节:0 (0.0 B) 发送字节:0 (0.0 B)
root@qionglin-pc:/home/qionglin#
eth0 Link encap:以太网 硬件地址 08:00:27:6e:81:d6
inet 地址:10.6.14.138 广播:10.6.14.255 掩码:255.255.255.0
inet6 地址: fe80::a00:27ff:fe6e:81d6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 跃点数:1
接收数据包:66642 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:66004 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:1000
接收字节:75135267 (75.1 MB) 发送字节:9395212 (9.3 MB)
lo Link encap:本地环回
inet 地址:127.0.0.1 掩码:255.0.0.0
inet6 地址: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 跃点数:1
接收数据包:3147 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:3147 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:0
接收字节:269322 (269.3 KB) 发送字节:269322 (269.3 KB)
wlan0 Link encap:以太网 硬件地址 f4:b7:e2:18:0a:84
BROADCAST MULTICAST MTU:1500 跃点数:1
接收数据包:0 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:0 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:1000
接收字节:0 (0.0 B) 发送字节:0 (0.0 B)
root@qionglin-pc:/home/qionglin#
-
- 论坛版主
- 帖子: 18279
- 注册时间: 2009-08-04 16:33
Re: 虚拟机上的windows能上网,但主机不能上网
1. r8169 不是合適的驅動 需要列入載入黑名單product: RTL8101E/RTL8102E PCI Express Fast Ethernet controller [10EC:8136]
configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=rtl_nic/rtl8105e-1.fw ip=10.6.14.138 latency=0 link=yes multicast=yes port=MII
2. 合適的驅動
http://218.210.127.131/downloads/downlo ... 2/RTL8106E
Unix (Linux)
LINUX driver for kernel 3.x and 2.6.x and 2.4.x
1.026
2014/9/18
3. 猜測 兩個驅動去競爭一個無線網卡 結果兩個都沒成功*-network
product: BCM4313 802.11bgn Wireless Network Adapter [14E4:4727]
configuration: driver=bcma-pci-bridge latency=0
*-network DISABLED
description: Wireless interface
configuration: broadcast=yes driver=brcmsmac driverversion=3.13.0-32-generic firmware=N/A link=no multicast=yes wireless=IEEE 802.11bgn
4. BCM4313 合適的驅動
https://help.ubuntu.com/community/WifiD ... er/bcm43xx
4-1. 閉源驅動 wl - Proprietary Broadcom STA Wireless driver
Install either bcmwl-kernel-source (instructions below) OR the broadcom-sta (instructions at http://wiki.debian.org/wl) packages.
4-2. 開源驅動 brcmsmac (a.k.a brcm80211) - Open source driver from Broadcom (merged into kernel 2.6.37)
4-3. 需要把 bcma-pci-bridge 列入載入黑名單
5. 搞定上面的驅動 重新開機
把下面指令 複製 貼進終端機 執行
5-1. sudo lshw -numeric -class network
5-2. sudo ifconfig -a
5-3. sudo route -nv
5-4. sudo dhclient -v
5-5. sudo cat /etc/resolv.conf
把結果直接複製 貼上來
這個 IP 是 Guest 的 ?eth0 Link encap:以太网 硬件地址 08:00:27:6e:81:d6
inet 地址:10.6.14.138 广播:10.6.14.255 掩码:255.255.255.0
你是設定 dhcp ?
-
- 帖子: 5
- 注册时间: 2014-09-21 16:02
- 系统: ubuntu 14.04
Re: 虚拟机上的windows能上网,但主机不能上网
我实在是一点都不懂你说的这些啊,第一次用ubuntu(为了让自己不再天天玩游戏),我把虚拟机什么的先全都删了,你从头教我安装虚拟机时该怎样进行设置才能够让ubuntu通过虚拟机里的windows校园网客户端认证上网吧,先谢谢了。
-
- 论坛版主
- 帖子: 18279
- 注册时间: 2009-08-04 16:33
Re: 虚拟机上的windows能上网,但主机不能上网
1. 不需通过虚拟机里的windows校园网客户端认证 只要 Host Ubuntu 端 使用 與 Guest windows 相同的連線設定方法 即可你从头教我安装虚拟机时该怎样进行设置才能够让ubuntu通过虚拟机里的windows校园网客户端认证上网吧
2. 注意 這裡說的是 連線設定方法 不是 連線設定結果 產生的 IP
3. Ubuntu 校园网 客户端 連線設定方法 本論壇應該有許多參考文章
3-1. 按一下 本論壇最上方一排選單 問答集 右邊 搜尋 出現 搜尋畫面
3-2. 輸入 校园网 按下 最下方 搜尋
3-3. 會出現 本論壇 有 校园网 字串 的文章 你可以找找看 有沒有可以參考的文章
3-4. https://help.ubuntu.com/14.04/ubuntu-help/net.html
這一篇 有許多跟 Ubuntu 網路 有關的文章 可以參考
4. 如果還有問題 歡迎再貼文
5. 以後 有問題 可以先依照 3. 的方法 在本論壇先搜尋
可以同時輸入 好幾個 關鍵字或關鍵詞 中間空一格
- YeLee
- 论坛版主
- 帖子: 26406
- 注册时间: 2008-08-13 8:48
- 系统: Fundu i64
- 来自: 东海硇州,一双管钥。
- 联系:
Re: 虚拟机上的windows能上网,但主机不能上网
校园网的话,就先得说明是锐捷还是什么,还有学校信息之类的。:em01
◎当我站在道德的高度上俯视别人的时候,发现自己是多么渺小。
♥执着但不偏激,反对而不排斥,坚决捍卫矛盾体的存在方式。
★★★天气预报★★★
fcitx-yatable一个可以使用的码表输入法
[教程]几个实例攻克软件编译难关
Gentoo Development Guide
字体相关
♥执着但不偏激,反对而不排斥,坚决捍卫矛盾体的存在方式。
★★★天气预报★★★
fcitx-yatable一个可以使用的码表输入法
[教程]几个实例攻克软件编译难关
Gentoo Development Guide
字体相关