万兆交换机xNetware-3.1交换机基本配置

基础配置

1.1         设备连接

使用超级终端或者XShell连接,通过 Console 口进行本地登录是登录设备的最基本方式,也是配置通过其他方式登录设备的基础。PC 机或终端服务器必须配置如下:

115200 baud

1 stop bit

8 data bits

No flow control

No parity bits

当交换机启动时 flash 没有包含初始配置脚本,它会进入 ZTP 自动配置模式,直到用户退出 ZTP 模式或交换机获得初始化脚本。

当交换机通过 ZTP 获得配置脚本,它会自动用获得的文件重启交换机。在 ZTP 模式下,按‘c’ or “C” 进入配置菜单,3秒内为选择,交换机默认开启:

1-Start XNet                 2-Down_config                    3-Update

4-Backup               5-Restore                      6-Reboot

configuration menu (c | C): c xNet --

Config Menu

1 - Start xNet

2 - Download_config

3 - Update

4 - Backup

5 – Restore

6 – Reboot

1.1.1          Start xNet

按“1”启动系统。

Select option (1-6): 1

System Drive loading

Loading Success

Welcome to xNetware

 

1.1.2       Download_config

按“2”下载配置脚本。

Select option (1-6): 2

Enter TFTP Server IP []:4.4.4.4

Enter Host IP [10.204.252.112]:4.3.2.1

Enter Host Subnet Mask [255.255.252.0]:255.0.0.0 Enter Filename []:my.conf

Bringing up eth1 interface...

done.

Download the my.conf from tftp server Download complete

1.1.3       Update

按“3”下载 tar.gz 文件。

Download normal tar.gz file (Must include startup three files) Select option (1-6): 3

Enter TFTP Server IP []:4.4.4.4

Enter Host IP [10.204.252.112]:4.4.4.2 Enter Host Subnet Mask [255.255.252.0]: Enter Filename [xNet.tar.gz]:my.tar.gz

Bringing up eth1 interface...

done.

Down the my.tar.gz from tftp server

Download complete

Unzip the update file

Update complete

1.1.4       Backup

按“4”备份系统文件,/mnt/xNet/.backup 备份到 xNet.tar.gz

xNet -- Config Menu

1 - Start xNet

2 - Download_config

3 - Update

4 - Backup

5 - Restore

6 - Reboot

Select option (1-6): 4 compressing Backup complete

1.1.5       Restore

按“5”恢复备份文件。

Select option (1-6): 5

Unzip the backup file

Restore complete

Changes take effect after restart -- system reboot recommended!

Reboot? (Y/N): y

Rebooting...

1.1.6       Reboot

按“6”重启交换机设备。

1.2         进入配置模式

开机后,输入enable进入交换机配置

xNet>enable

输入命令进入端口配置示例:

xNet#configure terminal

xNet(config)#vlan database                         #进入配置vlan

xNet(config-vlan)#vlan 1 state enable          #创建vlan1

xNet(config-vlan)#quit                              #回退

xNet(config)#interface xe1                         #进入端口

xNet(config-if)#switchport                         #打开端口

xNet(config-if)#switchport mode access       #配置端口模式

xNet(config-if)#duplex full                        #设置端口为全双工

xNet(config-if)#speed    1000                     #设置端口速率1000

xNet(config-if)#switchport access vlan 1      #将端口添加到vlan1    

xNet(config-if)#end                                   #退回配置界面

xNet#write                                               #保存配置

注:

交换机上使用电口模块时,需要将相应的端口速率调为电口的千兆速率才能联通;

文档中端口写为ge,实际配置过程中,端口为xe。

原文地址:https://www.cnblogs.com/niezhongle/p/11075262.html