INDEX
Expt. Experiments Date Page Signatu
No. No(s re
)
1 Introduction to Computer Networking
(Router,Switch,Ethernet,RJ45)
2 Connection between two PC’s
3 Connection between two LAN’s using 1
managed SWITCH
4 ISDN Connection with BRI ports
To establish the TELNET session
5
Between two ROUTERS
6 To establish a VLAN Connection
1
Experiment No.1
CONFIGURATION & CONNECTION BETWEEN TWO PC’S
IP – 100. 10. 1. 1 IP – 100. 10. 1. 2
S/M – 255. 0. 0. 0 S/M – 255. 0. 0. 0
CONFIGURATION OF PC: -
- ipconfig / ip (ip-address) (subnet mask)
- ipconfig / dg (gateway-address)
- ipconfig; to check the configuration.
e. g. –
- ipconfig /ip 100. 10. 1. 1 255. 0. 0. 0
- ipconfig /dg 10. 1. 1. 1
Alternative Command to Configure a PC: -
- winipcfg
2
Experiment No.2
LAN-1 TO LAN-2 VIA SWITCH (MANAGED)
IP – 161.1.1.1 SWITCH
S/M – 255.255.0.0
D/G – 100.10.1.1
IP – 161.1.1.1 IP – 161.1.1.2 IP – 161.1.1.3 IP – 161.1.1.4
S/M – 255.255.0.0 S/M – 255.255.0.0 S/M – 255.255.0.0 S/M – 255.255.0.0
D/G – 100.10.1.1 D/G – 100.10.1.1 D/G – 100.10.1.1 D/G – 100.10.1.1
CONFIGURATION FOR PC’S:
- ipconfig / ip (ip-address) (subnet mask)
- ipconfig / dg (gateway-address)
- ipconfig; to check the configuration.
N. B: Switch’s IP address will be the default gateway for the PC’S.
CONFIGURATION FOR SWITCH:
- en (enable)
- config t (configure terminal)
- hostname Switch1
- enable password level 15 CISCO
- ip address 100.10.1.1 255.0.0.0
- if default-gateway 10.1.1.1
- exit
- show ip; to check Switch’s configuration
TO SEE THE CONNECTIVITY:
- ping
3
Experiment No.3
There are two ROUTERS ‘eRouter1’ and ‘eRouter2’.
a. Setup connection with BRI ports. eRouter1 will have an IP address of
42.34.10.1 with a 255.0.0.0 subnet mask. eRouter2 has an IP address of
42.34.10.121 with a 255.0.0.0 subnet mask.
b. SPID to communicate with the ISDN switch is (32177820020100). Dialer
String is (7782001).
c. Setup a dialer-list on your eRouter2 to permit all IP traffic.
d. Add dialer-list to ISDN BRI interface.
e. Now from eRouter2 ping eRouter1’s BRI 0 interface (IP address
42.34.10.1).
OBJECTIVE:
To understand the setup of ISDN on ROUTERS using BRI Interface
LAB EQUIPMENT:
Two ROUTERS eRouter1 & eRouter2
a. Connection setup between eRouter1 & eRouter2 using BRI ports having an IP
address 42.34.10.1 and 42.34.10.121 with subnet mask 255.0.0.0
Router > enable
Router #conf t
eRouter (config) # hostname eRouter1
eRouter1 (config) # interface BRI 0
eRouter (config) # ip address 42.34.10.1 255.0.0.0
eRouter (config) # no shut
eRouter (config) # end
Router > enable
Router # conf t
eRouter (config) # hostname eRouter2
eRouter1 (config) # interface BRI 0
eRouter (config) # ip address 42.34.10.121 255.0.0.0
eRouter (config) # no shut
eRouter (config) # end
b. ISDN connection setup with eRouter1 along with SPID connectivity and
assigning a dialer string on eRouter1 BRI 0 and to setup a dialer-list to permit
IP traffic.
eRouter1 # conf t
eRouter1 (config) # isdn switch-type basic-ni
eRouter1 (config-if) # interface BRI 0
4
eRouter1 (config-if) # isdn spid1 32177820010100
eRouter1 (config-if) # exit
eRouter1 (config) # exit
eRouter1 # show isdn status
eRouter1 # conf t
eRouter1 # interface BRI 0
eRouter1 # dialer string 7782001
eRouter1 (config-if) # exit
eRouter1 (config) # dialer-list 1 protocol ip permit
eRouter1 (config) # interface BRI 0
eRouter1 (config-if) # dialer-group1
c. ISDN connection setup with eRouter2 along with SPID connectivity and
assigning a dialer string on eRouter2 BRI 0 and to setup a dialer-list to permit
IP traffic.
eRouter2 # conf t
eRouter2 (config) # isdn switch-type basic-ni
eRouter2 (config-if) # interface BRI 0
eRouter2 (config-if) # isdn spid1 32177820010100
eRouter2 (config-if) # exit
eRouter2 (config) # exit
eRouter2 # show isdn status
eRouter2 # conf t
eRouter2 # interface BRI 0
eRouter2 # dialer string 7782001
eRouter2 (config-if) # exit
eRouter2 (config) # dialer-list 1 protocol ip permit
eRouter2 (config) # interface BRI 0
eRouter2 (config-if) # dialer-group1
d. Now after configuration for ISDN for both eRouter1 and eRouter2, lets ping
eRouter1’s BRI 0 interface from eRouter2.
eRouter2 (config-if) # exit
eRouter2 (config) # exit
eRouter2 # ping 42.34.10.1
e. Now after successful ping the isdn status and setting running configuration.
eRouter2 # show isdn status
eRouter2 # show running-config.
5
Experiment No.4
Write the following steps and establish a TELNET session among two
ROUTERS. Use the Ethernet 0 interface.
Router > en
Hostname eRouter1
Line vty 04
Login
Password boson
Exit
Use the IP address with subnet mask as 34.25.67.18 255.255.255.224 for
interface.
Now write a command no shut.
Next go to eRouter2 and set the hostname as eRouter2. Enter its Ethernet 0
interface.
Set the IP address with subnet mask as 34.25.67.2 255.255.255.224
Now use no shut command in command prompt.
Now go back to privilege mode by typing (end) command in command
prompt.
Now write (telnet 34.25.67.18) in command prompt.
See what happens?
OBJECTIVE:
To establish a TELNET session between two ROUTERS
EQUIPMENTS:
Two ROUTERS eRouter1 and eRouter2 are used
a. To connect to eRouter1 and set the hostname and login for defining password
and the setup IP address for its Ethernet 0 interface. Now setup an IP address
to enable the interface.
Router > enable
Router # conf t
Router (config) # hostname eRouter1
eRouter1 (config) # line vty 0 4
eRouter1 (config-line) #
eRouter1 (config-line) # login
eRouter1 (config-line) # password boson
eRouter1 (config-line) # exit
eRouter1 (config) # interface Ethernet 0
6
eRouter1 (config-if) # ip address 34.25.67.18 255.255.255.224
eRouter1 (config-if) # no shut
b. After connecting to eRouter1 now connect to eRouter2 and set the hostname
and then setup IP address for its Ethernet 0 interface. Now setup an IP
address to enable the interface.
Router > enable
Router # conf t
Router (config) # hostname eRouter2
eRouter2 (config) # interface Ethernet 0
eRouter2 (config-if) #
eRouter2 (config-if) # ip address 34.25.67.2 255.255.255.224
eRouter2 (config-if) # no shut
eRouter2 (config-line) # end
c. To TELNET to eRouter1 and show the session and then disconnect the
session.
eRouter2 # telnet 34.25.67.18
password:
eRouter1 #
<6> followed by
eRouter2 #
eRouter2 # show session
eRouter2 # resume 1
eRouter1 #
eRouter1 #
<6> followed by
eRouter2 #
eRouter2 # disconnect1
7
Experiment No.5
Make the VLAN Connection with the interface as shown below:
R1
Fast Ethernet
S1
Ethernet 0/1 Ethernet 0/2
OBJECTIVE:
To become familiar with the benefits of VLAN on LAN
EQUIPMENT:
We are using 1 ROUTER, 1 SWITCH and 2 stations PC1 and PC2
a. By configuring the IP address on eRouter1 fast Ethernet 0/0 and connect to
eRouter1 by entering Ethernet 0 and setting IP address of 24.17.2.1
255.255.255.0
Router > enable
Router # conf t
Router (config) # hostname eRouter1
eRouter1 (config) # interface fast 0/0
eRouter1 (config-if) # ip address 24.17.2.1 255.255.255.0
eRouter1 (config-if) # no shut
8
b. Now connect to eStation1 i. e. PC1 and set up the IP address of 24.17.2.3
255.255.255.0 with default gateway 24.17.2.1
C:> winipcfg
c. Now connect to eStation2 i. e. PC2 and set up the IP address of 24.17.2.4
255.255.255.0 with default gateway 24.17.2.1
C:> winipcfg
d. Now ping eRouter1 and PC1 from eRouter2
C:> ping 24.17.2.1
C:> ping 24.17.2.3
e. To setup VLAN connect to SWITCH1
> enable
# conf t
# vlan 22 name pcs
f. After creation of VLAN, assign port1 for PC1
(config) # int e 0/1
(config-if) # vlan-membership static 22
g. Now ping from PC2 to eRouter1 and PC1
C:> ping 24.17.2.1
C:> ping 24.17.2.3
h. Now connect back to PC1 and setup port2 to include in VLAN 22
(config-if) # exit
(config) # int e 0/2
(config-if) # vlan-membership static 22
i. Now connect back to PC2 and then ping from PC2 to eRouter1 and PC1
C:> ping 24.17.2.1
C:> ping 24.17.2.3
j. Again connect back to SWITCH and show VLAN and VLAN membership
(config-if) # end
# show vlan