level 1
大麦穗520
楼主
Clearing Configuration Inforamtion
You can clear the configruation infromation from the startup configruation. If you reboot the switch with no startup configuration, the switch enters the setup program so that you can reconfigure the switch with all new settings.
Clearing the Startup Configuration File
To clear the contents of your statup configurtaion.use the erase nvram: or erase statup-config privileged EXEC command.
Deleting a Stored Configruation File
To delete a saved configuration from flash memeory,use the delete flash: filename privileged EXEC command. Depending on the setting of the file prompt global configuration command. you might be prompted for configuration before you delete a file.By default, the switch prompts for configuration on destructive file operations. For more iformation about the file prompt command.see the cisco ios command reference for release 12.2
switch# erase startup-config
switch# erase nvram
switch# delete vlan.dat
switch(config)#service password-encryption
(optional) Encrypt the password when the password is defined or when the configuration is written.
Encryption prevents the password from being readable in the configuration file.
switch(config)#enable secret
switch(config)#eanble password
switch(config)# username name [privilege level] {password encryption-type password}
Enter the username, privilege level, and passowrd for each user.
For name, specify the user ID as one word, Spaces and quotation marks are not allowed.
(optional) For level, specify the privilege level the suer has after gaining access.The range is 0 to 15.Level 15 give privileged EXEC mode access.Level 1 gives user EXEC mode access.
For encryption-type ,enter 0 to specify that an unencrypted password will follow, Enter 7 to specify that a hidden password will follow.
For password,specify the password the user must enter to gain access to the switch.The password must be from 1 to 25 characters,can contain embeded spaces,and must be the last option specified in the username command.
switch(config)# ip routing
switch(config)# ip subnet-zero
system mtu routing bytes
(optional) Change the system MTU for routed prots.The range is 1500 to the system MTU value.the maximum MTU that can be routed for all ports.
Although larger packets can be accepted. they cannot be routed.
no aaa new-model
To disable AAA,use the no aaa new-modul global configure command.To disable AAA authentication, use the no aaa authenication login {default | list-name} method1 [ method2..] global
confgiuration command.To either disable TACACS+ authentication for logins or to return to the default vlaue. use the no login authentication {default |list-name } line configuration command.
switch(cofig)# hostname xxx
switch# configure termianl
switch(config)# interface fasterthernet 0/1
switch(config-if)#no switchport
2011年05月18日 02点05分
1
You can clear the configruation infromation from the startup configruation. If you reboot the switch with no startup configuration, the switch enters the setup program so that you can reconfigure the switch with all new settings.
Clearing the Startup Configuration File
To clear the contents of your statup configurtaion.use the erase nvram: or erase statup-config privileged EXEC command.
Deleting a Stored Configruation File
To delete a saved configuration from flash memeory,use the delete flash: filename privileged EXEC command. Depending on the setting of the file prompt global configuration command. you might be prompted for configuration before you delete a file.By default, the switch prompts for configuration on destructive file operations. For more iformation about the file prompt command.see the cisco ios command reference for release 12.2
switch# erase startup-config
switch# erase nvram
switch# delete vlan.dat
switch(config)#service password-encryption
(optional) Encrypt the password when the password is defined or when the configuration is written.
Encryption prevents the password from being readable in the configuration file.
switch(config)#enable secret
switch(config)#eanble password
switch(config)# username name [privilege level] {password encryption-type password}
Enter the username, privilege level, and passowrd for each user.
For name, specify the user ID as one word, Spaces and quotation marks are not allowed.
(optional) For level, specify the privilege level the suer has after gaining access.The range is 0 to 15.Level 15 give privileged EXEC mode access.Level 1 gives user EXEC mode access.
For encryption-type ,enter 0 to specify that an unencrypted password will follow, Enter 7 to specify that a hidden password will follow.
For password,specify the password the user must enter to gain access to the switch.The password must be from 1 to 25 characters,can contain embeded spaces,and must be the last option specified in the username command.
switch(config)# ip routing
switch(config)# ip subnet-zero
system mtu routing bytes
(optional) Change the system MTU for routed prots.The range is 1500 to the system MTU value.the maximum MTU that can be routed for all ports.
Although larger packets can be accepted. they cannot be routed.
no aaa new-model
To disable AAA,use the no aaa new-modul global configure command.To disable AAA authentication, use the no aaa authenication login {default | list-name} method1 [ method2..] global
confgiuration command.To either disable TACACS+ authentication for logins or to return to the default vlaue. use the no login authentication {default |list-name } line configuration command.
switch(cofig)# hostname xxx
switch# configure termianl
switch(config)# interface fasterthernet 0/1
switch(config-if)#no switchport