Ccna Lab Updated
Ccna Lab Updated
Ccna Lab Updated
Lab Manual
Student Name:
Faculty Name:
Batch:
Branch:
www.netrich.co.in 1
Serial No. Description of Practical Page No.
Lab 4 RIP 30
Lab 5 EIGRP
Lab 6 OSPF
www.netrich.co.in 2
Lab – 1
Cisco Router Initial Configuration
Connect the Console cable from the Console port of the Router to the COM port of the PC and setup the Hyper-
terminal.
www.netrich.co.in 3
Click on “Programs”
www.netrich.co.in 4
Hyperterminal will open a dialog box, give a name (user defined)
www.netrich.co.in 5
Click on “Restore Defaults”
www.netrich.co.in 6
Once HyperTerminal is ready, now turn on the Router.
After the Router boots-up completely, (on a new Cisco Router) it displays the following question:
If you choose “Yes”, IOS will prompt Questions to gather the information to configure the Router, it is
recommended to choose “no”, since we can configure the Router using IOS commands.
www.netrich.co.in 7
Telnet
Once the router is configured through Console, later it can be configured using Telnet. Telnet is a
remote Command Line Interface (CLI) administration tool, available by default on Windows and Linux
systems.
www.netrich.co.in 8
To Configure Cisco Router, we use IOS Commands. There are different IOS modes
depending on the configuration: the following are the IOS modes
1. User Mode:
2. Privilege Mode
To switch from ‘User mode’ to ‘privilege mode’, the following command needs to be given:
Router> enable
On a new Router, you will see the following prompt:
Router#
The ‘#’ symbol represents Privilege Mode, all Show, Copy, Debug and other commands can be used.
This is the most important mode, all the Router configurations start from this mode.
To switch to “Configuration Mode”, use the following command in Privilege mode:
Router# Configure terminal
Router(config)#
From this mode you can start the Router configuration like changing the Router host name, enable
passwords, Routing protocols, Access Lists, enabling Telnet etc.,
Router(config-if)#
www.netrich.co.in 9
5. Line Configuration Mode
a. Telnet
b. Console port
By default there is no authentication for Console access, to setup password for console:
Router(config)# line console 0
Router(config-line)# password <pwd>
Router(config-line)# login
c. Auxiliary port
To exit from any mode to the previous mode use “exit” command
To exit from any mode to privilege mode use “end” command
To exit from any mode to privilege mode use “ctrl + z” command
www.netrich.co.in 10
To view the configuration, use the following “show” commands: all “show” commands can be used only from
the ‘privilege mode’.
Once the new Cisco Router is configured using the Console, we can access Router via Telnet (Vty)
The Router can be configured via Console or Telnet, both give same results. In large networks it is recommended
to use Telnet for easier Administration.
www.netrich.co.in 11
Using IOS context sensitive help (?)
The ? provides context sensitive help, it provides the command syntax or the commands
supported in the various IOS modes.
Example 1:
Router> ?
Exec commands:
Example 2:
Router(config)# interface ?
Async Async interface
BVI Bridge-Group Virtual Interface
Dialer Dialer interface
Ethernet IEEE 802.3
Group-Async Async Group interface
Loopback Loopback interface
Multilink Multilink-group interface
Null Null interface
Serial Serial
Tunnel Tunnel interface
Similarly the context sensitive help can be used in all IOS modes and commands.
Command line editing:
• Ctrl + a -> to beginning of the command
• Ctrl + e -> to end of the command
• Esc + b -> back by one word
• Esc + f -> forward by one word
• Tab -> for command completion
www.netrich.co.in 12
Initial Configuration - Example
User mode:
Router >
Router > enable
Privilage Mode:
Router #
Show commands:
Router # show running-config
Router # show startup-config
Router # show version
Router # show flash
www.netrich.co.in 13
Assigning Auxiliary password:
Hyderabad (config) # line aux 0
Hyderabad (config-line) # password cisco
Hyderabad (config-line) # login
Hyderabad (config-line) # exit
www.netrich.co.in 14
Show commands output verification:
Router#show version
Cisco Internetwork Operating System Software
IOS (tm) C2600 Software (C2600-I-M), Version 12.0(9), RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2000 by cisco Systems, Inc.
Compiled Mon 24-Jan-00 22:33 by bettyl
Image text-base: 0x80008088, data-base: 0x805FF878
cisco 2610 (MPC860) processor (revision 0x203) with 28672K/4096K bytes of memory.
Processor board ID JAD041806FJ (1957657516)
M860 processor: part number 0, mask 49
Bridging software.
X.25 software, Version 3.0.0.
1 Ethernet/IEEE 802.3 interface(s)
2 Serial(sync/async) network interface(s)
32K bytes of non-volatile configuration memory.
8192K bytes of processor board System flash (Read/Write)
Router#show flash
www.netrich.co.in 15
Hyderabad#show running-config
Building configuration...
Current configuration:
!
version 12.0
no service password-encryption
!
hostname Hyderabad
!
no logging console
enable secret 5 $1$lQzR$veVuUBtwlXP2T0pUUTuvC0
enable password cisco
!
memory-size iomem 15
ip subnet-zero
no ip domain-lookup
!
interface Ethernet0/0
ip address 10.0.0.1 255.0.0.0
no ip directed-broadcast
no ip mroute-cache
!
interface Serial0/0
no ip address
no ip directed-broadcast
shutdown
!
interface Serial0/1
no ip address
no ip directed-broadcast
shutdown
!
ip classless
!
!
line con 0
password ccna
login
line aux 0
password cisco
login
line vty 0 4
password key123
login
!
end
www.netrich.co.in 16
Check if you have completed the following labs:
Important Note
Please don’t forget to fill in the Lab Completion Report after the lab and take the signature of the lab coordinator as Course completion
certificate will not be issued otherwise.
www.netrich.co.in 17
Lab – 2
WAN Interface Configuration
The first step to establish the WAN connection is to configure the Serial (WAN) interface.
By default the serial interface on the Router does not have IP address, encapsulation is HDLC and the interface
is in Shutdown state.
Check for DTE or DCE interface, so that the clock rate can be configured on the DCE interface.
The following are the commands to assign IP, encapsulation & enable the serial port:
Router(config)# interface serial <no>
Router(config-if)# no shutdown
To verify the status of the serial interface after configuration use the following command:
(Encapsulation mismatch or clock rate has not been given on DCE interface)
(Problem with the link or ‘no shutdown’ has not been given on the remote router)
www.netrich.co.in 18
WAN INTERFACE CONFIGURATION - Example:
172.16.0.1/16 172.17.0.1/16
S0 S0
HYD S1
172.16.0.2/16 CHE S1
BAN
E0 172.17.0.2/16
E0 E0
192.168.1.1/24 10.0.0.1/8
192.168.2.1/24
ON HYD:
ON CHE:
HYD # configure terminal ON BAN:
CHE# configure terminal HYD (config) # interface serial 1
CHE(config)# interface serial 0 HYD(config-if)#ip address 172.16.0.2 BAN# configure terminal
CHE(config-if)# ip address 172.16.0.1 255.255.0.0 BAN(config)#interface serial 1
255.255.0.0 HYD(config-if)#no shutdown BAN(config-if)#ip address 172.17.0.2
CHE(config-if)# no shutdown HYD(config-if)#clock rate 64000 255.255.0.0
CHE(config-if)# encapsulation hdlc HYD(config-if)#encapsulation hdlc BAN(config-if)#no shutdown
CHE(config-if)# exit HYD(config-if)#^z BAN(config-if)#encapsulation hdlc
CHE(config)# exit HYD# configure terminal BAN(config-if)#^Z
HYD(config) #interface serial 0
HYD(config-if)#ip address 172.17.0.1
255.255.0.0
Fill the Blanks before Starting your configuration
HYD(config-if)#no shutdown
HYD(config-if)#encapsulation hdlc
HYD(config-if)#clock rate 64000 19
HYD(config-if)#^Z
Router Name:_________________
20
WAN configuration output verification:
www.keygroups.in 21
Lab-3
Configure Static Routing
To configure static routing use the following syntax:
www.keygroups.in 22
STATIC ROUTING - Example
Configure Static Route to allow LAN of Chennai to communicate with LAN of Hyderabad and vice-versa:
172.16.0.1/16
S0
HYD S1
172.16.0.2/16 CHE
E0 BAN
E0
192.168.1.1/24 10.0.0.1/8
ON CHE : ON HYD :
Configure Static Route to allow LAN of Chennai & Bangalore to communicate with Hyderabad and vice-versa:
172.16.0.1/16 172.17.0.1/16
S0 S0
HYD S1
172.16.0.2/16 CHE S1
BAN
E0 172.17.0.2/16
E0 E0
192.168.1.1/24 10.0.0.1/8
192.168.2.1/24
26
ON CHE : ON HYD : ON BAN:
Show commands:
Fill the Blanks before Starting your
configuration
ROUTER # show ip route
Router Name:_________________
ROUTER # configure terminal
ROUTER(config) #
ROUTER(config) # ip routing
ROUTER(config) # ip route _________________ ___________________ _________
26
Hyderabad# show ip route
Default gateway is not set
The above output implies that IP Routing process is disabled. To enable IP Routing use the following command
in Global Configuration Mode:
Router(Config)# ip routing
Hyderabad#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B – BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
U - per-user static route, o - ODR
“C" represents that the IP Network was learnt through the local Routers Interface.
“S” represents that the IP Network was learnt through the Static route.
www.keygroups.in 30
Default Routing - Example
172.16.0.1
S0
CHE
E0
192.168.1.1
ON CHE :
Show commands:
Router Name:_________________
ROUTER(config) # ip routing
ROUTER(config) # ip route 0.0.0.0 0.0.0.0 _____ ____
www.keygroups.in 30
Hyderabad#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B – BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
U - per-user static route, o - ODR
administratively up.
www.keygroups.in 30
Lab-4
Configure RIP Routing Protocol
To configure RIP on the router, go to the configuration mode
Ones you are in the router configuration mode advertise your directly connected networks by using the
network command
Router(config-router)# network <network ID>
To verify the RIP updates sent and received, use the following command :
Router# debug ip rip
To verify which dynamic routing protocols are configured and their properties give the following command
Router#show ip protocols
www.keygroups.in 30
RIP - Example:
172.16.0.1/16 172.17.0.1/16
S0 S0
HYD S1
172.16.0.2/16 CHE S1
BAN
E0 172.17.0.2/16
E0 E0
192.168.1.1/24 10.0.0.1/8
192.168.2.1/24
Hyderabad#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
U - per-user static route, o - ODR
“R” represents RIP learnt Route, “120“ is the Administrative distance and “1” is the metric (Hop
count), IP network was learnt through RIP.
www.keygroups.in 23
Lab -5
Configure EIGRP Routing protocol
To configure EIGRP routing protocol
www.keygroups.in 24
EIGRP – Example:
172.16.0.1/16 172.17.0.1/16
S0 S0
HYD S1
172.16.0.2/16 CHE S1
BAN
E0 172.17.0.2/16
E0 E0
192.168.1.1/24 10.0.0.1/8
192.168.2.1/24
Router Name:_________________
ROUTER(config) #
ROUTER # configure terminal ROUTER(config) # ip routing
ROUTER (config) # interface serial 0 ROUTER(config) # router eigrp _______
ROUTER (config-if) # ip address ___________ ____________ ROUTER(config-router) # network ________________
ROUTER (config-if) # no shutdown ROUTER(config-router) # network ________________
ROUTER (config-if) # clock rate 64000 ROUTER(config-router) # network________________
ROUTER (config-if) # encapsulation hdlc ROUTER(config-router) # ^z
ROUTER (config-if) # exit ROUTER#
ROUTER (config) # interface serial 1
ROUTER (config-if) # ip address ___________ ____________
ROUTER (config-if) # no shutdown
ROUTER (config-if) # encapsulation hdlc
ROUTER (config-if) # clock rate 64000
ROUTER (config-if) # exit
26
EIGRP output verification
hyderabad#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
www.keygroups.in 27
Check if you have completed the following labs
1. Configuration of EIGRP
www.keygroups.in 28
Lab - 6
Configure OSPF Routing protocol
To configure OSPF routing protocol
Use the following command in configuration mode.
Router(config)#router ospf <process id>
To see the directly connected neighbors and DR/BDR of OSPF give the command
Router#show ip ospf neighbour
www.keygroups.in 29
OSPF – Example:
AREA 0
172.16.0.1/16 172.17.0.1/16
S0 S0
HYD S1
172.16.0.2/16 CHE
CHE S1 BAN
E0 172.17.0.2/16 BAN
E0 E0
192.168.1.1/24 10.0.0.1/8
192.168.2.1/24
Router Name:_________________
ROUTER(config) #
ROUTER(config) # ip routing
ROUTER # configure terminal ROUTER(config) # router OSPF ____
ROUTER (config) # interface serial 0 ROUTER(config-router) # network _________ _______ area _____
ROUTER (config-if) # ip address ______________ _________ ROUTER(config-router) # network _________ _______ area _____
ROUTER (config-if) # no shutdown ROUTER(config-router) # network _________ _______ area _____
ROUTER (config-if) # clock rate 64000 ROUTER(config-router) # ^z
ROUTER (config-if) # encapsulation hdlc ROUTER#
ROUTER (config-if) # exit
ROUTER (config) # interface serial 1
ROUTER (config-if) # ip address ______________ _________
ROUTER (config-if) # no shutdown
ROUTER (config-if) # encapsulation hdlc
ROUTER (config-if) # clock rate 64000
ROUTER (config-if) # exit
31
www.keygroups 31
OSPF output verification:
www.keygroups 31
www.keygroups 31
Hyderabad#show ip route
www.keygroups 31
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
www.keygroups 31
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
www.keygroups 31
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
www.keygroups 31
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
www.keygroups 31
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
www.keygroups 31
U - per-user static route, o - ODR
www.keygroups 31
www.keygroups 31
Gateway of last resort is not set
www.keygroups 31
www.keygroups 31
C 172.17.0.0/16 is directly connected, Serial0/0
www.keygroups 31
C 172.16.0.0/16 is directly connected, Serial0/1
www.keygroups 31
C 10.0.0.0/8 is directly connected, Ethernet0/1
www.keygroups 31
O 192.168.1.0/24 [110/74] via 172.16.0.1, 00:00:23, Serial0/1
www.keygroups 31
O 192.168.2.0/24 [110/74] via 172.17.0.2, 00:00:23, Serial0/0
www.keygroups 31
www.keygroups 31
hyderabad#show ip ospf neighbor
www.keygroups 31
www.keygroups 31
Neighbor ID Pri State Dead Time Address Interface
www.keygroups 31
192.168.1.1 0 FULL/ - 00:00:31 172.16.0.1 Serial0/1
www.keygroups 31
192.168.2.1 0 FULL/ - 00:00:34 172.17.0.2 Serial0/0
www.keygroups 31
www.keygroups 31
www.keygroups 31
hyderabad#show ip ospf database
www.keygroups 31
www.keygroups 31
OSPF Router with ID (172.17.0.1) (Process ID 3)
www.keygroups 31
www.keygroups 31
Router Link States (Area 0)
www.keygroups 31
www.keygroups 31
Link ID ADV Router Age Seq# Checksum Link count
www.keygroups 31
172.17.0.1 172.17.0.1 67 0x80000003 0x0023DE 5
www.keygroups 31
192.168.1.1 192.168.1.1 88 0x80000002 0x007456 3
www.keygroups 31
192.168.2.1 192.168.2.1 68 0x80000002 0x00BD07 3
www.keygroups 31
www.keygroups 31
www.keygroups 31
www.keygroups 31
Check if you have completed the following labs
www.keygroups 31
www.keygroups 31
1. Configuration of OSPF
www.keygroups 31
2. Automatic selection of router-id
www.keygroups 31
3. Debugging and understanding the functioning of hello packet
www.keygroups 31
4. Debugging and understanding the adjacency formation
www.keygroups 31
5. Verification of OSPF database
www.keygroups 31
6. Verification of OSPF Neighbor table
www.keygroups 31
7. Election of DR/BDR
www.keygroups 31
www.keygroups 31
www.keygroups 31
Lab - 7
www.keygroups 31
ACCESS CONTROL LIST:
www.keygroups 31
www.keygroups 31
There are two types of Access Control Lists
www.keygroups 31
www.keygroups 31
Syntax for configuring Standard ACL is as Follows
www.keygroups 31
Router(config)# access-list <No> permit/deny <source ip> <source wildcard mask>
www.keygroups 31
www.keygroups 31
www.keygroups 31
To implement ACL in Interface
www.keygroups 31
Router(config)# interface <type> <no>
www.keygroups 31
Router(config-if)# ip access-group <no> in/out
www.keygroups 31
www.keygroups 31
www.keygroups 31
To verify the output
www.keygroups 31
Router# show ip access-list
www.keygroups 31
www.keygroups 31
www.keygroups 31
www.keygroups 31
Syntax for configuring Extended ACL is as Follows
www.keygroups 31
Router(config)# access-list <No> permit/deny <protocol> <source ip> <source wildcard mask>
www.keygroups 31
<destination ip> <destination wildcard mask> [operator] [port No.]
www.keygroups 31
www.keygroups 31
www.keygroups 31
To implement ACL in Interface
www.keygroups 31
Router(config)# interface <type> <no>
www.keygroups 31
Router(config-if)# ip access-group <no> in/out
www.keygroups 31
www.keygroups 31
www.keygroups 31
www.keygroups 31
To verify the output
www.keygroups 31
Router# show ip access-list
www.keygroups 31
www.keygroups 31
www.keygroups 31
STANDARD ACCESS-LIST - Example:
172.16.0.1/16 172.17.0.1/16
S0 S0
HYD S1
172.16.0.2/16 CHE S1
BAN
E0 E0 172.17.0.2/16
E0
192.168.1.1/24 10.0.0.1/8
192.168.2.1/24
33
Access Control Verification:
Hyderabad#show ip access-list
Standard IP access list 1
permit 10.0.0.10
Hyderabad#show ip access-list
Extended IP access list 101
permit tcp 192.168.2.0 0.0.0.255 host 10.0.0.10 eq ftp
www.keygroups.in 34
LAB 9:
CDP Cisco Discovery Protocol
CDP is enabled by default on all Cisco devices. It is used for troubleshooting connectivity between Cisco devices.
To check the output of Cisco discovery protocol(cdp) give the following command.
This command will show the timer of cdp hello and the holddown interval
Router#show cdp
This command will show the brief information of the directly connected Cisco devices
Like hostname, interface to which it is connected, the model of the device etc
Router#show cdp neighbour
This command will show detail information of the directly connected Cisco devices
Like- Ip address Ios version, platform of the remote device etc
Router#show cdp neighbour detail
LAB 9.a
IOS Backup
For taking the backup of the IOS and the configuration file backup like the Running configuration and the
startup configuration
First install the TFTP server software in any of the PC in the network and at the time of the backup the software
should be running on the PC where it is installed.
Login to the router
Go to the privilege mode
To see where the files have been backed up go to the tftp server the files are stored in the directory ie
C:\Program Files\Cisco Systems\Cisco TFTP Server
www.keygroups.in 35
LAB - 10
Password Recovery
Step1:
Connect the console port of Router to com port of pc.
Step2:
Configure the hyper terminal software for console communication (see steps as shown in Initial configuration)
Step3:
Power on the router (if already power on restart it by power button).
Step4:
Press “Ctrl + Break” within 60 sec after power on.
Step5:
Router will enter Rom monitor mode.
ROMMON 1>
or
>
Step6:
For fixed router, use the following commands:
>o/r 0x2142
>i
Configure Register Value 0x2142 will skip executing the startup configuration from nvram during
bootup.
www.keygroups.in 36
Step7:
After the router boots up,
Router>enable
Router#copy startup-config running-config
Destination filename [running-config]? <Just Press Enter Key>
Hyderabad#
Hyderabad#configure terminal
Hyderabad(config)#enable secret ccna
Hyderabad(config)#line vty 0 4
Hyderabad(config-line)#password ccna
Hyderabad(config-line)#line console 0
Hyderabad(config-line)#password ccna
Hyderabad(config-line)#exit
Hyderabad(config)#config-register 0x2102
www.keygroups.in 37
Lab 11
VLAN’S AND TRUNKING
VLAN Creation:
Switch(config)# vlan <VLAN No.>
Switch(config-vlan)# name <name>
www.keygroups.in 38
Lab - 11
VLAN
ON 192.168.20.50 ON 192.168.20.51
VLAN CREATION: VLAN CREATION:
2950(config) # vlan 10 2950(config) # vlan 10
2950(config-vlan) # name sales 2950(config-vlan) # name sales
2950(config) # vlan 20 2950(config) # vlan 20
2950(config-vlan) # name mkt 2950(config-vlan) # name mkt
Assigning membership to ports: Assigning membership to ports:
TRUNKING: TRUNKING:
www.keygroups.in 39
VLAN output verification
SWITCH-50#show mac-address-table
Mac Address Table
-------------------------------------------
Vlan Mac Address Type Ports
---- ----------- -------- -----
All 000d.28f0.63c0 STATIC CPU
All 0100.0ccc.cccc STATIC CPU
All 0100.0ccc.cccd STATIC CPU
All 0100.0cdd.dddd STATIC CPU
1 0002.169c.0ba1 DYNAMIC Fa0/1
1 0002.b945.ea80 DYNAMIC Fa0/2
1 000c.8577.2058 DYNAMIC Fa0/24
1 0010.7b0b.a2c0 DYNAMIC Fa0/23
1 0013.20b7.07cc DYNAMIC Fa0/8
1 0013.20b7.08a5 DYNAMIC Fa0/9
1 0013.20b7.1d15 DYNAMIC Fa0/15
1 0013.20b7.1d53 DYNAMIC Fa0/5
1 0013.20b7.1d8c DYNAMIC Fa0/24
1 0013.8ff9.9ad1 DYNAMIC Fa0/24
1 0050.50d0.971a DYNAMIC Fa0/23
20 0013.20b7.08e6 DYNAMIC Fa0/6
Total Mac Addresses for this criterion: 16
SWITCH-50#show vlan
www.keygroups.in 40
SWITCH-50#show interface trunk
www.keygroups.in 41
VTP – Example:
Server
Client
www.keygroups.in 42
VTP output verification:
www.keygroups.in 43
Lab – 12
Inter-VLAN Routing
VLAN CREATION:
Switch(config)# vlan <VLAN No.>
Switch(config-vlan)# name <name>
www.keygroups.in 44
Inter-VLAN – Example:
E0.1 E0.2
192.168.1.1 192.16
VLAN 10 VLAN 2
www.keygroups.in 45
Inter-Vlan output verification:
On Switch:
SWITCH-50#show vlan
On Router:
Router#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
www.keygroups.in 46
Check if you have completed the following labs
2. Creation of VLAN
• Server mode
• Client mode
• Transparent mode
www.keygroups.in 47
Lab 13 - Port Security
Port Security:
Switch(config) # interface <type> <No.>
Switch(config-if) # switchport mode access
Switch(config-if) # Switchport port-security
Switch(config-if) # Switchport port-security maximum <No. of MAC address>
Switch(config-if) # Switchport port-security mac-address <MAC ADDRESS/ sticky>
Switch(config-if) # Switchport port-security violation <shutdown/protect/restrict>
Switch
Switch(config)#Interface fa0/1
Switch(config-if)#Switchport port-security
Switch(config-if)#Switchport port-security maximum 1
Switch(config-if)#Switcport port-security mac-address 0013.20B7.1D8C
Switch(config-if)#Switchport port-security violation shutdown
Switch(config-if)#^Z
www.keygroups.in 48
Lab – 14
NAT Configuration
www.keygroups.in 49
NAT Configuration – Example:
192.168.5
S S0
200.1.0.18/29
192.168.4 192.168.6
S1
B J
200.2.0.18/29
S1
202.4.0.
200.3.0.
18/29 192.168.7
192.168.3
G S0
D
202.3.0.
S1
S1 200.4.0.
202.2.0.
192.168.2 192.168.8
B S0 L
202.1.0.
192.168.1
C
Configuration of PAT Configuration of Static NAT
CHE# configure terminal CHE# configure terminal
CHE(config)# interface s0 CHE(config)# interface s0
CHE(config-if)#ip address 202.1.0.18 CHE(config-if)#ip address 202.1.0.18
255.255.255.248 255.255.255.248
CHE(config-if)#no shutdown CHE(config-if)#no shutdown
CHE(config-if)#encapsulation ppp CHE(config-if)#encapsulation ppp
CHE(config-if)#ip nat outside CHE(config-if)#ip nat outside
CHE(config-if)#exit CHE(config-if)#exit
CHE(config)#interface Ethernet 0 CHE(config)#interface Ethernet 0
CHE(config-if)#ip nat inside CHE(config-if)#ip nat inside
CHE(config-if)#exit CHE(config-if)#exit
CHE(config)#access-list 10 permit 192.168.1.0 CHE(config)#ip nat inside source static
0.0.0.255 192.168.1.10 202.1.0.19
CHE(config)#ip nat inside source list 10 interface
serial 0 overload
Show Commands
CHE# show ip nat translation
www.keygroups.in 50
CHE# debug ip nat
NAT output verification:
CHE#show ip nat translation
Pro Inside global Inside local Outside local Outside global
--- 202.1.0.19 192.168.1.10 --- ---
5. Debugging of NAT
www.keygroups.in 51