[問題] VirtualBox裝Centos7 沒辦法上網

看板Linux作者 (靜止在樹上的羊)時間9年前 (2017/01/05 20:38), 9年前編輯推噓4(4014)
留言18則, 9人參與, 最新討論串1/2 (看更多)
照鳥哥的教學用Virtual Box在筆電裝Centos 卻發現沒辦法把wifi傳進去給裡面用 造成現在虛擬機裡面完全沒辦法上網 不過奇怪的是進VM後他顯示有接到有線網路 不知道是怎麼回事 我網路設定就單純NAT 其他也沒動 看其他人好像也是這樣就直接能用了 有點沒有頭緒... -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 211.76.55.155 ※ 文章網址: https://www.ptt.cc/bbs/Linux/M.1483619915.A.AB0.html

01/05 21:29, , 1F
ifconfig顯示什麼?
01/05 21:29, 1F
ifconfig bridge0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 ether 1a:42:3a:74:59:fe txqueuelen 0 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.128.1.100 netmask 255.255.255.0 broadcast 192.128.1.255 inet6 fe80::a00:27ff:fe53:253e prefixlen 64 scopeid 0x20<link> ether 08:00:27:53:25:3e txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 27 bytes 3911 (3.8 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host> loop txqueuelen 0 (Local Loopback) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255 ether 00:00:00:00:00:00 txqueuelen 0 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 ※ 編輯: zxp910510 (140.109.123.120), 01/06/2017 13:01:44

01/06 14:23, , 2F
加nameserver
01/06 14:23, 2F

01/06 23:25, , 3F
ping得到8.8.8.8之類的嗎?
01/06 23:25, 3F
ping不到 我今天打開看到VB下面出現一個"啟動網路連線失敗"的失敗訊息

01/07 06:19, , 4F
別用有後門的VB
01/07 06:19, 4F

01/07 08:01, , 5F
vb有後門?
01/07 08:01, 5F

01/07 14:36, , 6F
不要理大師的推文
01/07 14:36, 6F

01/07 14:47, , 7F
了解XD
01/07 14:47, 7F

01/07 15:14, , 8F
VM 偵測到有連接網路是正常現象,因為 VM 連接的是 VM 軟
01/07 15:14, 8F

01/07 15:15, , 9F
體模擬出來的乙太網路
01/07 15:15, 9F

01/07 15:15, , 10F
可以試試看把 VM 設定中的網路類型改成 Bridge 模式,然
01/07 15:15, 10F

01/07 15:15, , 11F
後把連結得主端網路介面設成有網際網路連結的
01/07 15:15, 11F

01/07 20:26, , 12F
/etc/resolv.conf的nameserver看看有沒有設定
01/07 20:26, 12F
1 # Generated by NetworkManager 2 search centos.vbird 3 4 5 # No nameservers found; try putting DNS servers into your 6 # ifcfg files in /etc/sysconfig/network-scripts like so: 7 # 8 # DNS1=xxx.xxx.xxx.xxx 9 # DNS2=xxx.xxx.xxx.xxx 10 # DOMAIN=lab.foo.com bar.foo.com 怎麼覺得冏冏的... ※ 編輯: zxp910510 (211.76.55.155), 01/07/2017 23:58:05

01/08 01:33, , 13F
自己寫nameserver試試 看用哪家isp的
01/08 01:33, 13F

01/09 23:18, , 14F
不是……他都ping不到了就不是nameserver的問題了啦
01/09 23:18, 14F

01/10 01:23, , 15F
會不會被host的防火牆擋了 還是撞到vbox的bug vbox版本?
01/10 01:23, 15F

01/10 20:35, , 16F
防火牆有關
01/10 20:35, 16F

01/10 20:56, , 17F
vbox重裝看看 可能driver沒裝好
01/10 20:56, 17F

01/11 10:34, , 18F
換VMWare Player(被毆
01/11 10:34, 18F
文章代碼(AID): #1ORZvBgm (Linux)
文章代碼(AID): #1ORZvBgm (Linux)