Some important switching Topics
- Establish a console connection to a switch
- Configure the hostname and VLAN 99
- Set the switch default gateway.
- Configure IP connectivity on S1 using VLAN 99
- Configure the clock using Help
- Configure passwords and console/Telnet access
- Configure the login banner
- Manage the MAC address table
- Configure port security
- Manage the switch configuration file
- EtherChanel Modes, configuration of EtherChannel
- Recovering Automatically from Error-Disabled Ports - Cisco Switch
- Storm control Configuration
- Configuring VLAN Trunking Protocol on Cisco Switch
- Switch Configuration and Switch Troubleshooting Commands list
Now we start the switch configuration by connecting switch to console
Establish a console connection to a
switch
Step
1. Connect a console cable to S1.
For this activity, direct access to S1 Config and CLI tabs is disabled. You must establish a console session through PC1. Connect a console cable from PC10 to S1.
Step 2. Establish a terminal session. From PC10, open a terminal window and use the default terminal configuration. You should now have access to the CLI for S1.
Configure the hostname and VLAN 99
Hostname Configuration
Switch>
Switch>enable
Switch#configure
Switch(config)#hostname S1
S1(config)#exit
S1#write
Create A VLAN
S1(config)#interface fastethernet 0/1
S1(config-if)#switchport access vlan 99
S1(config-if)#switchport mode access
Set
the switch default gateway.
S1(config)#ip default-gateway 192.168.1.100
Configure IP connectivity on S1 using VLAN 99
S1(config)#interface vlan 99
S1(config-if)#ip address 192.168.1.1 255.255.255.0
S1(config-if)#no shutdown
Configure the clock using Help
S1#show clock
*0:23:10.172 UTC
Mon Mar 1 1993
Setting up Time
S1#clock ?
set Set the time and date
S1#clock set ?
hh:mm:ss Current Time
S1#clock set 12:10:05
S1#clock set 12:10:05 ?
<1-31> Day of the month
MONTH Month of the
year
S1#clock set 12:10:05 feb 11 2021
Configure passwords and console/Telnet
access
Step 1 Configure the privileged EXEC password.
S1>
S1>enable
S1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
S1(config)#enable password pass123
Step 2 Configure the passwords for console and Telnet.
Console
S1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
S1#configure
S1(config)#line console 0
S1(config-line)#password 123
S1(config-line)#login
S1(config-line)#exit
S1(config)#
Telnet.
S1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
S1(config)#line vty 0 5
S1(config-line)#password 123techxio
S1(config-line)#login
S1(config-line)#exit
Configure the login banner
Types of
Banner in Cisco Switch
1. MOTD
Banner
2. Login
Banner
3. Exec Banner
Configuring MODT
S1#configure
S1#configure terminal
S1(config)#banner motd ?
LINE c banner-text c, where 'c' is a delimiting character
Enter TEXT message. End with the character 'w'.
S1(config)#banner motd welcome to techxio.com router
banner motd 'welcome to techxio.com switch'
Solve a mismatch between duplex and
speed
S1#configure
terminal
S1(config)#interface
fastethernet 0/20
S1(config-if)#speed
100
S1(config-if)#duplex
full
S1(config-if)#end
Verify the
new duplex and speed settings on the Fast Ethernet interface.
S1#show interface fastethernet 0/20
Manage the MAC address table
Determine
the MAC addresses that the switch has learned.
Display
the MAC addresses using the show mac-address-table command in privileged
EXEC mode.
S1#show mac-address-table
List
the show mac-address-table options.
S1#show
mac-address-table ?
Show only
the MAC addresses from the table that were learned dynamically.
S1#show mac-address-table address <PC1 MAC here>
Clear
the MAC address table.
S1#clear
mac-address-table dynamic
Set up a static MAC address.
S1(config)#mac-address-table static 00e0.2917.1884 interface fastethernet 0/20 vlan 99
Remove
the static MAC entry.
S1(config)#no
mac-address-table static 00e0.2917.1884 interface fastethernet 0/20 vlan 99
Switch Mac table configuration+Switchport Securty pdf download
Configure
port security
List the port security options.
S1#configure terminal
S1(config)#interface fastEthernet 0/10
S1(config-if)#switchport port-security ?
mac-address Secure mac address
maximum Max secure addresses
violation Security violation mode
Now configure
Allow only
one MAC address.
S1(config-if)#switchport port-security
mac-address 48 bit mac address
S1(config-if)#switchport port-security
violation shutdown
Or
Allow
Maximum mac address can learn
S1(config-if)#switchport port-security maximum
10
S1(config-if)#switchport port-security
violation shutdown
(Set the port to shut down if there is a
security violation.)
Verifying
S1#show port-security
Secure
unused ports
Step 1. Disable
all unused ports on S1.
(Shutdown)
Disable all ports that are currently not used on S1.
Manage
the switch configuration file
Step
1. Save the current configuration to NVRAM for
R1.
Step 2. Back
up the startup configuration files for S1 to Server(TFTP).
S1#copy running-config tftp:
Address
or name of remote host []? 10.10.15.171
Destination filename [ce_2-confg]? backup_cfg_for_my_router !!
1030
bytes copied in 2.489 secs (395 bytes/sec)
S1#
Storm control Configuration
Storm control prevents LAN interfaces
from being disrupted by a broadcast storm. A broadcast storm occurs when
broadcast packets flood the subnet, creating excessive traffic and degrading
network performance.
Enabling Broadcast Storm Control
S1>
S1>enable
S1#configure
terminal
S1(config)#interface
fastEthernet 0/1
S1(config-if)#storm-control
broadcast level ?
<0.0-100.0>
Enter rising threshold
S1(config-if)#storm-control broadcast level 50
S1(config-if)#storm-control
?
broadcast
Broadcast address storm control
S1(config-if)#storm-control
broadcast ?
level Set
storm suppression level on this interface
Specifies the action to be
taken when a storm is detected.
S1(config-if)# storm-control action
{shutdown | trap}
S1(config-if)#exit
S1(config)#exit
S1#
S1#write
Building
configuration...
[OK]
S1#
EtherChanel Modes, configuration of EtherChannel
An EtherChannel is a layer 2 solution that allows you to aggregate multiple layer 2 Ethernet-based connections between directly connected devices. Basically, an EtherChannel bundles together multiple Ethernet ports between devices, providing what appears to be single logical interface. From STP's perspective, it sees the EtherChannel as a single logical connection between the connected devices, which means chat you can actually use all of the individual connections, simultaneously, in the channel you've created.
Recovering Automatically from Error-Disabled Ports - Cisco Switch
Basic Cisco
Switch Configuration step by step
Configuring
VLAN Trunking Protocol on Cisco Switch
Configuring
Static VLAN on Cisco Switch
How Easily
Manage Cisco Switch?
Switch Mac
table configuration+Switchport Securty pdf download
How to
Troubleshooting Network Switching Issues
No comments:
Post a Comment