Reset switch to factory config:
OS10# delete startup-configuration
Proceed to delete startup-configuration [yes/no(default)]:yes
OS10# reload
System configuration has been modified. Save? [yes/no]:no
Proceed to reboot the system? [confirm yes/no]:yes
Command | Operation |
---|---|
Ctrl+P | Go to previous line history buffer. |
Ctrl+R | Rewrites or pastes the line. |
Ctrl+N or Up/Down arrow | Go to next line in history buffer. |
Ctrl+Y | Print last deleted character. |
Ctrl+Q | Pauses screen output. |
Ctrl+S | Resumes screen output. |
Ctrl+Z | Return to root command prompt. |
Tab, SPACE | Command-line completion. |
end | Return to the root command prompt. |
exit | Go to next lower command prompt. |
Delete, Backspace | Delete previous character. |
Ctrl+A | Go to beginning of line. |
Ctrl+E | Go to end of line. |
Ctrl+F | Go forward one character. |
Ctrl+B | Go backward one character. |
Ctrl+D | Delete current character. |
Ctrl+U | Delete to beginning of line. |
Ctrl+K | Delete to the end of the line. |
Ctrl+W | Delete previous word. |
Ctrl+T | Transpose previous character. |
S1# copy running-configuration startup-configuration
or
S1# copy config://S1-initial.xml config://startup.xml
or to copy configs to another system (for backup for example)
S1# copy config://S1-initial.xml scp://user:pass@HOSTNAME/full/target/path/S1-initial.xml
S1# dir config
Directory contents for folder: config
Date (modified) Size (bytes) Name
--------------------- ------------ ------------------------------------------
2022-10-11T21:28:01Z 52459 S1-initial.xml
2022-12-12T14:14:11Z 52173 startup.xml
S1(config)# lldp enable
S1(conf-if-eth1/1/1)# lldp receive
S1(conf-if-eth1/1/1)# lldp transmit
S1(conf-if-eth1/1/1)# lldp tlv-select basic-tlv management-address port-description system-capabilities system-description system-name
S1(conf-if-eth1/1/1)# lldp med enable
S1(conf-if-eth1/1/1)# lldp med tlv-select inventory network-policy
S1(config)# lldp timer 30
S1(config)# lldp holdtime-multiplier 4
S1# show lldp neighbors
S1# show lldp neighbors detail
S1# show lldp neighbors interface ethernet 1/1/1
S1# show lldp med
S1(config)# interface vlan 100
S1(conf-if-eth1/1/1)# switchport access vlan 100
S1# show vlan
Get them here
Default credentials
User | Password |
---|---|
admin | admin |
linuxadmin | linuxadmin |
By default, SSH to the management port is not possible as it is blocked by firewall (iptables). Take these steps to open the firewall for SSH traffic:
linuxadmin
user with the default password of linuxadmin
sudo iptables -t filter -I INPUT 2 -p tcp --dport 22 -j ACCEPT
exit
S1(config)# interface mgmt 1/1/1
S1(conf-if-ma-1/1/1)# no ip address dhcp
S1(conf-if-ma-1/1/1)# ip address 10.10.10.1/24