Ccna Command With Explanation: Example
Ccna Command With Explanation: Example
IP ROUTING
Static Routing- Routers are manually configured for networks that are not directly
connected, to be able to route to all networks via the next-hop interface.
Default Routing- Used on stub networks only to send packets with remote
destination network not in the routing table to the next hop router.
RIP-A distance vector routing protocol that passes complete routing table
contents to neighbouring routers
Verifying RIP
1.Sh ip route
2.debug ip
Holding Down RIP Propagation-To stop RIP update sending but allow its
receipt -say for s0/0 with ip 192.168.10.0
(config)#router rip
(config-router)#network 192.168.10.0
(config-router)#passive-interface serial 0/0
Page 1
CCNA COMMAND WITH EXPLANATION
#router igrp 10
(config-router)#network 192.168.10.0
(config-router)#network 192.168.20.0
(config-router)#^z
Verifying IGRP
1.sh ip route
EIGRP-Uses classless routing which is subnet mask information sent with routing
protocol updates.
#router eigrp 20
(config-router)#network 192.168.10.0
(config-router)#network 192.168.20.0
(config-router)#^z
Page 2
CCNA COMMAND WITH EXPLANATION
(config-router)#no auto-summary
Verifying EIGRP
1.1. sh ip route- Shows entire routing table
1.2. sh ip route eigrp- Shows only EIGRP entries in the routing table
1.3. ip eigrp neighbours- Shows all EIGRP neighbours
1.4. ip eigrp topology- Shows entries in the EIGRP topology table
Example- Let 10.0.0.0 be the network directly connected to the router upon which
OSPF is to be enabled; with ospf ID of 1 and area o
(config)#router ospf 1
Loopback Interface- They are configured to be used as the routers RID to advertise the
routes and elect DR and BDR.
Page 3
CCNA COMMAND WITH EXPLANATION
>en #config t
(config)#vlan 2 name Cisco
(config)#vlan 3 name Microsoft
(config)#vlan 4 name Comptia
(config)#exit
Page 4
CCNA COMMAND WITH EXPLANATION
>en
#vlan database
(vlan)#vlan 2 name Cisco
(vlan)#vlan 3 name Microsoft
(vlan)#vlan 4 name
Comptia (vlan)#apply
(vlan)#^c
(config)#int e0/2
(config-if)#vlan-membership static 2
(config-if)#int e0/3
(config-if)#vlan-membership static 3
(config-if)#exit
(config)#int f0/2
(config-if)#switchport access vlan 2
(config-if)#int f0/3
(config-t)#switchport access vlan 3
(config-if)#int f0/4
(config-if)#switchport access vlan 4
(config-if)#verify with sh vlan brief
(config)#int f0/26
(config-if)#trunk on
(config)#int f0/12
(config-if)#switchport mode trunk
(config-if)#^z
To disable Trunk use- switchport mode access
To verify Trunking use sh running config
Configuring Inter-vlan Routing for 1900 connecting to 2600
(config)#int f0/0.1
(config-if)#encapsulation isl vlan (d number)
Configuring Inter-vlan Routing for 2950 connecting to 2600
(config)#int f0/0.1
(config-if)#encapsulation dot1q vlan (d number)
Page 5
CCNA COMMAND WITH EXPLANATION
Recovering Passwords
Page 6
CCNA COMMAND WITH EXPLANATION
information Router#config t
Router(config)#cdp timer 90
Router(config)#cdp holdtime 240
Router(config)#^z
Using Telnet
kenn2509#telnet 172.16.10.2
Page 7
CCNA COMMAND WITH EXPLANATION
Resolving Hostname
kenn2509#config t
kenn2509(config)#ip host 2501B 172.16.10.2
kenn2509(config)#ip host 1900switch 192.168.0.148
kenn2509(config)#^z
Using Traceroute
command #trace
2501B
Page 8
CCNA COMMAND WITH EXPLANATION
Page 9