Cisco Nexus 1000V
Cisco Nexus 1000V包含VEM和VSM兩部分,其中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安裝包,將安裝包解壓得到VSM和VEM安裝程序。
http://tools.cisco.com/support/downloads/pub/Redirect.x?mdfid=282362725
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 1000V,HA模式設定為standalone,定義管理地址及網關。
5、 查看虛擬機的host-id,并根據此id在www.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.xml,在vSphere 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、 定義VSM和VEM通訊使用的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 1000V,在Nexus 1000V上點右鍵,選擇add host,把ESXi主機添加到分布式虛擬交換機(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
轉載于:https://blog.51cto.com/pablopan/863664
總結
以上是生活随笔為你收集整理的Cisco Nexus 1000V的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Java开发环境搭建详解
- 下一篇: 找到一个比较熟悉Go语言的国内博客