Cisco Nexus 1000V安裝指南

        Nexus 1000V是Cisco推出的第一款純軟件的虛擬交換機產品,可以在VMware虛擬化環境中提供Cisco Catalyst交換機的功能,如QoS、ACL、SPAN等。
        Cisco Nexus 1000V包含VEMVSM兩部分,其中VEM運行在ESXi服務器上取代VMware原有的虛擬交換機,VSM是一個單獨運行的虛擬機,提供CLI接口,用於管理和配置整個虛擬交換機。
 

 

 

Cisco Nexus 1000V的具體安裝步驟如下:
 
安裝環境:
ESXi 4.0 x 1            ip address:      192.168.0.10
vCenter Server x 1      ip address:      192.168.0.20
vSphere Client and RCLI x 1   ip address:      192.168.0.30
Cisco Nexus 1000V        management ip 192.168.0.50
 
1、  www.cisco.com下載Nexus 1000V安裝包,將安裝包解壓得到VSMVEM安裝程序。

 

2、  ESXi服務器上安裝並驗證VEM
VEM目錄中的cisco-vem-v100-4.0.4.1.1.27-0.4.2.zip複製到C:\Program Files\VMware\VMware vSphere CLI\bin\ 目錄中,選擇開始菜單中的All programs > VMware >VMware vSphere CLI > Command Prompt
C:\Program Files\VMware\VMware vSphere CLI>cd bin

C:\Program Files\VMware\VMware vSphere CLI\bin>vihostupdate.pl -i -b cisco-vem-v100-4.0.4.1.1.27-0.4.2.zip --server 192.168.0.20

C:\Program Files\VMware\VMware vSphere CLI\bin>vihostupdate.pl -q --server 192.168.0.20

 

3、  vSphere Client選擇File > Deploy OVF Template選中VSM目錄中的Nexus1000v-4.0.4.SV1.1.ova導入VSM虛擬機。

4、  啓動虛擬機,選擇安裝Nexus 1000VHA模式設定爲standalone,定義管理地址及網關。
5、  查看虛擬機的host-id,並根據此idwww.cisco.com上申請60天試用License
#show license host-id
6、  將下載的License文件放在TFTP服務器,並上傳到虛擬機的bootflash中。
#copy tftp://192.168.0.30/cisco.lic bootflash:
       #install license bootflash:cisco.lic
       #show license usage
       #copy run start
7、  vCenter Server上安裝Cisco Nexus 1000V Plug-in
用瀏覽器打開虛擬機管理地址http://192.168.0.50下載cisco_nexus1000v_extension.xmlvSphere Client中選擇Manage Plug-in,右鍵點擊空白處選擇新建Plug-in,選擇下載的xml文件並點擊註冊。如果註冊失敗,可以刪除此plug-in然後重新嘗試註冊,具體方法見如下的Nexus 1000V安裝故障解決指南
8、  VSM虛擬機連接vCenter Server,如果連接失敗通常是第6步沒有成功註冊Plug-in

n1000v# config t

n1000v(config)# svs connection VC

n1000v((config-svs-conn)# vmware dvs datacenter-name DC-1

n1000v((config-svs-conn)# protocol vmware-vim

n1000v((config-svs-conn)# remote ip address 192.168.0.20

n1000v(config-svs-conn)# connect

n1000v# show svs connections

9、  定義VSMVEM通訊使用的Port Profile

n1000v(config)# port-profile system-uplink

n1000v(config-port-prof)# switchport mode trunk

n1000v(config-port-prof)# switchport trunk allowed vlan 1

n1000v(config-port-prof)# no shut

n1000v(config-port-prof)# system vlan 1

n1000v(config-port-prof)# vmware port-group

n1000v(config-port-prof)# capability uplink

n1000v(config-port-prof)# state enabled

10、              定義其他虛擬機數據和上聯通訊的Port Profile

n1000v$ config t

n1000v(config)# port-profile vm-uplink

n1000v(config-port-prof)# switchport mode access

n1000v(config-port-prof)# capability uplink

n1000v(config-port-prof)# switchport access vlan 262

n1000v(config-port-prof)# vmware port-group

n1000v(config-port-prof)# no shut

n1000v(config-port-prof)# state enabled

 

n1000v(config)# port-profile data262

n1000v(config-port-prof)# switchport mode access

n1000v(config-port-prof)# switchport access vlan 262

n1000v(config-port-prof)# vmware port-group data262

n1000v(config-port-prof)# no shut

n1000v(config-port-prof)# state enabled

n1000v(config-port-prof)# copy run start

[########################################]

 

11、              完成上述步驟後就可以在vSphere Client中的Inventory > Networking中看到Nexus 1000VNexus 1000V上點右鍵選擇add hostESXi主機添加到分佈式虛擬交換機DVS
12、              驗證安裝是否成功
n1000v# show module
Mod Ports Module-Type Model Status

--- ----- -------------------------------- ------------------ ------------

1 0 Virtual Supervisor Module Nexus1000V active *

3 248 Virtual Ethernet Module NA ok

 

參考資料:
http://www.cisco.com/en/US/products/ps9902/prod_installation_guides_list.html
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章