Skip to main content

Asterfusion Virtual SONiC Switch Instructions


1 Purpose

This article mainly explains the establishment of the Asterfusion virtual SONiC switch (vAsterNOS) operating environment. By reading this article, users can quickly deploy the vAsterNOS image on the GNS3 virtual platform, thereby making it easier for users to learn and understand the use of Asterfusion enterprise SONiC switches.

2 Asterfusion virtual SONiC switch(vAsterNOS) introduction

vAsterNOS is a virtual operating system for sonic switches launched by Asterfusion. It inherits all the software features of AsterNOS and can run in network virtualization software such as GNS3 and EVE-NG. Users can better understand the characteristics of Asterfusion enterprise SONiC switches by using vAsterNOS, thereby providing strong support for building an efficient and stable network.

3 Environment requirements

3.1 Hardware

namemodelHardware indicatorsquantitynote
ServerX86CPU:Intel Xeon Gold5118 2.30GHZ
memory:512GB
1BIOS turn on VT
PCX86Normal PC1

3.2 Software

softwareversionnote
ESXI imageESXI-6.7.0-20191204001VMware server version
GNS3 VM Server2.2.45GNS3 version > 2.2.43
QEMU4.2.1\
GNS3 VM Client2.2.45The GNS3 Client version must be the same as the Server version
VM Server0.15.0\
vAsterNOS3.1AsterNOS Community version image, minimum configuration 2C4G
vAsterNOS.gns34GNS3 registry version > 3
Centos76.qcow2Centos7.6\

3.3 Obtaining software images

Users can search for images of GNS3, VM, Centos and other related software through the Internet. vAsterNOS image software can be obtained by applying to Asterfusion. Of course, Asterfusion also provides all the software mentioned above. You only need to apply and you can download them all.

4 vAsterNOS Running environment setup

vAsterNOS can run in network virtualization software such as GNS3 and EVE-NG. This article mainly introduces the construction method in GNS3 network virtualization software. First, you need to download the software image mentioned above and put it on your personal PC, and turn on the server with VMware ESXI installed so that the PC can connect to the server and the PC can access the server through the web. Then prepare to install GNS3, vAsterNOS and other software.

4.1 Setup GNS3 server

Access the ESXI server through the PC web and log in. Click to create/register a virtual machine as follows:

vasternos-1-1

Choose to deploy the virtual machine from an OVF or OVA file and click Next

vasternos-2-1

Enter a name for the virtual machine and click Next

vasternos-3-1

Select GNS3 VM.ova and complete the installation

vasternos-4-2

4.2 Configure GNS3 VM

After completing the creation of the GNS3 VM, configure the VM management IP through network on the management page and restart the virtual machine.

Right-click the GNS3 VM window, select Console, and open the console in a new window, as follows:

vasternos-5-1

At this time, the relevant configuration interface appears, select network to enter

vasternos-6

Then the following interface appears:

vasternos-7

Modify the IP address, gateway, DNS and other related parameters. The IP address needs to be on the same network segment as the VMware ESXI system. as follows:

vasternos-8

Then save and exit to complete the network related configuration.

Next click Edit to enter the virtual machine settings interface, as follows:

vasternos-9-1

The CPU and memory need to be set to appropriate values. For example, to run a 2+4 spine-leaf network, 6 vAsterNOS images need to be run. The running configuration of each vAsterNOS image is not less than 2 cores 4G, then the CPU needs to be combined. Set the number to greater than 12 cores and the memory to greater than 24G. At the same time, if you run a virtual PC and use it as verification data, you also need to calculate the occupied CPU and memory resources. This article is set to 24 cores 130G.

The GNS3 configuration after completing the setup is as shown below:

vasternos-10

Its username and password default to gns3/gns3.

4.3 Configure vswitch

Select network-vswitch-vswitch0, as follows:

vasternos-11-1

Click Edit Settings. You need to adjust the security policy to promiscuous mode, as follows:

vasternos-12-1

After completing all the above settings, restart the GNS3 virtual machine.

4.4 Setup GNS3 VM client

The GNS3 VM client is installed on a personal computer and can be installed directly using the prepared EXE file. After the installation is complete, it is used to remotely connect to the GNS3 VM Server. Complete operations such as image import, network topology creation, and basic configuration.

Open the GNS3 client, click edit, and select preferences, as follows:

vasternos-13

Select server and set host and user/passward as follows:

vasternos-14

4.5 Import vAsterNOS image

Open the GNS3 client and select file-New blank project, as follows:

vasternos-15

Enter the project name as follows:

vasternos-16

Then select file-import appliance and import the vasternos image configuration file, as follows:

vasternos-17

Select the image configuration file to be imported, as follows:

vasternos-18-1

Then choose to install to the main server, as follows:

vasternos-19

Then check if the image file matches

vasternos-20

Then click next and wait for the import to complete. The default username and password for the newly imported vasternos system is admin/asteros. It should be noted that the Asterfusion-vAsterNOS.gns3a and vAsterNOS-V3.1.img files must be placed in the same path.

4.6 Allocate resources and import icons for vAsterNOS

Upload the prepared asterfusion-vAsterNOS.svg file to the relevant directory of the GNS3 VM Server through scp or other methods. The file path is: /home/gns3/GNS3/symbols/asterfusion-vAsterNOS.svg.

Then choose to use the icon file on the GNS3 client, as shown below, find the vAsterNOS device in the red box on the left

vasternos-22

Then right-click and select configure template

vasternos-23

Select browse in symbol, as follows:

vasternos-24

Select the vAsterNOS icon file, as follows:

vasternos-25

And, configure the number of CPU cores and memory capacity in this interface, as follows:

vasternos-26

Now, the import of vAsterNOS has been completed and users can use it normally.

4.7 Use of vAsterNOS

Drag vAsterNOS out and right-click, the following interface will appear, you can start or stop the device, and open the configuration interface:

vasternos-27

Select Custom console open the configuration interface, Enter the username and password admin/asteros to start the exploration of vAsterNOS.

vasternos-28

4.8 Setup Centos

In the process of verifying the network, a terminal needs to be used for data transmission testing to verify whether the network configuration is correct, so the CentOS system needs to be installed on the GNS3 vm server. The installation process is similar to vasternos, and you only need to import the CentOS image file. It should be noted that if you use the CentOS image provided by Asterfusion, the default username and password are: root/yx979150.

5 Verify vAsterNOS device operating status

We set up a simple network to verify whether the device forwarding data status is normal. The network topology is as follows:

Asterfusion virtual sonic switch

Connect a vAsterNOS device and two server devices, configure IP addresses of different network segments and configure static routes. Use server-1 to ping server-2. If the ping is successful, it means that the three devices are running normally.

6 Asterfusion CX-N data center switches as the links below

If you have more technical questions, feel free to propose a ticket on our
https://help.cloudswit.ch/portal/en/signin