Cisco some basic commands

Source: Internet
Author: User

>en User mode
#conf T Privileged mode
(config) #int f0/0 global mode
(config-if) # interface mode
#disable →>
(config) #hostname name to modify host name

Switch (config) #vlan vlan-number partition VLAN
Switch (CONFIG-VL) #name vlan-name VLAN naming
Switch (config) #int range f0/1-5 simultaneously into f0/1-5 port

Switch (Config-if-range) #switchport mode access to set the port as an access link
Switch (config-if-range) #switchport Access VLAN 2 joins the port to the Vlan2
Switch (config-if-range) #switchport mode trunk to set the port as a trunk link
Switch (config-if-range) #channel-group 1 mode on to bundle several ports into an Ethernet channel 1

Switch (config) to set the VTP name #vtp domain vtp-name
Switch (config) #vtp password Vtp-password to set the VTP password
Switch (config) #vtp mode server|client set to VTP server | client
Switch (config) #ip default-gateway default gateway to set the switches default gateway
(config) #enable secret pwd1 set privileged mode password (ciphertext)
(config) #enable password pwd1 set privileged mode password (clear text)
(config) #service password-encryption encryption of plaintext passwords
(config-if) Set IP address #ip address IP address Subnet mask (the IP address of the switch can only be set on the virtual port VLAN)
(config-if) #no shutdown manually Open ports
(config) #line vty 0 4 Open 0~4 port (total 5)
(config) #password Vty-password set vty password
(config) #login turn on login mode
(config) #line console 0 into the configuration port
(config) #password con-password set configuration port password
(config) #login turn on login mode
vty when remote access is required
The console needs to configure the device directly with the configuration line
Router (config) #ip route target subnet mask IP address | port number num SET static route
Router (config) #ip Route 192.168.6.0 255.255.255.0 F0/1
The IP address points to the next router (the IP address of the next router's receiving port)
Port numbers refer to their own ports (exits of the current router)
Num value 1~255 The smaller the number, the higher the priority
Target network segment cannot be a specific IP address (192.168.10.0 2.0.0.0)

Router (config) #ip DHCP pool dhcp-name set DHCP and name
Router (dhcp-config) set address pool #network assigned mesh mask
Allocated network segment (192.168.5.0 6.0.0.0)
Router (dhcp-config) #default-router default gateway DHCP-assigned default gateway
Router (config) #int F 0/0.1 Enter the sub-port
f0/0.1 refers to the first sub-port of a f0/0
f0/1.2 refers to the second sub-port of a F0/1
Router (config-subif) #en do vlan-number port bound to VLAN
Router (config-subif) #en do 2 port bound to Vlan2

Telnet destination IP address remote access device on PC
#reload restart during normal use
#show running-config View Run-time configuration
#show Startup-config View the saved configuration
(config) View the front +do #do show running-config Other modes

#copy Running-config Startup-config to save the current configuration to NVRAM
#write Save runtime Configuration (effect same as above)
#copy startup-config running-config Overwrite current configuration with NVRAM

#erase nvram: Deleting a saved configuration

#copy tftp flash to download the system from the TFTP server to the router
#copy Flash tftp to upload the system from the router to the server
(config) #ip ftp username s1t120 to set the FTP username on the router
(config) #ip ftp password s1t120 to set the FTP password on the router

Rommon 1 > tftpdnld (Download)
Rommon 2 > ip_address=1.1.1.1 Set the IP address of the router
Rommon 3 > ip_subnet_mask=255.0.0.0 set subnet mask for routers
Rommon 4 > default_gateway=1.2.2.2 Set the router's default gateway (TFTP IP address)
Rommon 5 > tftp_server=1.2.2.2 Set the IP address of the original location of the download system (TFTP IP address)
Rommon 6 > Tftp_file=c1841-ipbasek9-mz.124-12.bin Set the file name to download
Rommon 7 > Tftpdnld

wish to continue? y/n: [n]: Y enter Y to continue
Rommon 8 > Reset Restart









Cisco some basic commands

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.