Home> Support> Technical Documents>

RG-Switch Implementation Cookbook V1.1

2017-05-05View: 1628
Catalog
11.x项目配置指南模板

      Installation and Device Management

1.1     System Management

1.1.1     Console Management

 

.

l  Cables

Console cable, USB to RS232 cable

l  login the device

Open your software Putty, set baud rate to 9600


After system prompts "Ruijie>", you can start your configuration

1.1.2     Telnet Management

I. Network Topology

 

 

II. Configuration Steps

1.      console connect to device and set passwords

2.     set ip and gateway

ruijie(config)#interface vlan 1

ruijie(config-if-VLAN 1)#ip address 192.168.1.1 255.255.255.0

ruijie(config)#ip route 0.0.0.0 0.0.0.0 192.168.1.2

 

3.     set telnet password

ruijie(config)#line vty 0 4

ruijie(config-line)#password ruijie

 

4.     set enable password

Ruijie(config)#enable password ruijie

 

III. Verification

Telnet 192.168.1.1

 

Input telnet password

 

input enable password

1.1.3     SSH Management

I. Network Topology

 

II. Configuration Steps

1.     enable SSH service

Ruijie#configure terminal    

Ruijie(config)#enable service ssh-server    

 

2.     generate key

Ruijie(config)#crypto key generate dsa        

Choose the size of the key modulus in the range of 360 to 2048 for your Signature Keys. Choosing a key modulus greater than 512 may take a few minute

How many bits in the modulus [512]:                 //press enter

% Generating 512 bit DSA keys ...[ok]

 

3.     configure IP address

Ruijie(config)#interface gigabitEthernet 0/0       

Ruijie(config-if-GigabitEthernet 0/0)#ip address 192.168.1.1 255.255.255.0      

Ruijie(config-if-GigabitEthernet 0/0)#exit    

 

Solution 1password login

Ruijie(config)#line vty 0 4                                           

Ruijie(config-line)#login      

Ruijie(config-line)#password ruijie         

Ruijie(config-line)#exit      

Ruijie(config)#enable password  ruijie        

Ruijie(config)#end         

Ruijie#write         

 

Solution 2: username & password login

Ruijie(config)#line vty 0 4            

Ruijie(config-line)#login local           

Ruijie(config-line)#exit   

Ruijie(config)#username admin password ruijie       

Ruijie(config)#enable password ruijie     

Ruijie(config)#end         

Ruijie#write    

 

III. Verification

Check SSH service

 

Check SSH services

 

Show users

1.1.4 Creating a Management IP Address

Creating a Management IP Address

The SVI and router port address can be used as the management address of the layer 3 switch.

Layer 3 Switch:

The address of a layer-3 switch can be configured for management or communication, for example, as the gateway for a user.

Configuration Method 1:

Ruijie>enable

Ruijie#configure terminal

Ruijie(config)#interface vlan 10

Ruijie(config-if-VLAN 10)#ip address 192.168.1.1 255.255.255.0

Ruijie(config-if-VLAN 10)#end

Ruijie#write

 

Note: To configure the address for VLANs other than VLAN 1 in interface configuration mode, create the corresponding VLAN first; otherwise, a failure prompt is displayed.

 

Configuration Method 2:

Ruijie>enable

Ruijie#configure terminal

Ruijie(config)#int GigabitEthernet 1/1

Ruijie(config-if-GigabitEthernet 1/1)#no switchport  ------>configure the port as layer 3 port before configuring ip address

Ruijie(config-if-GigabitEthernet 1/1)#ip add 192.168.16.1 255.255.255.0

Ruijie(config-if-GigabitEthernet 1/1)#end

Ruijie#write            ------>save configuration after checking.

 

Verification

Ruijie#show ip int brief

Interface           IP-Address(Pri)           IP-Address(Sec)       Status        Protocol

GigabitEthernet 1/1       192.168.16.1/24        no address          up          up

VLAN 10                  192.168.1.1/24         no address          up          up

VLAN 100                 192.168.100.1/24      192.168.10.1/24      up          up

 

1.1.5 Configuring a Default Gateway

