Ccna Ios Commands
Ccna Ios Commands
Ccna Ios Commands
Basic Configuration
R1 (config) # no ip domain-lookup
R1 # show history
Router Security
Privilege EXEC mode password :- R1 (config) # enable password [password] (no encryption)
R1 (config) # enable password cisco
Standard ACL: [1-99] [1300-1999] implemented close to the destination of the traffic
Dumidu Darshika Senanayake
Page 2 of 17
Cisco IOS Commands
R1 (config) # access-list [ACL no.] [permit / deny] [source ip add.] [wildcard mask]
R1 (config) # access-list 10 deny 192.168.10.0 0.0.0.255
R1 (config) # access-list [ACL no.] [permit / deny] [protocol] [source network add. wildcard
mask] [destination network add. wildcard mask] eq [service]
R1 (config) # access-list 110 deny tcp 192.168.10.0 0.0.0.255 any eq telnet
R1 # show access-lists
Configuring Interfaces
Configure Ethernet Ports :-
Modify a link
Bandwidth R1 (config-if) # bandwidth [Kilobits]
R1 (config-if) # bandwidth 1544 R1 (config-if) # no bandwidth
Static Route :-
AD = 1
R1 (config) # ip route [network add.] [subnet mask] [next hop IP add. / exit interface]
Dumidu Darshika Senanayake
Page 4 of 17
Cisco IOS Commands
Simple Authentication :-
enables authentication for all the interfaces in area 0
R1 (config-router) # area 0 authentication
R1 # show ip ospf
R1 # show ip ospf interface
R1 # show ip ospf neighbor
R1 # clear ip ospf process
R1 # show ip route
R1 # show ip protocol
R1 # debug ip routing
WAN Configuration
WAN configuration only performed on serial interfaces.
Authentication:-
R1 (config) # username [remote-host] password [remote-password]
R1 (config) # username R2 password cisco123
Frame Relay
no frame-relay inverse-arp
no ip split-horizon
DHCP Relay
Dynamic NAT (Public address range from ISP 209.165.200.11 209.165.200.20 /24)
Step1: define a named address pool of outside addresses
R1 (config) # ip nat pool [name] [ip range] netmask [mask]
R1 (config) # ip nat pool NAT1 209.165.200.11 209.165.200.20 netmask 255.255.255.0
R1 # debug ip nat
IPv6
2002:c0a8:0101:0000:0000:0000:0000:0042 2002:c0a8:101::42
c2960-lanbase-mz.122-25.SEE1.bin
c1841-ipbase-mz.123-14.T7.bin
c1841-ipbasek9-mz.124-12.bin
Platform: Cisco 2960 Cisco 1841 Cisco 1841
Feature set: lan base ip base ip base k9
File format: m (runs in RAM)
z (compressed)
Version: 12.2 (25) SEE1 12.3 (14) T7 12.4 (12)
File extinction: binary executable
Configuring Interfaces
S1 # show vlan
S1 # show vlan brief
S1 # show spanning-tree
S1 # show spanning-tree active
S1 # show spanning-tree vlan 10
S1 # show mac-address-table
S1 # show port-security
S1 # show port-security interface f0/18
S1 # show port-security address
This example shows how to configure an EtherChannel on a single switch in the stack. It assigns two
ports as static-access ports in VLAN 10 to channel 5 with the PAgP mode desirable :
This example shows how to configure an EtherChannel on a single switch in the stack. It assigns two
ports as static-access ports in VLAN 10 to channel 5 with the LACP mode active :