簡介
本檔案介紹蜂窩網關CG522的不同可用軟體版本以及從CG522向CG522傳輸檔案的過程。
必要條件
需求
Cisco會重新命令您擁有CCO帳戶,以便從思科軟體網站下載軟體並瞭解有關Cisco IOS® OS的基本知識。
採用元件
本文中的資訊係根據以下軟體和硬體版本:
- Cisco IOS® XE 17.6.4上的Cisco蜂窩網關CG522。
- Cisco IOS® 15.2上的Cisco Catalyst C3560。
本文中的資訊是根據特定實驗室環境內的裝置所建立。文中使用到的所有裝置皆從已清除(預設)的組態來啟動。如果您的網路運作中,請確保您瞭解任何指令可能造成的影響。
背景資訊
第一個產品系列的蜂窩網關(CG)產品是隨Cisco IOS® XE版本提供的,後續的可用版本基於同一個XE系列。然後,專門為此產品發佈了一個名為Cisco IOS® CG(適用於蜂窩網關)的新Cisco OS。
基本概念
Cisco IOS® XE
Cisco IOS® XE是第一個用於蜂窩網關的作業系統。CG418(已停產)第一個Cisco IOS® XE版本為17.3.2,而第一個Cisco IOS® XE版本為17.4.1。
圖形使用者介面(GUI)和IPv6從17.4.1及其所有後續版本均受支援。作為XE OS,它構建在基於Linux的平台上。它將資料平面和控制平面分開,從而增強了效能和可靠性。其模組化設計允許獨立啟動不同的流程,而不會影響整個系統。
XE軟體
Cisco IOS® CG
Cisco IOS® CG是2021年8月23日發佈的適用於蜂窩網關系列的較新Cisco OS。
它從17.6.1a開始,到撰寫本文時,已升級並遵循IOS XE系列產品。
Cisco IOS® CG的早期版本不支援IPv6或圖形使用者介面(GUI)。17.9.4a引入了對IPv6的支援。 GUI從17.10.1a版開始提供。
CG軟體
在軟體下載思科網站上,您可以為您的蜂窩網關選擇所需的作業系統,無論是XE還是CG:
軟體下載
附註:在蜂窩網關上,無論您使用IOS XE還是IOS CG,命令都是相同的。但是,如果在路由器上使用5G可插拔介面模組(PIM),則某些命令會有所不同。
管理CG522中的檔案
您可以將檔案從CG複製到網路裝置(例如路由器或交換器),反之亦然,將檔案從網路裝置(例如路由器或交換器)複製到CG。
不能使用個人電腦或筆記型電腦作為tftp伺服器從/複製檔案到CG。
這尤其必要:
- 在CG上收集dmlog(需要從CG將其複製到外部tftp伺服器)
- 要升級數據機韌體版本,您必須將映像檔案複製到CG。
將檔案從CG522複製到網路裝置
步驟1.確保裝置之間通訊:
CellularGateway# show gw-system:interface brief
ADMIN OPER
PORT INTERFACE IP ADDRESS STATUS STATUS DESCRIPTION
---------------------------------------------------------------------------------
0/0 GigabitEthernet 172.xxx.xxx.10 UP UP Gigabit Ethernet Interface
ADMIN OPER
PORT INTERFACE IP ADDRESS STATUS STATUS DESCRIPTION
--------------------------------------------------------------------
1/0 Cellular 10.xxx.xxx.xxx UP UP Cellular Interface
CellularGateway# gw-action:request ping 172.xxx.xxx.11
Success :172.xxx.xxx.11 (172.xxx.xxx.11): 56 data bytes
172.xxx.xxx.11 ping statistics
5 packets transmitted, 5 packets received, 0% packet loss round
trip min/avg/max = 0.725/1.010/2.000 ms
CellularGateway#
switch#show ip interface brief
Interface IP-Address OK? Method Status Protocol
Vlan1 unassigned YES NVRAM administratively down down
Vlan10 172.xxx.xxx.11 YES NVRAM up up
switch#ping 172.xxx.xxx.10
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.xxx.xxx.10, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/3 ms
switch#
步驟2.在路由器或交換機上,輸入命令將檔案從CG複製到網路裝置:
switch#copy tftp://172.xx.xx.xx/test123.txt flash:
Destination filename [test123.txt]?
Accessing tftp://172.xx.xx.xx/test123.txt...
Loading test123.txt from 172.xx.xx.xx (via Vlan10): !
[OK - 132988 bytes]
132988 bytes copied in 1.901 secs (69957 bytes/sec)
switch#
步驟3.驗證檔案是否存在於網路裝置中:
switch#dir | in test
Directory of flash:/
580 -rwx 132988 Mar 12 2025 18:27:20 +00:00 test123.txt
122185728 bytes total (95322112 bytes free)
switch#
將檔案從網路裝置複製到CG522
步驟1.確保裝置間有通訊。
CellularGateway# show gw-system:interface brief
ADMIN OPER
PORT INTERFACE IP ADDRESS STATUS STATUS DESCRIPTION
---------------------------------------------------------------------------------
0/0 GigabitEthernet 172.xxx.xxx.10 UP UP Gigabit Ethernet Interface
ADMIN OPER
PORT INTERFACE IP ADDRESS STATUS STATUS DESCRIPTION
--------------------------------------------------------------------
1/0 Cellular 10.xxx.xxx.xxx UP UP Cellular Interface
CellularGateway# gw-action:request ping 172.xxx.xxx.11
Success :172.xxx.xxx.11 (172.xxx.xxx.11): 56 data bytes
172.xxx.xxx.11 ping statistics
5 packets transmitted, 5 packets received, 0% packet loss round
trip min/avg/max = 0.725/1.010/2.000 ms
CellularGateway#
switch#sh ip int br
Interface IP-Address OK? Method Status Protocol
Vlan1 unassigned YES NVRAM administratively down down
Vlan10 172.xxx.xxx.11 YES NVRAM up up
switch#ping 172.xxx.xxx.10
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.xxx.xxx.10, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/3 ms
switch#
步驟2.將網路裝置配置為tftp伺服器,並將其指向要複製到CG的檔案:
switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
switch(config)#tftp-server flash:test.txt
步驟3.在CG上,輸入命令從交換器下載檔案:
CellularGateway # gw-action:request file download tftpip 172.xxx.xxx.11 filename test.txt
INFO: Accessing file test.txt from 172.xxx.xxx.11
INFO: Please wait while the file is being downloaded
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 885 0 885 0 0 237k 0 --:--:-- --:--:-- --:--:-- 237k
100 885 0 885 0 0 222k 0 --:--:-- --:--:-- --:--:-- 222k
file received /flash//test.txt size(Bytes): 885
步驟4.驗證檔案是否已成功複製:
CellularGateway # gw-action:request file list
d--------- 4096 Apr 14 2022 fw_upgrade_sysinfo
-rw-r--r-- 885 Oct 10 22:00 test.txt
drwx------ 16384 Nov 11 2022 lost+found
drwxr-xr-x 4096 Sep 29 09:25 storage
drwxr-xr-x 4096 Nov 11 2022 tmp
CellularGateway #
將檔案從網路裝置複製到企業管治中的資料夾
當需要升級數據機韌體版本時,必須將映像檔案從路由器或交換機複製到快閃記憶體中的CG資料夾中。
在這種情況下,可以選擇在CG中僅使用一個命令來完成此任務。
執行「從交換機到CG」一節中的步驟1和2,然後在CG上輸入以下命令:
CellularGateway# gw-action:request file download tftpip 172.xxx.xxx.11 filename firmware_file.bin create_dir new_firm
INFO: Accessing file firmware_file.bin from 172.xxx.xxx.11
INFO: Please wait while the file is being downloaded
INFO: Created folder new_firm
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 885 0 885 0 0 190k 0 --:--:-- --:--:-- --:--:-- 190k
100 885 0 885 0 0 178k 0 --:--:-- --:--:-- --:--:-- 178k
file received /flash/new_firm/firmware_file.bin size(Bytes): 885
CellularGateway#
然後,確認檔案已成功複製到所需的資料夾中:
CellularGateway# gw-action:request file list new_firm
-rw-r--r-- 885 Oct 11 07:28 firmware_file.bin
CellularGateway#
當您正在升級數據機韌體版本時,請確認資料夾中只有韌體映像檔案。如果還有其他檔案,則必須將其刪除:
CellularGateway# gw-action:request file delete new_firm/firmware_file.bin
Removing File(s): new_firm/firmware_file.bin
CellularGateway#
然後,確認檔案是否已刪除:
CellularGateway# gw-action:request file list new_firm
CellularGateway#
只有韌體映像檔案位於資料夾中後,您就可以升級數據機韌體。
附註:此程式不用於升級CG上的軟體,因為它有自己的程式。
需要傳輸檔案時最常見的兩種情況是:
- 將數據機韌體映像檔案複製到CG以對其進行升級。
- 從CG複製dmlogs或其他檔案以進行進一步分析。
請務必記住,此過程用於往返蜂窩網關而不是從Cisco IOS®映像檔案傳輸檔案。有關下載映像檔案以升級軟體的過程,請參見 思科蜂窩網關的軟體升級過程。
相關資訊
Cisco Catalyst蜂窩網關版本說明