Note: The default gateway of a layer 3 switch is provided by static routing. A device can also learn network routing through a dynamic routing protocol so as to implement remote management. For the configuration specification of other routing protocols, see IP Route (for the configuration method, see Common Function Configuration > IP Route).

Configuring the Default Gateway of a Switch

Configure the default gateway, that is, default route, of a layer 3 switch.

Ruijie>enable

Ruijie#configure terminal

Ruijie(config)#ip route 0.0.0.0 0.0.0.0 192.168.1.254    ------>configure default gateway of switch as 192.168.1.254

Ruijie(config)#end

Ruijie#write         ------>save configuration after checking.

 

Verification

Ruijie#show ip route

Codes:C - Connected, L - Local, S - Static

R - RIP, O - OSPF, B - BGP, I - IS-IS, V - Overflow route

N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

E1 - OSPF external type 1, E2 - OSPF external type 2

SU - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2

IA - Inter area, * - candidate default

Gateway of last resort is 192.168.1.254 to network 0.0.0.0

S*  0.0.0.0/0 [1/0] via 192.168.1.254

 

1.2     Firmware Upgrade

1.2.1     Firmware Upgrade for RGOS 10.x

Notes (Must-Read)

I. TFTP Server

A TFTP server must be installed on a TCP/IP-ready workstation or PC. Once the application is installed, a minimal level of configuration must be performed.

1. First, the TFTP application must be configured to operate as a TFTP server as opposed to a TFTP client.

2. Second, the outbound file directory must be specified. This is the directory in which the Ruijie RGOS Software images are stored (see step 2 below). Most TFTP applications provide a setup routine to assist in these configuration tasks.

Note: A number of TFTP are available from independent software vendors or as shareware from public sources on the World Wide Web.

3. Third, download a TFTP Server. There are many TFTP servers available, and they can be easily found by searching for "tftp server" on your favorite Internet search engine. Ruijie does not specifically recommend any particular TFTP implementation.

 

II. Prerequisites

1. Download latest firmware at www.ruijienetworks.com

2. Backup running configuration to local hardrive

3. Prepare console cable in case of upgrade failure

4. Read firmware release notes, especially check "hardware supported" chapter

5. Log the whole upgrade process.

 

III. Tips

1. System upgrade require rebooting, may cause network downsuggest to upgrade in offpeak hours.

2. Keep power on during the whole upgrade process, or firmware might be lost.

3. Double check firmware package before upgrade, (Verify MD5 hash value)

4. Backup config file before your upgrade.

 

1.2.1.1     User Mode Upgrade (Recommended)

I. Network Topology

II. Configuration Steps:

1.     Configure MGMT IP

Ruijie>enable          ------>enable mode

Ruijie#configure terminal    ------>enter global mode

Ruijie(config)#interface vlan 1    ------>interface mode

Ruijie(config-if)#ip address 192.168.1.1 255.255.255.0  ------>configure MGMT ip

Ruijie(config-if)#exit

 

2Check ping connectivty

Notice:  disable PC firewall during the whole process.

 

3. Check running firmware verion

 

 

4.     Put tftp client and upgrade package in the same folder

5.     Enable TFTP server

 

 

6.     Login the switch

Ruijie#show ip route Ruijie#copy tftp://192.168.1.2/S2600_V10.4(2)_R75955.bin flash:rgos.bin     192.168.1.2    -->PCS2600_V10.4(2)_R75955.bin-->upgrade packagergos.bin       --> firmware name

 

Copying firmware

 

 

7.     File transfer finished

 

8.     Reboot the switch

 

9.     Check rebooting process

 

1.2.1.2     Main Mode Upgrade (for recovery)

Notice

1.     Ctrl mode upgrade is designed for disaster recovery

2.     If system prompts "send download request" you have to follow these monitor mode upgrade steps.

 

I. Tips

1. Connect console cable to the switch

2. Connect Ethernet cable to the first copper port or MGMT port phycial port doesn't linked up until data transfer start, you also can not check ping connectivity during this process)

 

II. Upgrade Steps

1.     Set pc IP address -->192.168.1.2enable TFTP server

Note: disable windows fireware during the whole upgrade process.

2.     Connect switch console port

3.     Console login to the system

1)     Enter monitor mode

 

2) Teminate this progress, enter Ctrl> mode

