4-11
Catalyst 2940 Switch Software Configuration Guide
78-15507-02
Chapter4 Assigning the Switch IP Address and Default Gateway Checking and Saving the Running Configuration
no ip route-cache
!
ip default-gateway 172.20.139.129
ip http server
!
ip access-list extended CMP-NAT-ACL
dynamic Cluster-HSRP deny ip any any
dynamic Cluster-NAT permit ip any any
!
access-list 111 permit tcp any any neq telnet
!
line con 0
exec-timeout 0 0
password password
login
speed 115200
line vty 0 4
exec-timeout 0 0
password password
login
line vty 5 15
exec-timeout 0 0
password password
login
!
!
monitor session 1 source interface Fa0/6
mac-address-table aging-time 90
end
To store the configuration or changes you have made to your startup configuration in Flash memory, enter this privileged EXEC command:
Switch# copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
This command saves the configuration settings that you made. If you fail to do this, your configuration will be lost the next time you reload the system. To display information stored in the NVRAM section of Flash memory, use the show startup-config or more startup-config privileged EXEC command.