Requirements.
STEP1:.Cisco Switch
STEP2: A. cisco-rollover-cable
or
STEP2: B.usb-to-serial-adapter-with-console-cable
or
STEP2:C. Usb-to-serial-cable
STEP3: Laptop or Computer
STEP4: Connect-to-Switch
or
After connection it Display for Example:
STEP5: Connect to the device via console
Use a terminal emulation software such as PuTTY and connect to the console of the switch. You will get the initial command prompt “Switch>”
Type “enable” and hit enter. You will get into privileged mode (“Switch#”)
Now, get into Global Configuration Mode:
Switch# configure terminal
Switch(config)#
STEP6: Set the system time using the clock set command in privileged EXEC mode.
Switch# clock set 20:09:01 3 Apr 2006
STEP7: Verify the change by entering the show clock command.
Switch(config)#
STEP6: Set the system time using the clock set command in privileged EXEC mode.
Switch# clock set 20:09:01 3 Apr 2006
STEP7: Verify the change by entering the show clock command.
access-switch1# show clock 20:09:06.079 UTC Thu Apr 3 2006configurationMode.Switch# configure terminal
STEP8: Enter the configure terminal command to enter global
Enter configuration commands, one per line. End with CNTL/Z
Switch(config)#
STEP9: Set up a hostname for the particular switch to distinguish it in the network
Switch(config)# hostname access-switch1 access-switch1(config)# Configure the system prompt for the switch, and press Return. To remove the new prompt and return the prompt to its default, use the no promptcommand.
access-switch1(config)# prompt Switch1>
STEP10: Configure an administration password (enable secret password)
access-switch1(config)# enable secret somestrongpass STEP11: Configure a password for Telnet access
access-switch1(config)# line vty 0 15
access-switch1(config-line)# password strongtelnetpass
access-switch1(config-line)# login
access-switch1(config-line)# exit
access-switch1(config)#
access-switch1(config-line)# login
access-switch1(config-line)# exit
access-switch1(config)#
STEP12: Define which IP addresses are allowed to access the switch via Telnet
access-switch1(config)# ip access-list standard TELNET-ACCESS
access-switch1(config-std-nacl)# permit 10.1.1.100
access-switch1(config-std-nacl)# permit 10.1.1.101
access-switch1(config-std-nacl)# exit
access-switch1(config-std-nacl)# permit 10.1.1.100
access-switch1(config-std-nacl)# permit 10.1.1.101
access-switch1(config-std-nacl)# exit
!Apply the access list to Telnet VTY Lines
access-switch1(config)# line vty 0 15
access-switch1(config-line)# access-class TELNET-ACCESS in
access-switch1(config-line)# exit
access-switch1(config)#
access-switch1(config)# line vty 0 15
access-switch1(config-line)# access-class TELNET-ACCESS in
access-switch1(config-line)# exit
access-switch1(config)#
STEP13: Assign IP address to the switch for management
!Management IP is assigned to Vlan 1 by default
access-switch1(config)# interface vlan 1
access-switch1(config-if)# ip address 10.1.1.200 255.255.255.0
access-switch1(config-if)# exit
access-switch1(config)#
access-switch1(config)# interface vlan 1
access-switch1(config-if)# ip address 10.1.1.200 255.255.255.0
access-switch1(config-if)# exit
access-switch1(config)#
STEP14: Assign default gateway to the switch
access-switch1(config)# IP default-gateway 10.1.1.254
STEP15: Disable unneeded ports on the switch
! This step is optional but enhances security
! Assume that we have a 48-port switch and we don’t need ports 25 to 48
! Assume that we have a 48-port switch and we don’t need ports 25 to 48
access-switch1(config)# interface range fe 0/25-48
access-switch1(config-if-range)# shutdown
access-switch1(config-if-range)# exit
access-switch1(config)#
access-switch1(config-if-range)# shutdown
access-switch1(config-if-range)# exit
access-switch1(config)#
STEP16: Save the configuration
access-switch1(config)# wr
For Beginner's
access-switch1(config)# wr
For Beginner's
Full Config
Reset Switch
enable
config terminal
do show vlan
### create vlan
vlan 2
name ansari
do show vlan
### assign port 1 and 2 to vlan 2
interface fastethernet 0/1
switchport mode ?
switchport mode access
switchport access vlan 2
interface fastethernet 0/1
switchport mode access
switchport access vlan 2
End with CNTL/Z.
vlan 3
name sales
interface range fastethernet 0/3 - 24
switchport mode access
switchport access vlan 3
End with CNTL/Z.
#### for gigabit ethernet
interface gigabitethernet 0/1
switchport mode access
switchport access vlan 4
### to delete vlan 2
no vlan 2
#### make 24 port to trunk
show interfaces trunk
## or
do show interface fastethernet 0/24 switchport
enable
config terminal
interface fastethernet 0/24
switchport trunk encapsulation dot1q
switchport mode trunk
no shut
do show interface fastethernet 0/24 switchport
###or
show interface fastethernet 0/24 switchport
wr
exit
0 comments:
Post a Comment