Note: during normal start-up process, Press "ctrl+C" to interuppt 

 

3) Input commmand tftp 192.168.1.1 192.168.1.2 S2600_V10.4(3)_R117920.bin -main

 

4) File transfering

 

5) Check file size

 

6) Load upgrade package

 

7) Show version

 

1.2.1.3     VSU Upgrade

NoteApplicable for all chassis/box switches   

 

Scenario

One VSU group is consist of two S8600 VSU group, each of the chassis is loaded with dual control engine.

 

I. Network Topology

 

II. Configuration Tips

1.     Read release notes before the upgrade, especially the "supported hardware list"

2.     VSU upgrade will cause network service down, plz researve at least TWO hours for the upgrade process.

 

III. Configuration Steps

1.     Backup config file to local PC

2.     Confirm hardware version before upgrade

3.     Confirm with customer if service download is allowed;

4.     Change chassis from VSU to standalone mode

Ruijie-ACTIVE#switch convert mode standalone

5.     Follow chapter "firmware upgrade>User mode upgrade"

6.     Show version on both chassis

7.     Convert chassis back to VSU mode

Ruijie#switch convert mode virtual      

Convert switch mode will automatically backup the "config.text" file and then delete it, and reload the switch. Do you want to convert switch to virtual mode? [no/yes]y

Do you want to recover "config.text" from "virtual_switch.text" (press 'ctrl + c' to cancel) [yes/no]:y

8.     (show switch virtual), check network production

 

IV. Verification

1.     Show version

2.     Show switch virtual 

 

 

1.2.2     Firmware Upgrade for RGOS 11.x

Overview

Two upgrade packages are available to 11.X switches, namely rack package and patch package.

A rack package contains main installation packages of the supervisor module and all line cards and is used to upgrade all line cards on a rack device at one time.

A hot patch package contains hot patches for several functional components and is generally used to fix minor bugs. The functional component package can be patched by upgrading the hot patch package. After the upgrade, the device can immediately have new features without being restarted.

Both the rack package and the hot patch package are upgraded with their configurations saved.

 

 

Notes (Must-Read)

The difference between an 11.X box-type switch and a rack-type switch lies in that the former restarts after the upgrade command is run while the latter restarts after the reload command is run.

Ruijie#upgrade flash:S2910_RGOS11.4(1)B1_02162700_install.bin

Upgrade the device must be auto-reset after finish, are you sure upgrading now?[Y/N]y

 

Upgrade in the Running Mode

Rack Package Upgrade Using a USB Flash Disk

Notes

1. To fix software bugs or get new features, upgrade the switch software version in the running mode.

2. A USB flash disk is recommended for 11.X switch upgrade because the installation package is big and upgrade using other methods is slow. Upgrade with a USB flash disk is easy and quick.

3. The CM supervisor module only has a capacity of 512 MB. Therefore, the rack package can be directly upgraded only with a USB flash disk.

4. If the CM supervisor module has a capacity of 1 GB, upgrade the device by copying the installation package from TFTP to the installation partition as well as by using a USB flash disk. Run the dir install: command to view the corresponding drive.

5. If the CMII supervisor module has a large capacity, upgrade the device by copying the installation package from TFTP to the data partition as well as using a USB flash disk. Run the dir flash: command to view the corresponding drive.

 

Patch Package Upgrade Using a USB Flash Disk

Notes

1. To fix software bugs or get new features, upgrade the switch software version in the running mode.

2. A hot patch package contains hot patches for several functional components and is generally used to fix minor bugs. The functional component package can be patched by upgrading the hot patch package. After the upgrade, the device can immediately have new features without being started.

3. There is a baseline version for the patch package upgrade. Upgrade the device to the corresponding baseline version before upgrading the patch package. The device may be upgraded compulsively to the corresponding baseline version but it may cause version incompatibility. Therefore, compulsive upgrade is not advised.

4. To permanently activate patches, run the patch active command to temporarily activate the patch before running the patch running command.

 

1.2.2.1     Upgrade with USB Drive

I. Configuration Tips

Run the show version detail command to display the current version, that is, system software number.

Verify the upgrade file used by checking Release Notes.

Copy the upgrade file from the PC to the root directory of the USB flash drive.

