Currently Empty: 0.00 €
Module 3 Lab 1 – CLICK configuration
Configuring a static management address for a switch is a common procedure for any network administrator. It is important to carefully assign IP addresses to devices to ensure proper control. This can be done using the CLI CLICK interface, which allows easy management of the switch configuration. Â
- Step 1: Log in to the device and check the current management ip address assigned by DHCP.Â
In the first step, we need to log in to the device using the default credentials and list the IP addresses of all interfaces. The management interface is eth0.Â
- Step 2: Change the ip address of the management interface and save the configuration.Â
In the second step, change the default IP address of the management interface to 192.168.1.20 and save the configuration to avoid losing it.Â
- Step 3: Verify the correctness of the exercise.
In step 3, reboot the device and check the ip addresses of the interfaces to confirm that the exercise was done correctly.Â
- Default credentials: admin / YourPaSsWoRd
- The name of the management interface is eth0
 The purpose of the lab is to practice the basic commands for listing user accounts and changing their passwords.Â
Step 1: Log in to the device and check the current management ip address assigned by DHCP.Â
 1. Debian GNU/Linux 10 sonic ttyS0Â
 2.  Â
 3. sonic login: adminÂ
 4. Password:Â
 5. Last login: Wed Sep 27 10:49:12 CEST 2023 on ttyS0Â
 6. Linux sonic 5.10.0–8–2–amd64 #1 SMP Debian 5.10.46-5 (2021-09-23) x86_64Â
 7. You are onÂ
 8.  ____  ___ _  _ _ ____Â
 9. / ___| / _ \| \ | (_)/ ___|Â
10. \___ \| | | | \| | | |Â
11.  ___) | |_| | |\ | | |___Â
12. |____/ \___/|_| \_|_|\____|Â
13.  Â
14. — Software for Open Networking in the Cloud —Â
15.  Â
16. Unauthorized access and/or use are prohibited.Â
17. All access and/or use are subject to monitoring.Â
18.  Â
19. Help:Â Â Â http://azure.github.io/SONiC/Â
20.  Â
21. admin@sonic:~$ show ip interfacesÂ
22. Interface   IPv4 address/mask   Master   Admin/Oper   BGP Neighbor   Neighbor IP   FlagsÂ
23. ———–Â ——————-Â ——–Â ————Â ————–Â ————-Â ——-Â
24. docker0     240.127.1.1/24                up/down      N/A            N/AÂ
25. eth0        192.168.1.84/24             up/up        N/A            N/AÂ
26. lo          127.0.0.1/8                   up/up        N/A            N/AÂ
27. admin@sonic:~$Â
Â
Step 2: Change the ip address of the management interface and save the configuration.Â
 1. admin@sonic:~$ show ip interfacesÂ
 2. Interface   IPv4 address/mask   Master   Admin/Oper   BGP Neighbor   Neighbor IP   FlagsÂ
 3. ———– ——————- ——– ———— ————– ————- ——-Â
 4. docker0     240.127.1.1/24                up/down      N/A            N/AÂ
 5. eth0        192.168.1.84/24             up/up        N/A            N/AÂ
 6. lo          127.0.0.1/8                   up/up        N/A            N/AÂ
 7. admin@sonic:~$ ^CÂ
 8. admin@sonic:~$ sudo config interface ip add eth0 192.168.1.20/24Â
 9. admin@sonic:~$ sudo config save –yÂ
10. Running command: /usr/local/bin/sonic–cfggen –d —print–data > /run/tmp6p83ldpxÂ
11. Running command: mv –f /run/tmp6p83ldpx /etc/sonic/config_db.jsonÂ
12. Running command: sync;sync;syncÂ
13. 41416 Bytes writtenÂ
14. admin@sonic:~$Â
Â
Step 3: Verify the correctness of the exercise.Â
 1. admin@sonic:~$ sudo rebootÂ
 2. Config Down success!Â
 3. supervisor–proc–exit–listener: stoppedÂ
 4. requested COLD shutdownÂ
 5. TrueÂ
 6. Debian GNU/Linux 10 sonic ttyS0Â
 7.  Â
 8. sonic login: adminÂ
 9. Password:Â
10. Last login: Wed Sep 27 10:51:24 CEST 2023 on ttyS0Â
11. Linux sonic 5.10.0–8–2–amd64 #1 SMP Debian 5.10.46-5 (2021-09-23) x86_64Â
12. You are onÂ
13.  ____  ___ _  _ _ ____Â
14. / ___| / _ \| \ | (_)/ ___|Â
15. \___ \| | | | \| | | |Â
16.  ___) | |_| | |\ | | |___Â
17. |____/ \___/|_| \_|_|\____|Â
18.  Â
19. — Software for Open Networking in the Cloud —Â
20.  Â
21. Unauthorized access and/or use are prohibited.Â
22. All access and/or use are subject to monitoring.Â
23.  Â
24. Help:Â Â Â http://azure.github.io/SONiC/Â
25.  Â
26. admin@sonic:~$ show ip interfacesÂ
27. Interface   IPv4 address/mask   Master   Admin/Oper   BGP Neighbor   Neighbor IP   FlagsÂ
28. ———–Â ——————-Â ——–Â ————Â ————–Â ————-Â ——-Â
29. docker0     240.127.1.1/24                up/down      N/A            N/AÂ
30. eth0        192.168.1.20/24            up/up        N/A            N/AÂ
31. lo          127.0.0.1/8                   up/up        N/A            N/AÂ
32. admin@sonic:~$Â
Â
Â
Â
Â