.
.

Managing the Startup Configuration file

Managing the Startup configuration file on Cisco Switch and setting MAC address table



Managing the Startup configuration file

Host1 C:\> ping 192.168.1.2
Host1 C:\>ipconfig
Switch#enable
Switch#class (password)

Switch#show flash (display Flash on Switch)
Switch#show startup-config (display startup configuration on Switch)
Switch#copy running-config startup-config (copy the currently running configuration in NVRAM for the starting configuration of the Switch)

Switch#copy startup-config tftp (command copies the startup configuration file on a TFTP server)
Address or name of remote host[]?192.168.1.3 (IP address TFTP server)
Destination file name[switch-config]? switch-config + Enter (enter the name of file [destination] that we're shooting on a TFTP server)

Switch#copy tftp startup-config (copy the startup configuration file from the TFTP server)
Address or name of remote host[]?192.168.1.3[/b] (IP address TFTP server)
Source file name[]?tftp (source for file destination)
Destination file name[]?switch-config + Enter (name file for destination)


MAC address on Switch


Host1 C:\> ping 192.168.1.2
Host1 C:\>ipconfig
Switch#enable
Switch#class (password)

Switch#show mac-address-table (display MAC address table)

Switch#configure terminal (entry in global config mode)
Switch(config)#mac-address-table static 00e0.2917.1884 vlan 1 interface fastethernet 0/4 (setting a static MAC address on Fast Ethernet 0/4 in VLAN 1)
Switch#exit

Switch#show mac-address-table
Switch#show running-config

Switch#configure terminal
Switch(config)#interface fastethernet 0/4 (entry in config mode FA 0/4)
Switch(config-if)#switchport port-security (activate port security)
Switch(config-if)#exit
Switch(config)#exit

Switch#show mac-address-table
Switch#clear mac-address-table

Switch#configure terminal
Switch(config)#interface fastethernet 0/4 (entry in config mode FA 0/4)
Switch(config-if)#switchport port-security maximum 1 (sets port security on MAX MAC COUNT 1)
Switch(config-if)#exit
Switch(config)#exit
Switch#show mac-address-table
Switch#clear mac-address-table
Switch#show mac-address-table

Switch#configure terminal
Switch(config)#interface fastethernet 0/4
Switch(config-if)#no switchport port-security (de-activate port security)
Switch(config-if)#exit
Switch(config)#interface fastethernet 0/8 (entry in config mode FA 0/8)
Switch(config-if)#switchport port-security maximum 1 (sets port security on MAX MAC COUNT 1)
Switch(config-if)#exit
Switch(config)#exit

Switch#show mac-address-table
Switch#clear mac-address-table
Switch#show mac-address-table