Menu
Using the CLI commands described in the section beginning with TFTP: Copying a configuration file to a remote host (CLI), you can copy switch configurations to and from a switch, or copy a software image to configure or replace an ACL in the switch configuration.
NOTE: For greater security, you can perform all TFTP operations using SFTP, as described in the section Using SCP and SFTP. You can also use the include-credentials command to save passwords, secret keys, and other security credentials in the running config file. For more information, see the section on 'Saving Security Credentials in a Config File' in the Access Security Guide for your switch. |
TFTP: Copying a configuration file to a remote host (CLI)
Syntax:
copy
<startup-config | running-config> tftp
<ip-addr
> <remote-file
> [ pc | unix ]Copying Files With XMODEM. Use the xmodem ROM monitor command to download a new system image to your router from a local personal computer (such as a PC, Mac, or UNIX workstation), or a remote computer over a modem connection, to the router's console port. Using XMODEM to install an IOS image on a Cisco device should only be done if. Receiving a file via XModem on HyperTerminal. (9600 baud, 1 StopBit, No parity, 8 data bits, no flow control), because both sending commands and receiving answers work properly. When I send the command 'upload', the device answers when it's ready and waits for the file. If you are developing the embedded device XMODEM code this may be a.
copy config <filename
> tftp <ip-addr
> <remote-file
>
[ pc | unix ]This command can copy a designated config file in the switch to a TFTP server. For more information, see 'Multiple Configuration Files' in the Basic Operation Guide for your switch.
Example:
To upload the current startup configuration to a file named
sw8200
in the configs directory on drive 'd' in a TFTP server having an IP address of 10.28.227.105:TFTP: Copying a configuration file from a remote host (CLI)
Syntax:
copy tftp
<startup-config | running-config> <ip-address
> <remote-file
> [ pc
| unix
]copy tftp config <filename
> <ip-address
> <remote-file
>
[ pc
| unix
]This command can copy a configuration from a remote host to a designated config file in the switch. For more information, see 'Multiple Configuration Files' in the Basic Operation Guide for your switch.
For more information on flash image use, see 'Using Primary and Secondary Flash Image Options' in the Basic Operation Guide for your switch.
Example:
To download a configuration file named
sw8200
in the configs
directory on drive 'd' in a remote host having an IP address of 10.28.227.105:TFTP: Copying a customized command file to a switch (CLI)
Using the
copy tftp
command with the show-tech
option provides the ability to copy a customized command file to the switch. When the show tech custom
command is executed, the commands in the custom file are executed instead of the hard-coded list of commands. If no custom file is found, the current hard-coded list is executed. This list contains commands to display data, such as the image stamp, running configuration, boot history, port settings, and so on.Syntax:
copy tftp show-tech <ipv4 or ipv6 address
> <filename
>
Copies a customized command file to the switch (see Using the copy tftp show-tech command to upload a customized command file).
Using the copy tftp show-tech command to upload a customized command file
Syntax:
Executes the commands found in a custom file instead of the hard-coded list.
NOTE: Exit the global config mode (if needed) before executing show tech commands. |
You can include
show tech
commands in the custom file, with the exception of show tech custom
. For example, you can include the command show tech all
.If no custom file is found, a message displays stating 'No SHOW-TECH file found.' (No custom file was uploaded with the
copy tftp show-tech
command.)The
show tech custom
commandXmodem: Copying a configuration file to a serially connected PC or UNIX workstation (CLI)
To use this method, the switch must be connected via the serial port to a PC or UNIX workstation. You will need to:
- Determine a filename to use.
- Know the directory path you will use to store the configuration file.
Syntax:
copy
<startup-config | running-config> xmodem
<pc | unix>Uses Xmodem to copy a designated configuration file from the switch to a PC or UNIX workstation. For more information, see 'Multiple Configuration Files' in the Basic Operation Guide for your switch.
Example:
To copy a configuration file to a PC serially connected to the switch:
- Determine the file name and directory location on the PC.
- Execute the following command:
- After you see the above prompt, press [Enter].
- Execute the terminal emulator commands to begin the file transfer.
Xmodem: Copying a configuration file from a serially connected PC or UNIX workstation (CLI)
To use this method, the switch must be connected via the serial port to a PC or UNIX workstation on which is stored the configuration file you want to copy. To complete the copying, you need to know the name of the file to copy and the drive and directory location of the file.
Syntax:
copy xmodem config <filename
> <
pc | unix>Copies a configuration file from a serially connected PC or UNIX workstation to a designated configuration file on the switch.
For more information, see 'Multiple Configuration Files' in the Basic Operation Guide for your switch.
Example:
To copy a configuration file from a PC serially connected to the switch:
- Execute the following command:
- After you see the above prompt, press [Enter].
- Execute the terminal emulator commands to begin the file transfer.
- When the download finishes, you must reboot the switch to implement the newly downloaded software. To do so, use one of the following commands:
Syntax:
boot system flash
[config
<filename
>]Switches boot from the designated configuration file. For more information, see 'Multiple Configuration Files' in the Basic Operation Guide for your switch.Syntax:
Reboots from the flash image currently in use.(For more on these commands, see 'Rebooting the Switch' in the Basic Operation Guide for your switch.)
USB: Copying a configuration file to a USB device (CLI)
To use this method, a USB flash memory device must be connected to the switch's USB port.
Syntax:
copy running-config usb <filename
>
Uses the USB port to copy a designated configuration file from the switch to a USB flash memory device. For more information, see 'Multiple Configuration Files' in the Basic Operation Guide.
Example:
To copy the startup configuration file to a USB flash drive:
- Insert a USB device into the switch's USB port.
- Execute the following command:where
HP Switch-config
is the name given to the configuration file that is copied from the switch to the USB device.
USB: Copying a configuration file from a USB device (CLI)
To use this method, the switch must be connected via the USB port to a USB flash drive on which is stored the configuration file you want to copy. To execute the command, you will need to know the name of the file to copy.
Syntax:
Copies a configuration file from a USB device to the startup configuration file on the switch.
Example:
To copy a configuration file from a USB device to the switch:
- Insert a USB device into the switch's USB port.
- Execute the following command:where
HP Switch-config
is the name of the file to copy. - At the prompt, press [Enter] to reboot the switch and implement the newly downloaded software.
Then, when you get to the main menu, press Ctrl + Z on your terminal.
Now you should get to a prompt that has a couple of options.
From here, we want to launch the lcli application. When we have doneso, we will be asked to login.
Now we arrive at a VERY Cisco-ish console. It follows the Cisco commandset (mainly). Using a ? to view available options, we get:
You can use these commands to configure the switch, change portsettings, and gather information about the switch configuration.
You can go into configuration mode by simply using the configurecommand.
As you can see, everything looks VERY Cisco. For those familiar withsetting up Cisco switches, finding your way around this console mode inthe SRW2024 will be fairly easy - with only a few variations on the'Cisco method' of configuration. So, enjoy your no longer uselessserial, SSH, and telnet configuration of your SRW2024 switch and get themost out of this excellent piece of hardware! EDIT: Will add to this asI use the switch more via CLI.
Basic Reference Guide
Configure VLAN
1) Create the vlan in the database:
2) Add a switchport to the VLAN: untagged
tagged (Repeat for each allowed vlan)