Cisco Switch Configuration
Cisco Switch Configuration
255.255.0.0
Password ###########
Login
Line vty 0 4 (number from 0-15, this tell the number of person telnet
that can telnet in to the switch simultaneously
Password ###########
Login
Interface fa0/3
Inter vlan 1
Interface F0/2
SSH
Login local
Trunking Vlan
Switchport mode Dynamic Auto If one interface is set as dynamic desirable, both
interfaces will become trunk.
Enter the interface used for trunk
If both interfaces are set to dynamic they will do
nothing.
Switchport nonegotiate It is not a trunk and not negotiating
Enter the interface used for trunk
Vtp version <1/2> If one switch is set is vtp server any vlan created
on that switch will be replicated to the ones
Vtp mode <server/client/transparent>
configure as vtp client
Vtp domain name <domain name>
Configuration revision
Configuration steps
Switch name
Banner
Console password
telnet password
Management IP on vlan I
Creating vlan
Router
Service password-encryption Encrypting Cisco password
Default route
Ip route 0.0.0.0 0.0.0.0 192.168.0.1 Subnet should be zero and the neXt hop ip
address should be given
Router rip When you use rip with same subnet, it only
shows the classfull / default address
No auto-summary
Making sure all subnets are seen
Interface g0/0.20
OSPF
Router ospf 1 (ospf priority from 1 - 6000) Please not device sent there Link State
Advertisement (LSA) to the DR and the Dr
Network 192.168.10.0 0.0.0.255 area 0 (widecat mask)
broadcast it to all other routers in the area
Network 1.1.1.1 0.0.0.0 area 0 ( router ID)
The highest Router ID become the DR.
Multiarea OSPF
Router ospf 1 (ospf priority from 1 - 6000) You have to configure each interface ip
address in a specific area.
Network 192.168.10.2 0.0.0.0 area 5 (widecat mask)
Passive-interface default
● EIGRP
NO Authentication Authentication
RIP Timer
Update timer 30 s Exchanging of routing table after 30 s
Flush timer 240 s After 240s network is deleted frm routing table
Do not sent RIP update for route on int which it was It the network breaks, increase the Hop
learned. count to 16, which means it is inaccessible.
(this is enable by default)
(this is enable by default)
Static Routing
Any traffic going to network 4 should go through R2g0/0 (ip address) Router1
Any traffic going to network 4 should go through R3g0/0 (ip address) Router2
Any traffic going to network 1 should go through R2g0/1 (ip address) Router3
Any traffic going to network 1 should go through R1g0/1 (ip address) Router2
RIP
Define all the connected networks Router rip
Ver 2
Net.
When configuring a network with more than one area, there should be an 2
Area Boder Router that router should be in are areas.
Adjacent Database
Neighbor Tabel
Link State Database
Forwarding Database
Routing Table
Troubleshooting Command
Switch Router
Sh ip int br Sh ip int br
Sh vlan Sh int g0/0
Sh running-conf Sh ip route
Sh mac address-table Sh ip protocol
Sh int trunk Sh running-configure
Debug ip rip
Sh ip ospf neighbor
Sh ip ospf
Sh ip ospf interface
Sh ip ospf database
Clear ip ospf process (if neighbors. Is formed
and routing table is not getting updated)
Management
Switch Router
Configure Management IP in the same subnet Configure telnet
Configure telnet And use the router interface IP to telnet.