Insert the USB flash drive to the USB port of the supervisor engine. The USB flash drive is automatically identified.

Note: Before removing the USB flash drive from the switch, run the show usb command to check the USB ID, and then run the usb remove xx command to remove the USB flash drive.

II. Configuration Steps

1.     On CLI, run the upgrade command.

Ruijie#dir usb0:  Checks whether the upgrade file exists on the USB flash drive.

Ruijie#upgrade usb0: /xxxxx_install.bin  (xxxx_install.bin is the upgrade file copied to the USB flash drive)

 

2.      Wait until the upgrade progress reaches 100%, or run the show upgrade status command to check the upgrade progress.

 

3.     Wait until the upgrade process of all the line cards, FE cards, and supervisor engines reaches 100% and the result is success, run the reload command to restart the device. (The entire upgrade process generally takes four to five minutes and does not affect services. In this operation, the Flash file on the line card is upgraded, but the earlier version still runs on the memory.) After the device is restarted, the new version runs.

 

4.     Wait three to five minutes until the device is restarted.

 

III. Verification

1.2.2.2     Upgrade with FTP

 

Run the show version detail command to display the current version, that is, system software number.

 

Verify the upgrade file used by checking Release Notes.

II. Configuration Steps

1.     Start the FTP server on the device, and designate the root directory as the USB0 root directory. (The space on the built-in Flash of CMI is small, and may be insufficient for storing the upgrade file. The CMII can be specified as the Flash root directory.) ,the reference commands are as follows:

Ruijie(config)#ftp-server username admin

Ruijie(config)#ftp-server password ruijie

Ruijie(config)#ftp-server topdir usb0: /                 //The USB flash drive must be installed in advance on the main engine.

Ruijie(config)#ftp-server timeout 300

Ruijie(config)#ftp-server enable

 

2.     The local PC serves as the FTP client. Start the client software (such as FLASHFTP) and connect to the FTP server (N18K). Ensure that the PC can communicate properly with the S86E.

 

3.     Use the FTP client on the PC to load the upgrade file to the FTP server.

 

4.     Run the upgrade command. (The subsequent procedures and methods are the same as those in the USB upgrade mode.)

The only difference between the FTP and USB onsite upgrade modes lies in the file transfer mode. In FTP upgrade mode, the upgrade file is transferred to the remote device through FTP to meet the remote upgrade requirement. In USB onsite upgrade mode, the upgrade file is directly copied from a PC to the USB flash drive.

 

The subsequent upgrade method is the same. That is, run the upgrade command to update the file and then restart the device to finish the upgrade.

1.2.2.3     Upgrade with TFTP

Run the show version detail command to display the current version, that is, system software number.

 

Verify the upgrade file used by checking Release Notes.

 

I. Configuration Steps

1. Start the TFTP server on the PC and specify the directory of the upgrade file. Ensure that the PC communicates properly with the S86E.

 

3.     The S86E serves as the TFTP client. The upgrade method is the same as that in the common TFTP upgrade mode. Copy the upgrade file to the USB flash drive on the CMI, or to the built-in Flash on the CMII.

Ruijie#copy tftp://192.168.1.1/S86e_install.bin usb0:// S86e_install.bin

 

4.     Run the upgrade command. (The subsequent procedures and methods are the same as those in the USB upgrade mode.)

The only difference between the TFTP and USB onsite upgrade modes lies in the file transfer mode. In TFTP upgrade mode, the upgrade file is transferred to the remote device through TFTP to meet the remote upgrade requirement. In USB onsite upgrade mode, the upgrade file is directly copied from a PC to the USB flash drive.

 

The subsequent upgrade method is the same. That is, run the upgrade command to update the file and then restart the device to finish the upgrade.

 

The TFTP transmission rate is lower than the FTP transmission rate. Data is transmitted using TCP in FTP mode, and using UDP in TFTP mode. TFTP is simple and easy to use.

1.2.2.4     Install Patch

1. 11.X is a modular OS and the bug of a software function can be fixed by using a patch. After the patch is installed, the device can fix the bug and can run normally without being restarted. This OS is applicable to the scenario that imposes rigid requirements on the network interruption time during maintenance.

 

