Mar
8

Summary and archiving of the major differences between models of the main configuration and I hope to share with everyone!!

########################## ################################################## ##############

1900 basic configuration:

Switch (config) # hostname1900

Switch (config) # enablepasswordlevel1-15 password (the user EXEC level is 1 to privilege EXEC level 15)

Switch (config) # enablesecretquansheng

Switch (config) # lineconsole0

Switch (config-line) # passwordquansheng

Switch (config) # linevty015 ( To telnet password)

Switch (config-line) # passwordquansheng

Switch (config-line) # login

1900IP address: (with the 2950 difference: 1900 into the interface mode 2950 into the VLAN)

Switch (config) # interfacee0 / 1

Switch (config-if) # ipaddress192.168.0.10255.255.255.0

Switch (config-if) # noshutdown

Switch (config - if) # exit

Switch (config) # ipdefault-gateway192.168.0.1

1900vlanvtp configuration:

1900 (config) # vtpdomain domain name (must have)

1900 (config) # vtpserver | client | transparent (set the switch to the server | client | transparent, enabled by default server)

1900 (config) # vtppassword password (set a password, send VTP messages with other switches match)

1900 ( config) # vtppruningenable | disable (enabled by default trimming)

1900 (config) # vtptrapenable | disalbe (trap is enabled by default)

1900 Relay Configuration:

1900 (config) # interfacef0 / 1

1900 (config-if) # trunkon | off | desirable | auto (remember the 1900 supports ISL trunking, showtrunkA | B, Interface A refers to f0/26, B refers to f0/27)

1900VLAN configuration :

1900 (config) # vlan [2-64] nameVLAN name

1900 (config) # ineterfacef0 / 1

1900 (config-if) # vlan-membershipstatic2 (distribution of the interface VLAN belongs No.)

1900 # showvlan (see VLAN configuration information)

1900 # showvlan-membership

1900 # showspantree1 (See DTP information)

########## ################################################## ################################

2950vlanvtp configuration:

2950 # vlandatabase (with 1900 different of the Department, must enter privileged EXEC mode)

2950 (vlan) # vtpdomain domain name (must have)

2950 (vlan) # vtpserver | client | transparent (set the switch to the server | client | transparent, the default enable the server)

2950 (vlan) # vtppassword password (set a password, send VTP messages with other switches match)

2950 (vlan) # vtppruning (disabled by default)

2950 (vlan) # abort (disabled by default)

or

2950 (vlan) # exit

2950 # configureterminal

2950 (config) # snmp-serverenabletrapsvtp

2950 # showvtpstutus (See VTP status information )

2950 # showvtpcounters (send and receive messages display VTP statistics)

2950 (config) # switchporttrunkpruningvlanremove2-4, 6,8 (comma-separated discrete VLANID, during which without spaces, with ID shows a short-range

. such as to remove VLAN2, 3,4,6 and 8)

2950 Relay configuration: (2950 All ports support trunking)

2950 (config) # interfacetype0 / 1

2950 (config-if) # switchportmodetrunk | dynamicdesirable | dynamicauto | nonegotiate

2950 (config-if) # switchporttrunk [nativevlanvlan_ #]

2950 # showinterfacef0/1switchport | trunk (see relay configuration)

2950 # showinterfacestrunk

2950VLAN configure:

2950 # vlandatabase

2950 (config) # vlan2name [vlan name]

2950 (config) # interfacef0 / 1 (for the interface to the allocation of their respective VLAN ID)

2950 (config-if) # switchportmodeaccess

2950 (config-if) # switchportaccessvlan2

2950IP address:

Switch (config) # interfacevlan1

Switch (config-vlan) # ipaddress192.168.0.10255.255.255.0

Switch (config-vlan) # exit

Switch (config) # ipdefault-gateway192.168.0.1 </P “################################################# ###########################################

2600 router, the basic Configuration:

Router (config) # lineconsole0

Router (config-line) # passwordquansheng

Router (config) # lineaux0

Router (config-line) # passwordquansheng

Router (config) # linevty04

Router (config-line) # login

Router (config-line) # passwordquansheng

Router (config) # bannermotd $ contents $

Router (config ) # bannermotd 'content'

Router (config) # lineconsole0

Router (config-line) # exec-timeout00 (disable terminal timeout, default 10 minutes)

Router (config-if ) # description description of the contents

Router (config) # interfacef0 / 1

Router (config-if) # media-type type (aui, 10baset, 100baset and mii)

Router (config-if ) # speed10 | 100 | auto

Router (config-if) # nohalf-duplex

Router # showcontrollerserial0 / 1 (see serial port types: DCE, DTE, in order to DCE transmission rate as a standard)

Router (config) # interfaces0 / 1

Router (config-if) # clockrate64000

(1200,2400,4800,9600,19200,38400,56000,64000,72000,125000,148000,500000, 800000,1000000,1300000,2000000,4000000)

Router (config-if) # bandwidth56 (default 1554kbit / s)

Router (config) # interfacef0 / 0

Router (config-if) # [no] ipdirected-broadcast (directed broadcast is enabled)

Router (config) # iphost [name_of_host] [tcp-port] [ip1_address] [ip2_address]

Router (config) # ipname-server [ip1_address_DNS_server ] [ip1_address_DNS_server]

Router (config) # noipdomain-lookup (Disable DNS query)

CDP configuration:

Router (config) # interfacef0 / 1

Router (config-if) # [no] cdpenable

Router # showcdp

Router # showcdpinterface

Router # showcdpneighbors

Router # showcdpneighborsdetail (see detailed list)

Router # showcdpentry [neighbors-name]

Router # showcdptraffic (see CDP flow)

1. Password Recovery

1. in the configuration mode changes to register

Router (config) # config-register0×2142 (modified register value) ” / P> 2. in the ROMMonitor mode change register and to restore passwords

a. Restart the router, press CTRL-BREAK to enter ROMMON mode

b.rommon5> confreg0×2142 or> o/r0×2142 (2500 router does not Support confreg), (to skip the NVRAM configuration information)

c.Router # configmemory (restore NVRAM)

d.Router (config) # enablesecretsisco (reset the password)

e.Router (config) # config-register0×2102 (restore register values)

f.Router # copyrunning-configstartup-config (Save Configuration)

2, disaster recovery

1.rommon1> tftpdnld

2.rommon2> IP_ADDRESS192.168.18.10 (set the IP address for the local router)

3.rommon3> IP_SUBNET_MASK = 255.255.255.0DEFAULT_GATEWAY = 192.168.18.1

4.rommon4> TFTP_SERVER = 192.168.18.11 (designated TFTPIP address)

5.rommon5> TFTP_FILE = c2600-is-mz.121-26.bin (specify the name of the downloaded IOS system image)

6.rommon6> TFTPdnld (official download)

Leave Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.