Hyper-V的ubuntu的網絡

Ubuntu server 12.04.2 沒有啓用 Hyper-V IC module ,在安裝完系統後需要執行以下操作完成網絡的配置
1.編輯 /etc/initramfs-tools/modules ,並追加以下內容
hv_vmbus
hv_storvsc
hv_blkvsc
hv_netvsc
2.運行update-initramfs,並reboot系統
$sudo update-initramfs –u
$ sudo reboot
3.檢查
$ lsmod | grep hv_vmbus
hv_vmbus 36054 4 hv_utils,hv_netvsc,hv_blkvsc,hv_storvsc(顯示內容)
4.配置網卡IP地址, 編輯 /etc/network/interfaces 。 下面兩種配置方法,二選一,推薦使用靜態IP地址。
DHCP配置
auto eth0
iface eth0 inet dhcp
靜態地址 根據實際情況修改IP地址和網關(x根據具體情況,配置相應的值)
auto eth0 
iface eth0 inet static
address x.x.x.x 
netmask x.x.x.x 
gateway x.x.x.x  
dns-nameservers x.x.x.x
5.重新啓動網絡
sudo /etc/init.d/networking restart 
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章