2. A patch is in the uninstalled, installed, or activated state, where:

 

The installed state indicates that the patch is installed on the memory of the device but the path function does not take effect yet.

 

Only a patch in the activated state takes effect.

 

I. Configuration Steps

1. Install a patch.

Copy the path file to a USB flash drive, and run the upgrade command to install the path.The reference command is as follows:

Ruijie#upgrade usb0: /N18K-octeon-cm_RGOS11.0(1b2)_20140708_patch.bin

 

2. Activate a patch.

The reference command is as follows:

Ruijie#patch active slot all

Ruijie#patch running slot all

 

Note: active means that the patch is currently effective and is ineffective after the device is restarted. running indicates that the patch is effective permanently.

 

3.     Display the patch status.

The reference command is as follows:

Ruijie#show patch slot all

 

1.2.2.5     Main Mode Upgrade (for recovery)

Notice

3.     Ctrl mode upgrade is designed for disaster recovery

4.     If system prompts "send download request" you have to follow these monitor mode upgrade steps.

 

I. Tips

1. Connect console cable to the switch

2. Connect Ethernet cable to the first copper port or MGMT port phycial port doesn't linked up until data transfer start, you also can not check ping connectivity during this process)

 

II. Upgrade Steps

Note: disable windows fireware during the whole upgrade process.

1.     Connect switch console port

2.     Console login to the system

1)     Enter monitor mode, change the baudrate to 115200

2) Teminate this progress, enter Ctrl> mode

Note: during normal start-up process, Press "ctrl+C" to interrupt, change the baudrate to 115200 first

 

Relogin the CLI page of switch since the baudrate has been changed.

Choose 1 for Xmodem utilities, and then choose 1 for main program upgrading, then choose transmission mode as sendXmodem(N) for firmware transmission

3) Load upgrade package

 

7) Show version

Ruijie#show version

System description : Ruijie 10G Ethernet Switch(S5750C-48GT4XS-H) By Ruijie Networks

System start time : 2016-08-23 17:45:36

System uptime : 0:03:10:08

System hardware version : 1.00

System software version : S5700H_RGOS 11.4(1)B2P3

System patch number : NA

System serial number : 1234942570049

System boot version : 1.2

Module information:

Slot 0 : S5750C-48GT4XS-H

Cpu 0:

Hardware version : 1.00

Boot version : 1.2

Software version : S5700H_RGOS 11.4(1)B2P3

Serial number : 1234942570049

Ruijie# show

1.2     Password Recovery

1.2.1     Reset Password for RGOS 10.X

 

I. Configuration Tips

1. Recovery the password in monitor mode (Ctrl mode)

2.     Rename previous config file  instead of renaming config file

 

II. Configuration Steps

1.     Connect console cable to the switch

2.     Refer to chapter system management>console management

1)     Manually reboot the switch

 

2)     Press Ctrl+C when system rebooting

 

3)     Rename config.text ---->config.bak

 

4 Load firmware

 

5) Recovery the previous config file

 

6Set new password

 

 

6Verify new password

    Login with the new password

 

1.2.2 Reset Password for RGOS 11.X

I. Configuration Tips

1. Prepare console cable before recovering

2. Password recovery require system rebooting and network downtime

3. Improper operation may cause config file lost.

 

II. Configuration Steps

1.     connect console cable to the switch

 

2.     Refer to chapter system management>console management

1)     manually reboot the switch

 

2)     Press Ctrl+C when system rebooting

 

3)      Press CTRL + to enter uboot CLI mode

 

4)     then system will reboot automatically

 

5)     At this moment, no password is required to enter CLI

Note: The password is reset just temporarily .Once you quit privilege mode, password is required again. You have to reset the password quickly.

 

6)     Reset new password

 

7)     Verify new password

Login with the new password

 

1.3     Restore Factory Default

1.3.1     Restore Factory Default for RGOS 10.X

I. Network Topology

 

II. Configuration Steps

1.     Connect console cable to the switch

 

 

2.     Refer to chapter system management>console management

1)     Manually reboot the switch

2Press Ctrl+C when system rebooting

3) Delete config. txt

4Load firmware

 

III. Verification

Confirm if all previous config file has been earased.

 

 

 

 

  • Sales Enquiry