Vous êtes sur la page 1sur 23

Command Line Interface Command Line Interface Command Line Interface Command Line Interface

Tee Hong Yee Tee Hong Yee Tee Hong Yee Tee Hong Yee
hongyee.tee@smc hongyee.tee@smc hongyee.tee@smc hongyee.tee@smc- -- -asia.com asia.com asia.com asia.com
Command Line Interface Command Line Interface
Overview of OSI Layer Overview of OSI Layer Overview of OSI Layer Overview of OSI Layer
CLI access via console port (EIA/TIA 232)
CLI access via Telnet
How to use Serial Line How to use Serial Line How to use Serial Line How to use Serial Line
Start > all Program > Accessories >
communication > Hyper-terminal
How to user Serial Line How to user Serial Line How to user Serial Line How to user Serial Line
Give this connection a object
name and a object icon.
Then apply it.
How to user Serial Line How to user Serial Line How to user Serial Line How to user Serial Line
Select COM n , it depend on how
many com port in your computer
Select correct com port , or there
will be no response from switch
How to user Serial Line How to user Serial Line How to user Serial Line How to user Serial Line
Baud rate is 9600
Data bit is 8
Parity is no
Stop bit is 1
Flow control is no
Apply it
Or , press this button , you
can reset to default value
How to user Serial Line How to user Serial Line How to user Serial Line How to user Serial Line
Login Console Login Console Login Console Login Console
User Access Verification
Username: admin
Password: admin
Console#
IP Address Assignment IP Address Assignment IP Address Assignment IP Address Assignment
Console#config
Console(config)#interface vlan 1
Console(config-if)#ip address 10.13.0.52 255.255.255.0
Console(config-if)#exit
Console(config)#ip default-gateway 10.13.0.254
Console#show ip interface
IP address and netmask: 10.13.0.52 255.255.255.0 on VLAN 1,
and address mode: User specified.
Console#show ip redirects
ip default gateway 172.16.228.254
TFTP Server TFTP Server TFTP Server TFTP Server
Please make sure Give all files and Take all files are checked
Firmware Upgrade through TFTP Firmware Upgrade through TFTP Firmware Upgrade through TFTP Firmware Upgrade through TFTP
Console#copy tftp file
TFTP server ip address: 192.168.2.100
Choose file type:
1. config: 2. opcode: <1-2>: 2
Source file name: SMC8724M_Firmware
Destination file name: SMC8724M_Firmware Destination file name: SMC8724M_Firmware
\Write to FLASH Programming.
/Write to FLASH finish.
Success.
* Must configure IP address of the switch same range as the TFTP Server (your computer)
the same IP address range
Check Download File Check Download File Check Download File Check Download File
Console#dir
file name file type startup size (byte)
------------------------------------------- ------------------------ -------- ------- ----------
SMC8724_Diag_V1.0.1.17.bix Boot-Rom image Y 828076
SMC8724_FW_V3.1.1.56.bix Operation Code Y 4862483
SMC8724_Firmware Operation Code N 4852164 SMC8724_Firmware Operation Code N 4852164
Factory_Default_Config.cfg Config File N 5778
Startup Config File Y 6113
-----------------------------------------------------------------------------------------------------
Total free space: 20083331
Whichboot Whichboot Whichboot Whichboot
Console#whichboot
file name file type startup size (byte)
------------------------------------------- ------------------------ -------- ------- ----------
SMC8724_Diag_V1.0.1.17.bix Boot-Rom image Y 828076
SMC8724_FW_V3.1.1.56.bix Operation Code Y 4862483
Startup Config File Y 6113 Startup Config File Y 6113
-----------------------------------------------------------------------------------------------------
Change Boot Code Change Boot Code Change Boot Code Change Boot Code
Console#configure
Console(config)#boot system ?
boot-rom: Boot ROM image
config: Configuration file
opcode: Runtime code
Console(config)#boot system opcode:SMC8724M_Firmware
Console(config)#exit
Console#reload
System will be restarted, continue <y/n>? y
Check boot file Check boot file Check boot file Check boot file
Console#dir
file name file type startup size (byte)
------------------------------------------- ------------------------ -------- ------- ----------
SMC8724_Diag_V1.0.1.17.bix Boot-Rom image Y 828076
SMC8724_FW_V3.1.1.56.bix Operation Code N 4862483
SMC8724_Firmware Operation Code Y 4852164
Factory_Default_Config.cfg Config File N 5778
Startup Config File Y 6113
-----------------------------------------------------------------------------------------------------
Total free space: 20083331
Reload Reload Reload Reload
Console#reload
System will be restarted, continue <y/n>? y
Cold start-
Factory Default Config Factory Default Config Factory Default Config Factory Default Config
Console(config)#boot system config:Factory_Default_Config.cfg
Console(config)#exit
Console#reload
System will be restarted, continue <y/n>? y
Console(config)#boot system config Factory_Default_config.cfg
Set Startup Filename ERROR
Case
Sensitive
Scenario 1 Scenario 1 Scenario 1 Scenario 1
Firmware upgrade through TFTP
Assign IP address to the VLAN
Console(config)#interface vlan 1
Console(config-if)#ip address 192.168.2.1 255.255.255.0
Configure the TFTP server same IP address range to the switch
Connect the PC to the switch via network cable
Copy the firmware from TFTP to the switch
Console#copy tftp file
TFTP server IP address: 192.168.2.100
Choose file type:
1. config: 2. opcode: <1-2>: 2
Source file name: SMC_Firmware
Destination file name: SMC-Firmware
Answer for Scenario 2 Answer for Scenario 2 Answer for Scenario 2 Answer for Scenario 2
Set the boot file
Set the startup configuration file
Console#configure
Console(config)#boot system config: {file name}
Console(config)#exit
Console#reload Console#reload
Set the startup firmware
Console#configure
Console(config)#boot system opcode: {file name}
Console(config)#exit
Console#reload
Answer for Scenario 3 Answer for Scenario 3 Answer for Scenario 3 Answer for Scenario 3
Backup & Restore the configuration file
Show the current file directory
Console#dir
file name file type startup size (byte)
------------------------------------------- ------------------------ -------- ------- ----------
SMC8724_Diag_V1.0.1.17.bix Boot-Rom image Y 828076
SMC8724_FW_V3.1.1.56.bix Operation Code Y 4862483
Factory_Default_Config.cfg Config File N 5778
Startup Config File Y 6113
Copy the configuration from switch to TFTP Server
Console#copy file tftp
Choose file type:
1. config: 2. opcode: <1-2>: 1
Source file name: Startup1
TFTP Server IP Address: 192.168.2.100
Destination file name: Startup1
-----------------------------------------------------------------------------------------------------
Answer for Scenario 4 Answer for Scenario 4 Answer for Scenario 4 Answer for Scenario 4
Backup & Restore the configuration file
Copy the configuration file from TFTP Server to Switch
Console#copy tftp file
TFTP server IP address: 192.168.2.100
Choose file type:
1. config: 2. opcode: <1-2>: 1
Source file name: startup1 Source file name: startup1
Destination file name: starup1
Answer for Scenario 5 Answer for Scenario 5 Answer for Scenario 5 Answer for Scenario 5
Restore to factory default setting
Set the default configuration to become startup file
Console#configure
Console(config)#boot system config: Factory_Default_Config.cfg
Console(config)#exit
Console#reload Console#reload

Vous aimerez peut-être aussi