You are on page 1of 98

INDEX

SR. PRACTICAL NAME DATE SIGNATURE


NO.
1 IPv4 Addressing and Subnetting 23/01/2018
2 Use of Ping, Tracert/Traceroute and Arp 27/01/2018
Utilities
3 Configure IP Static Routing 13/02/2018
4 Configure IP Routing Using RIP 15/02/2018
5 Configuring OSPF 20/01/2018
6 Configure DHCP and DNS (using Packet 22/02/2018
Tracer )
7 Configure FTP and HTTP. 27/02/2018
8 Configure TELNET 06/03/2018
9 Configure SMTP, POP3, IMAP and MIME 09/03/2018

Page | 1 Internet Technologies – Practical Manual


PRACTICAL 2

AIM:- USE OF PING, TRACERT/TRACEROUTE AND ARP UTILITIES.

Diagnostic commands help you detect TCP/IP networking problems. Some of the diagnostic
commands are arp, hostname, ipconfig, netstat, ping, route, and tracert.

i)ipconfig :- To check the IP address of windows system.


This diagnostic command displays all current TCP/IP network configuration values. This
command is useful on computers running DHCP because it enables users to determine which
TCP/IP configuration values have beenconfigured by DHCP. If you enter only ipconfig without
parameters, the response is a display of all of the current TCP/IP configuration values, including IP
address, subnet mask, and default gateway.

Syntax:
ipconfig[/all | /renew [adapter] | /release [adapter]]
Parameters:
all: Produces a full display. Without this switch, ipconfig displays only the IP address, subnet mask,
and default gateway values for each network card.
renew [adapter]:Renews DHCP configuration parameters. This option is available only on computers
running the DHCP Client service.
release [adapter]: Releases the current DHCP configuration. This option disables TCP/IP on the local
computer and is available only on DHCP clients.

Page | 2 Internet Technologies – Practical Manual


2)ping:- To check the connectivity to some domain
This diagnostic command verifies connections to one or more remote computers.
Syntax:
ping[-t] [-a] [-n count] [-l length] [-f] [-ittl] [-v tos] [-r count] [-s count] [[-j host-list] |
[-k host-list]] [-w timeout]
destination-list
Parameters:
-t: Pings the specified host until interrupted.
-a : Resolves addresses to host names.
-n count : Sends the number of ECHO packets specified by count. The default is 4.
-l length : Sends ECHO packets containing the amount of data specified by length.
-f : Sends a Do Not Fragment flag in the packet.
-ittl : Sets the time to live field to the value specified by ttl.
-v tos : Sets the type of service field to the value specified by tos.
-r count : Records the route of the outgoing packet and the returning packet in the record route field.
-s count : Specifies the timestamp for the number of hops specified by count.
-j host-list : Routes packets via the list of hosts specified by host-list. Consecutive hosts can be
separated by intermediate gateways (loose source routed). The max number allowed by IP is 9.
-k host-list : Routes packets via the list of hosts specified by host-list. Consecutive hosts cannot
be separated by intermediate gateways (strict source routed). The max number allowed by IP is 9.
-w timeout : Specifies a timeout interval in milliseconds.
destination-list : Specifies the remote hosts to ping.

Page | 3 Internet Technologies – Practical Manual


2.1)To know available parameters that can be used with ping command
ping -h

2.2) Ping the specified host until stopped


-t
To see statistics and continue - type Control+break
To stop - type Control+Cs

Page | 4 Internet Technologies – Practical Manual


2.3) Number of echo requests to send with ping command
-n count

2.4) send Buffer size


-l size

Page | 5 Internet Technologies – Practical Manual


2.5) Time To Live
-i TTL

3)tracert
This diagnostic utility determines the route taken to a destination by sending Internet Control
Message Protocol (ICMP) echo packets with varying time-to- live (TTL) values to the destination.
Each router along the path is required to decrement the TTL on a packet by at least 1 before
forwarding it, so the TTL is effectively a hop count.
When the TTL on a packet reaches 0, the router is supposed to send back an ICMP Time
Exceeded message to the source computer.
Syntax:
tracert[-d] [-h maximum_hops] [-j host-list] [-w timeout] target_name
Parametes:
-d : Specifies not to resolve addresses to host names.
-h maximum_hops : Specifies maximum number of hops to search for target.
-j host-list : Specifies loose source route along host-list.
-w timeout : Waits the number of milliseconds specified by timeout for each reply.
target_name : Name of the target host.

Page | 6 Internet Technologies – Practical Manual


3.1)Maximum number of hops to search for target
-h maximum_hops

Page | 7 Internet Technologies – Practical Manual


3.2)wait timeout milliseconds for each reply
-w timeout

3.3)Loose source route along host-list (IPv4-only)


-j host-list

Page | 8 Internet Technologies – Practical Manual


4)hostname:-To check the Hostname of the windows system
This diagnostic command prints the name of the host on which the command is used.
Syntax:
hostname – This command has no parameters.

5)arp :-To displays current ARP entries by interrogating the current protocol data.

If inet_addr is specified, the IP and Physical addresses for only the specified computer are displayed.
If more than one network interface uses ARP, entries for each ARP table are displayed
Diagnostic commands help you detect TCP/IP networking problems. Some of the diagnostic
commands are arp, hostname, ipconfig, netstat, ping, route, and tracert.
This diagnostic command displays and modifies the IP-to- Ethernet or Token Ring physical address
translation tables used by the Address Resolution Protocol (ARP).
Syntax:
arp–a[inet_addr] [-N [if_addr]]
arp–dinet_addr [if_addr]
arp–sinet_addether_addr [if_addr]
Parameters:
-a : Displays current ARP entries by querying TCP/IP. If inet_addr is specified, only the IP and
physical addresses for the specified host are displayed.
-d : Deletes the entry specified by inet_addr.
-s : Adds an entry in the ARP cache to associate the IP address inet_addr with the physical

Page | 9 Internet Technologies – Practical Manual


address ether_addr.
-N [if_addr] : Displays the ARP entries for the network interface specified by if_addr.
ether_addr : Specifies a physical address.
if_addr : Specifies, if present, the IP address of the interface whose address translation table should
be modified. If not present, the first applicable interface will be used.
inet_addr : Specifies an IP address in dotted decimal notation.

5.1)To Delete the host specified by inet_addr. inet_addr may be wildcarded with * to
delete all hosts arp -d
To check the output of above command, run
arp -a

Page | 10 Internet Technologies – Practical Manual


5.2)To add the host and associates the Internet address inet_addr with the physical address
eth_addr. The physical address is given as 6 hexadecimal bytes separated by hyphens. the
entry is permanent
-s

6) netstat :- To check status of network


This diagnostic command displays protocol statistics and current TCP/IP network connections.
Syntax:
netstat[-a] [-e][-n][-s] [-p protocol] [-r] [interval]
Parameters:
-a : Displays all connections and listening ports; server connections are usually not shown.
-e : Displays Ethernet statistics. This can be combined with the -s option.
-n : Displays addresses and port numbers in numerical form (rather than attempting name lookups).
-s : Displays per-protocol statistics. By default, statistics are shown for TCP, UDP, ICMP
and IP; the -p option can be used to specify a subset of the default.
-p protocol : Shows connections for the protocol specified.
-r : Displays the contents of the routing table.
Interval : Redisplays selected statistics, pausing interval seconds between each display.

Page | 11 Internet Technologies – Practical Manual


6.1) To display all connections and listening ports
netstat -a

Page | 12 Internet Technologies – Practical Manual


6.2)To display the routing table
netsatat -r

Page | 13 Internet Technologies – Practical Manual


7) route
This diagnostic command manipulates network routing tables.

Syntax:
route[-f] [command [destination] [MASK netmask] [gateway] [METRIC metric]]

Parameters:
-f: Clears the routing tables of all gateway entries. If this parameter is used in conjunction with
one of the commands, the tables are cleared prior to running the command.
command: Specifies one of four commands.

Command Purpose
Print Prints a route
Add Adds a route
Delete Deletes a route
Change Modifies an existing route

destination: Specifies the host to send command.


MASK: Specifies, if present, that the next parameter be interpreted as the netmask parameter.
netmask: Specifies, if present, the subnet mask value to be associated with this route entry.
If not present, this parameter defaults to 255.255.255.255.
gateway: Specifies the gateway.
METRIC: Specifies the route metric (cost) for the destination

Page | 14 Internet Technologies – Practical Manual


PRACTICAL 3:

AIM:-CONFIGURE IP STATIC ROUTING.

There are two different styles to configure static routing using an “ip route” command:
1. Using a next hop IP address
2. Using an outgoing interface

Syntax:
ip route [destination_network] [mask] [next_hop_address or exit_interface]
[administrative _ distance] [permanent]
We can break the above syntax:
ip route [destination_network] [mask] [next_hop_address]
ip route [destination_network] [mask] [exit_interface/next_hop_address]

network – the destination network


mask – is the subnet mask for that network
address – IP address of the next hop router
interface – the interface the traffic is to leave by
distance – (optional) the administrative distance of the route

A] Configuring with following information:

Network: 20.0.0.0/8, 30.0.0.0/8, 10.0.0.0/8

Gateway Address: 20.0.0.1/16, 30.0.0.1/24.

Page | 15 Internet Technologies – Practical Manual


Step 1:-For pc configuration:
Click on PC/ Desktop/IP Configuration /Static
PC0)

Pc1)

PC2)

Page | 16 Internet Technologies – Practical Manual


PC3)

Step 2:-Router configuration:

1)Router 0:

Page | 17 Internet Technologies – Practical Manual


2)Router 1:

Page | 18 Internet Technologies – Practical Manual


Step 3:-STATIC ROUTING:

1)Router 0:

2)Router 1:

Page | 19 Internet Technologies – Practical Manual


PINGING:

OR with CLI [ with commands]

Configure Router R0
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#host R1
R1(config)#int fa 0/0
R1(config-if)#ip address 10.0.0.1 255.0.0.0
R1(config-if)#no shut
R1(config-if)#int fa 0/1
R1(config-if)#ip address 20.0.0.1 255.0.0.0
R1(config-if)#no shut
R1(config-if)#exit
R1(config)#

Configure Router R1
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#host R2
R2(config)#int fa 0/0
R2(config-if)#ip address 10.0.0.2 255.0.0.0
R2(config-if)#no shut
R2(config)#int fa 0/1
R2(config-if)#ip address 30.0.0.1 255.0.0.0
R2(config-if)#no shut
R2(config-if)#exit
R2(config)#

Page | 20 Internet Technologies – Practical Manual


Configure Static Route to router R0
Go to config mode, type ip route command, the subnet number, followed by the mask,
and next hop ip address.

R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#ip route 30.0.0.0 255.0.0.0 10.0.0.2
R1(config)#^Z
Configure Static Route to router R1
Go to config mode, type ip route command, the subnet number, followed by the mask
, and next hop ip address.

R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#ip route 20.0.0.0 255.0.0.0 10.0.0.1
R1(config)#^Z

Now, To see routing table of router R2


R2#show ip route

B] Configuring with following information:


Network: 172.16.0.0/16, 192.168.0.0/24, 10.0.0.0/8
Gateway Address: 172.16.0.1/16, 192.168.0.1/24, 10.0.0.1/8

Page | 21 Internet Technologies – Practical Manual


Putting three IP addresses, subnet mask and default gateway to three PCs.
Click PC1/ Desktop/IP Configuration /Static

Click PC2/ Desktop/IP Configuration /Static

Click PC3/ Desktop/IP Configuration /Static

Page | 22 Internet Technologies – Practical Manual


Router configuration:

1)Router 1:

Page | 23 Internet Technologies – Practical Manual


2)Router 2:

Page | 24 Internet Technologies – Practical Manual


OR with Commands

Configure Router R1
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#host R1
R1(config)#int fa 0/1
R1(config-if)#ip address 172.16.0.1 255.255.0.0
R1(config-if)#no shut
R1(config-if)#int fa 1/0
R1(config-if)#ip address 192.168.0.1 255.255.255.0
R1(config-if)#no shut
R1(config)#int fa 0/0
R1(config-if)#ip address 100.0.0.1 255.255.255.252
R1(config-if)#no shut
R1(config-if)#exit
R1(config)#

Configure Router R2
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#host R2
R2(config)#int fa 0/0
R2(config-if)#ip address 100.0.0.2 255.255.255.252
R2(config-if)#no shut
R2(config)#int fa 0/1
R2(config-if)#ip address 10.0.0.1 255.0.0.0
R2(config-if)#no shut
R2(config-if)#exit
R2(config)#

Configure Static Route to router R1


Go to config mode, type ip route command, the subnet number, followed by the mask, and next hop ip
address.

R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#ip route 10.0.0.0 255.0.0.0 100.0.0.2
R1(config)#^Z

See routing table of router R1


R1#show ip route
Gateway of last resort is not set
S 10.0.0.0/8 [1/0] via 100.0.0.2
100.0.0.0/30 is subnetted, 1 subnets
C 100.0.0.0 is directly connected, FastEthernet0/0
C 172.16.0.0/16 is directly connected, FastEthernet0/1
C 192.168.0.0/24 is directly connected, FastEthernet1/0
Page | 25 Internet Technologies – Practical Manual
R1#

Note a static route added to the routing table. The character S means static route.
It references 10.0.0.0 subnet and it says to get there via100.0.0.2. via means that the next
hop router’s IP address.

Now check IP connectivity


Click PC-1/ Desktop/Command Prompt

PC>ping 10.0.0.2
Pinging 10.0.0.2 with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Ping statistics for 10.0.0.2:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
PC>
However PC-1 can’t ping PC-3 right now, the ping fails.

Configure Static Route to router R2


R2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#ip route 172.16.0.0 255.255.0.0 100.0.0.1
R2(config)#ip route 192.168.0.0 255.255.255.0 100.0.0.1
R2(config)#^Z
R2#

Now, see routing table of router R2


R2#show ip route
Gateway of last resort is not set
C 10.0.0.0/8 is directly connected, FastEthernet0/1
100.0.0.0/30 is subnetted, 1 subnets
C 100.0.0.0 is directly connected, FastEthernet0/0
S 172.16.0.0/16 [1/0] via 100.0.0.1
S 192.168.0.0/24 [1/0] via 100.0.0.1
R2#

Now check IP connectivity


Click PC-1/ Desktop/Command Prompt

PC>ping 10.0.0.2
Pinging 10.0.0.2 with 32 bytes of data:
Reply from 10.0.0.2: bytes=32 time=12ms TTL=126

Reply from 10.0.0.2: bytes=32 time=13ms TTL=126


Reply from 10.0.0.2: bytes=32 time=12ms TTL=126
Reply from 10.0.0.2: bytes=32 time=20ms TTL=126
Ping statistics for 10.0.0.2:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 12ms, Maximum = 20ms, Average = 14ms
Page | 26 Internet Technologies – Practical Manual
PC>
We can reach 10.0.0.0 network.

Click PC-2/ Desktop/Command Prompt


PC>ping 10.0.0.2
Pinging 10.0.0.2 with 32 bytes of data:
Reply from 10.0.0.2: bytes=32 time=12ms TTL=126
Reply from 10.0.0.2: bytes=32 time=14ms TTL=126
Reply from 10.0.0.2: bytes=32 time=24ms TTL=126
Reply from 10.0.0.2: bytes=32 time=11ms TTL=126
Ping statistics for 10.0.0.2:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milliseconds:
Minimum = 11ms, Maximum = 24ms, Average = 15ms
PC>
We can reach 10.0.0.0 network.

Click PC-3/ Desktop/Command Prompt


PC>ping 172.16.0.2
Pinging 172.16.0.2 with 32 bytes of data:
Reply from 172.16.0.2: bytes=32 time=10ms TTL=126
Reply from 172.16.0.2: bytes=32 time=11ms TTL=126
Reply from 172.16.0.2: bytes=32 time=12ms TTL=126
Reply from 172.16.0.2: bytes=32 time=16ms TTL=126
Ping statistics for 172.16.0.2:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milliseconds:
Minimum = 10ms, Maximum = 16ms, Average = 12ms
PC>
We can reach 172.16.0.0 network.

PC>ping 192.168.0.2
Pinging 192.168.0.2 with 32 bytes of data:
Reply from 192.168.0.2: bytes=32 time=12ms TTL=126
Reply from 192.168.0.2: bytes=32 time=11ms TTL=126
Reply from 192.168.0.2: bytes=32 time=22ms TTL=126
Reply from 192.168.0.2: bytes=32 time=10ms TTL=126
Ping statistics for 192.168.0.2:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milliseconds:
Minimum = 10ms, Maximum = 22ms, Average = 13ms
PC>
We can reach 192.168.0.0 network.

Page | 27 Internet Technologies – Practical Manual


PRACTICAL 4:

AIM:-CONFIGURE IP ROUTING USING RIP.

A]Configure RIP on Cisco Routers with following information:


Network: 172.16.0.0/16, 192.168.0.0/24, 10.0.0.0/8
Gateway Address: 172.16.0.1/16, 192.168.0.1/24, 10.0.0.1/8

Putting three IP addresses, subnet mask and default gateway to three PCs.

Click PC1/ Desktop/IP Configuration /Static

Click PC2/ Desktop/IP Configuration /Static

Page | 28 Internet Technologies – Practical Manual


Click PC3/ Desktop/IP Configuration /Static

With Command based

Configure Router R1
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#host R1
R1(config)#int fa 0/1
R1(config-if)#ip address 172.16.0.1 255.255.0.0
R1(config-if)#no shut
R1(config-if)#int fa 1/0
R1(config-if)#ip address 192.168.0.1 255.255.255.0
R1(config-if)#no shut
R1(config)#int fa 0/0
R1(config-if)#ip address 100.0.0.1 255.255.255.252
R1(config-if)#no shut
R1(config-if)#exit
R1(config)#

Configure Router R2
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#host R2
R2(config)#int fa 0/0
R2(config-if)#ip address 100.0.0.2 255.255.255.252
R2(config-if)#no shut
R2(config)#int fa 0/1
R2(config-if)#ip address 10.0.0.1 255.0.0.0
R2(config-if)#no shut
R2(config-if)#exit
R2(config)#

Page | 29 Internet Technologies – Practical Manual


Configure RIPv1 to router R1
Here we put all three networks those are connected to R1 router.
.
R1(config)#router rip
R1(config-router)#network 172.16.0.0
R1(config-router)#network 192.168.0.0
R1(config-router)#network 100.0.0.0
R1(config-router)#^Z
R1#

Configure RIPv1 to router R2


Here we put two networks those are connected to R2 router.
R2(config)#router rip
R2(config-router)#network 100.0.0.0
R2(config-router)#network 10.0.0.0
R2(config-router)#^Z
R2#

See routing table of router R1


R1#show ip route
Gateway of last resort is not set
R 10.0.0.0/8 [120/1] via 100.0.0.2, 00:00:20, FastEthernet0/0
100.0.0.0/30 is subnetted, 1 subnets
C 100.0.0.0 is directly connected, FastEthernet0/0
C 172.16.0.0/16 is directly connected, FastEthernet0/1
C 192.168.0.0/24 is directly connected, FastEthernet1/0
R1#

R1#show ip rip database


10.0.0.0/8
[1] via 100.0.0.2, 00:00:12, FastEthernet0/0
100.0.0.0/30 directly connected, FastEthernet0/0
172.16.0.0/16 directly connected, FastEthernet0/1
192.168.0.0/24 directly connected, FastEthernet1/0
R1#

See routing table of router R2


R2#show ip route
Gateway of last resort is not set
C 10.0.0.0/8 is directly connected, FastEthernet0/1
100.0.0.0/30 is subnetted, 1 subnets
C 100.0.0.0 is directly connected, FastEthernet0/0
R 172.16.0.0/16 [120/1] via 100.0.0.1, 00:00:09, FastEthernet0/0
R 192.168.0.0/24 [120/1] via 100.0.0.1, 00:00:09, FastEthernet0/0
R2#

Page | 30 Internet Technologies – Practical Manual


R2#show ip rip database
10.0.0.0/8 directly connected, FastEthernet0/1
100.0.0.0/30 directly connected, FastEthernet0/0
172.16.0.0/16
[1] via 100.0.0.1, 00:00:19, FastEthernet0/0
192.168.0.0/24
[1] via 100.0.0.1, 00:00:19, FastEthernet0/0
R2#

Now check IP connectivity


Click PC-1/ Desktop/Command Prompt

PC>ping 10.0.0.2
Pinging 10.0.0.2 with 32 bytes of data:
Reply from 10.0.0.2: bytes=32 time=12ms TTL=126
Reply from 10.0.0.2: bytes=32 time=13ms TTL=126
Reply from 10.0.0.2: bytes=32 time=12ms TTL=126
Reply from 10.0.0.2: bytes=32 time=20ms TTL=126
Ping statistics for 10.0.0.2:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milliseconds:
Minimum = 12ms, Maximum = 20ms, Average = 14ms
PC>

We can reach 10.0.0.0 network.


Click PC-2/ Desktop/Command Prompt

PC>ping 10.0.0.2
Pinging 10.0.0.2 with 32 bytes of data:
Reply from 10.0.0.2: bytes=32 time=12ms TTL=126
Reply from 10.0.0.2: bytes=32 time=14ms TTL=126
Reply from 10.0.0.2: bytes=32 time=24ms TTL=126
Reply from 10.0.0.2: bytes=32 time=11ms TTL=126
Ping statistics for 10.0.0.2:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milliseconds:
Minimum = 11ms, Maximum = 24ms, Average = 15ms
PC>
We can reach 10.0.0.0 network.

Click PC-3/ Desktop/Command Prompt


PC>ping 172.16.0.2
Pinging 172.16.0.2 with 32 bytes of data:
Reply from 172.16.0.2: bytes=32 time=10ms TTL=126
Reply from 172.16.0.2: bytes=32 time=11ms TTL=126
Reply from 172.16.0.2: bytes=32 time=12ms TTL=126
Reply from 172.16.0.2: bytes=32 time=16ms TTL=126
Ping statistics for 172.16.0.2:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 10ms, Maximum = 16ms, Average = 12ms
PC>

Page | 31 Internet Technologies – Practical Manual


We can reach 172.16.0.0 network.
PC>ping 192.168.0.2
Pinging 192.168.0.2 with 32 bytes of data:
Reply from 192.168.0.2: bytes=32 time=12ms TTL=126
Reply from 192.168.0.2: bytes=32 time=11ms TTL=126
Reply from 192.168.0.2: bytes=32 time=22ms TTL=126
Reply from 192.168.0.2: bytes=32 time=10ms TTL=126
Ping statistics for 192.168.0.2:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 10ms, Maximum = 22ms, Average = 13ms
PC>

B) Configure RIP

ADDING A SERIAL BUS TO ALL ROUTER CONNECTED TO MORE THAN TWO:

add HWIC-2T for connection: [switch off->then add -> switch on]

Page | 32 Internet Technologies – Practical Manual


ROUTER CONFIGURATION:

ROUTER 0:

Page | 33 Internet Technologies – Practical Manual


Page | 34 Internet Technologies – Practical Manual
Router 1:

Page | 35 Internet Technologies – Practical Manual


Router 2:

Page | 36 Internet Technologies – Practical Manual


Router 3:

Page | 37 Internet Technologies – Practical Manual


Page | 38 Internet Technologies – Practical Manual
Router 4:

RIP ROUTING:

Page | 39 Internet Technologies – Practical Manual


Page | 40 Internet Technologies – Practical Manual
Page | 41 Internet Technologies – Practical Manual
C]Configure RIP

Pc configuration:
Pc 0:

Pc 1:

Page | 42 Internet Technologies – Practical Manual


Router configuration :

Router 0:

Page | 43 Internet Technologies – Practical Manual


Router 1:

Page | 44 Internet Technologies – Practical Manual


RIP ROUTING :

Page | 45 Internet Technologies – Practical Manual


D]Configuration of RIP

ROUTER CONFIGURATION:

ROUTER 0:

Page | 46 Internet Technologies – Practical Manual


ROUTER 1:

Page | 47 Internet Technologies – Practical Manual


Page | 48 Internet Technologies – Practical Manual
ROUTER 2:

Page | 49 Internet Technologies – Practical Manual


ROUTER 3:

Page | 50 Internet Technologies – Practical Manual


Page | 51 Internet Technologies – Practical Manual
RIP ROUTING:

Page | 52 Internet Technologies – Practical Manual


Page | 53 Internet Technologies – Practical Manual
PRACTICAL 5

AIM:-CONFIGURING OSPF.

OSPF Commands

Enable OSPF process or routing


Syntax:
Router(config)#router ospf<process-id>

Define an interface on which OSPF runs and define the area ID for that interface
Syntax
Router(config-router)#network address <wildcard-mask>< area><area-id>

Configure loopback
Syntax
Router(config)#interface loopback number

DR/BDR election
Syntax
Router(config)#interface <interface>
Router(config-if)#ip ospf priority <0-255>

By default all links are equal with a priority of 1.


In a hub-and-spoke network to become the DR, don’t raise the OSPF interface priority
of hub router – lower the OSPF interface priority of the spoke routers.
The command ip ospf priority is commonly used in hub-and-spoke network on the spoke
only.
The command ip ospf priority 0 disqualifies from taking part of DR, BDR election for
that particular segment.
For example,
R2#conf t
R2(config)# int so.123
R2(config-subif)# ip ospf priority 0

Modify bandwidth
Syntax
Router(config-if)#bandwidth kbps

Explicitly specify the cost of sending a packet on an OSPF interface


Syntax
Router(config-if)#ip ospf cost <cost>

Specify or modify Hello/Dead time


Syntax
Router(config-if)#ip ospf hello-interval <seconds>
Router(config-if)#ip ospf dead-interval <seconds>

Page | 54 Internet Technologies – Practical Manual


Verify OSPF
To see the detail information of all OSPF routing process enabled on a router
Router#show ip ospf

To display interface-specific OSPF information


Syntax
Router#show ip ospf interface [int]

You cannot see Process and router ID using the command show ip ospf interface .
Router#show ip ospf database
Router#debug ip ospf packet
Router#debug ip ospf hello
Router#debug ip ospf adj

Display all OSPF neighbours


Router#show ip ospf neighbour

Example:
Router#show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
192.168.1.2 0 FULL/ - 00:00:38 192.168.1.2 Serial1/0
Router#

Neighbor ID: The neighbour ID that is the OSPF RID of the neighbour.
Pri: Short for “priority”, that’s the interface priority of the neighbour.
State: That’s the OSPF adjacency state and role of the router – DR, BDR, or DROTHER.
Dead Time: Time remaining until the adjacency is torn down. Receipt of a valid hello packet will reset
this timer.
Address: The IP address of the neighbour’s interface through which the adjacency has formed. It can be
same as the neighbour ID.
Interface: The interface through which the adjacency has formed.

A] OSPF configuration [single area]

Page | 55 Internet Technologies – Practical Manual


Page | 56 Internet Technologies – Practical Manual
With Commands

Configure Router R1
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostR1
R1(config)#intf0/0
R1(config-if)#ip add 192.168.1.1 255.255.255.252
R1(config-if)#no shut
R1(config-if)#exit
R1(config)#
Configure Router R2
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostR2
R2(config)#intf0/0
R2(config-if)#ip add
R2(config-if)#ip address 192.168.1.2 255.255.255.252
R2(config-if)#no shut
R2(config-if)#exit
R2(config)#

Configure OSPF on router R1

Router(config-if)#exit
Router(config)#router ospf 10
Router(config-router)#network 192.168.1.0 0.0.0.3 area 0

Router(config-router)#network 192.168.1.0 0.0.0.3 area 0


Router(config-router)#
Router#

Configure OSPF on router R2

Router(config-if)#exit
Router(config)#router ospf 10
Router(config-router)#
00:30:46: %OSPF-5-ADJCHG: Process 10, Nbr 192.168.1.1 on FastEthernet0/0 from LOADING to
FULL, Loading Done

Router(config-router)#network 192.168.1.0 0.0.0.3 area 0

Router(config-router)#exit
Router(config)#exit

Page | 57 Internet Technologies – Practical Manual


Router#
%SYS-5-CONFIG_I: Configured from console by console

Router#sh 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, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route

Gateway of last resort is not set

192.168.1.0/30 is subnetted, 1 subnets


C 192.168.1.0 is directly connected, FastEthernet0/0

B] OSPF [ Single Area]

Page | 58 Internet Technologies – Practical Manual


Configure Router R0

Command Based:-

Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface FastEthernet0/0
Router(config-if)#ip address 192.168.2.1 255.255.255.0
Router(config-if)#no shutdown

Router(config)#interface FastEthernet0/1
Page | 59 Internet Technologies – Practical Manual
Router(config-if)#ip address 192.168.1.1 255.255.255.0
Router(config-if)#no shutdown

Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up

Configure Router R1

Page | 60 Internet Technologies – Practical Manual


With Commands:-
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface FastEthernet0/0
Router(config-if)#ip address 192.168.2.2 255.255.255.0
Router(config-if)#no shutdown

Router(config)#interface FastEthernet0/1
Router(config-if)#ip address 192.168.3.1 255.255.255.0
Router(config-if)#no shutdown

Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up

Configure OSPF on router R0

Router>enable
Router#conf
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#router ospf 10
Router(config-router)#network 192.168.2.0 0.0.0.255 area 0
Router(config-router)#network 192.168.1.0 0.0.0.255 area 0
Router(config-router)#exit
Router(config)#exit

Page | 61 Internet Technologies – Practical Manual


Router#
%SYS-5-CONFIG_I: Configured from console by console

Router#sh 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, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route

Gateway of last resort is not set

C 192.168.1.0/24 is directly connected, FastEthernet0/1


C 192.168.2.0/24 is directly connected, FastEthernet0/0
O 192.168.3.0/24 [110/2] via 192.168.2.2, 00:02:48, FastEthernet0/0
Router#

Configure OSPF on router R1

Router>enable
Router#conf
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#
Router(config)#router ospf 10
Router(config-router)#network 192.168.2.0 0.0.0.255 area 0
01:05:00: %OSPF-5-ADJCHG: Process 10, Nbr 192.168.2.1 on FastEthernet0/0 from LOADING to
FULL, Loading Done
Router(config-router)#network 192.168.3.0 0.0.0.255 area 0
Router(config-router)#
Router(config-router)#exit
Router(config)#exit
Router#
%SYS-5-CONFIG_I: Configured from console by console

Router#sh 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, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route

Gateway of last resort is not set

O 192.168.1.0/24 [110/2] via 192.168.2.1, 00:01:43, FastEthernet0/0


C 192.168.2.0/24 is directly connected, FastEthernet0/0
C 192.168.3.0/24 is directly connected, FastEthernet0/1

Page | 62 Internet Technologies – Practical Manual


Router#
Router#

C] OSPF [Multiarea] configuration

Configure Router R0

Page | 63 Internet Technologies – Practical Manual


Configure Router R1

Page | 64 Internet Technologies – Practical Manual


Configure Router R2

Page | 65 Internet Technologies – Practical Manual


Configure OSPF on router R0

Router>enable
Router#conf
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#router ospf 10
Router(config-router)#network 20.0.0.0 0.255.255.255 area 1
Router(config-router)#
Router(config-router)#network 10.0.0.0 0.255.255.255 area 1
Router(config-router)#

Router(config-router)#exit
Router(config)#exit
Router#
%SYS-5-CONFIG_I: Configured from console by console

Router#sh 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, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route

Page | 66 Internet Technologies – Practical Manual


Gateway of last resort is not set

O 10.0.0.0/8 [110/65] connected, Serial0/0/0


C 20.0.0.0/8 is directly connected, Serial0/0/0
C 30.0.0.0/8 is directly via 20.0.0.1, 00:05:06, Serial0/0/1
O 40.0.0.0/8 [110/65] via 30.0.0.2, 00:01:58, Serial0/0/1
Router#

Configure OSPF on router R1

Router>enable
Router#conf
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#router ospf 10
Router(config-router)#network 20.0.0.0 0.255.255.255 area 1
Router(config-router)#
00:30:40: %OSPF-5-ADJCHG: Process 10, Nbr 20.0.0.1 on Serial0/0/0 from LOADING to FULL,
Loading Done
Router(config-router)#network 30.0.0.0 0.255.255.255 area 0
Router(config-router)#
00:33:38: %OSPF-5-ADJCHG: Process 10, Nbr 40.0.0.1 on Serial0/0/1 from LOADING to FULL,
Loading Done

Router(config-router)#exit
Router(config)#exit
Router#
%SYS-5-CONFIG_I: Configured from console by console

Router#sh 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, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route

Gateway of last resort is not set

O 10.0.0.0/8 [110/65] via 20.0.0.1, 00:05:06, Serial0/0/0


C 20.0.0.0/8 is directly connected, Serial0/0/0
C 30.0.0.0/8 is directly connected, Serial0/0/1
O 40.0.0.0/8 [110/65] via 30.0.0.2, 00:01:58, Serial0/0/1
Router#

Configure OSPF on router R2

Router>enable
Router#configure terminal

Page | 67 Internet Technologies – Practical Manual


Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface Serial0/0/0
Router(config-if)#ip address 30.0.0.2 255.0.0.0
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface Serial0/0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to up

Router(config-if)#exit
Router(config)#interface FastEthernet0/0
Router(config-if)#ip address 40.0.0.1 255.0.0.0
Router(config-if)#no shutdown

Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

Router#
%SYS-5-CONFIG_I: Configured from console by console

Router#conf
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#router ospf 10
Router(config-router)#network 30.0.0.0 0.255.255.255 area 0
Router(config-router)#
00:33:29: %OSPF-5-ADJCHG: Process 10, Nbr 30.0.0.1 on Serial0/0/0 from LOADING to FULL,
Loading Done
Router(config-router)#network 40.0.0.0 0.255.255.255 area 0
Router(config-router)#exit
Router(config)#exit
Router#
%SYS-5-CONFIG_I: Configured from console by console

Router#sh 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, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route

Gateway of last resort is not set

O IA 10.0.0.0/8 [110/129] via 30.0.0.1, 00:00:18, Serial0/0/0


O IA 20.0.0.0/8 [110/128] via 30.0.0.1, 00:00:18, Serial0/0/0
C 30.0.0.0/8 is directly connected, Serial0/0/0
C 40.0.0.0/8 is directly connected, FastEthernet0/0
Router

Page | 68 Internet Technologies – Practical Manual


PRACTICAL 6
AIM: CONFIGURE DHCP AND DNS

DHCP Lab with Packet Tracer

A) DHCP with Router

Network: 192.168.10.0 255.255.255.0

Gateway Address: 192.168.10.1

DNS Server: 20.0.0.1

DHCP pool: 192.168.10.2 to 192.168.10.4

Excluded Address: 192.168.10.5 to 192.168.10.80

step 1 : Router0 Configuration

Config -> FastEthernet0/0

Page | 69 Internet Technologies – Practical Manual


step 1 : configure DHCP

Router0->CLI

Router(config)# ipdhcp pool test

Router(dhcp-config)# network 192.168.10.0 255.255.255.0

Router(dhcp-config)# default-route 192.168.10.1

Router(dhcp-config)# dns-server 20.0.0.1

Router(dhcp-config)# exit

step 3: Configure PC0

Desktop->IP Configuration select DHCP radio button and IP should be allocated dynamically.

Page | 70 Internet Technologies – Practical Manual


NOTE: To configure DHCP Server to exclude an IP address

Config->CLI

Router(config)#ipdhcp excluded-address 192.168.10.1

B) DHCP with Server

Network: 192.168.10.0 255.255.255.0

Gateway Address: 192.168.10.1

DNS Server: 20.0.0.1

DHCP pool: 192.168.10.2 to 192.168.10.4

Excluded Address: 192.168.10.5 to 192.168.10.80

Page | 71 Internet Technologies – Practical Manual


Step 1 : configure Server0

Desktop->IP Configuration

Page | 72 Internet Technologies – Practical Manual


Step 2 : configure DHCP

config->DHCP

after giving Default gateway nad DNS Server click Add

step 3: Configure PC0 , PC1 , PC2

Desktop->IP Configuration select DHCP radio button and IP should be allocated dynamically.

Page | 73 Internet Technologies – Practical Manual


DNS Configuration
Domain Name Server (DNS) Configuration

Page | 74 Internet Technologies – Practical Manual


Step 1 : Configure Server-0

Step 2 : Configure DNS Server

Config -> DNS

Enter a Domain Name in 'Name' field , add your Server IP Address in 'Address' field and
click add.

Make sure DNS Service is ON.

Page | 75 Internet Technologies – Practical Manual


Config -> HTTP

you can make changes in inedx.html file if you want. That's the file that will show up in on
DNS server

Page | 76 Internet Technologies – Practical Manual


Step 3 : Configure PC0

Desktop -> IP Configuartion

Step 4 : check if DNS Server is working

Desktop -> Web Browser

Type your Domain name in URL click GO

Page | 77 Internet Technologies – Practical Manual


Configure DHCP, DNS on the following topology

Step 1 : Configure Server-0 for DHCP

Desktop -> IP Configuration

Page | 78 Internet Technologies – Practical Manual


Config -> DHCP

After filling in all the details click add.

Step 2 : Configure PC0 and PC1 for DHCP

Desktop -> IP Configuration

Page | 79 Internet Technologies – Practical Manual


Step 3 : Configure Server-1 for DNS

Desktop -> IP Configuration

Page | 80 Internet Technologies – Practical Manual


Config -> DNS

Step 4 : Configure PC2 for DNS

Desktop -> IP Configuration

Give static IP address and Network mask and Default gateway of server1 in which we
configured DNS.

Page | 81 Internet Technologies – Practical Manual


Desktop -> Web Browser type Domain name in URL

Page | 82 Internet Technologies – Practical Manual


Practical 7
AIM: Configure FTP and HTTP

FTP :(File Transfer Protocol) is a protocol used to transfer files from client to server and
vice versa

Step 1:- Configure PC0

Page | 83 Internet Technologies – Practical Manual


Step 2:-Configure Router0
1) Fa 0/0

2)Fa 0/1

Page | 84 Internet Technologies – Practical Manual


Step 3:-Configure Server0

Step 4:- Configure FTP


Server->Services->FTP->make sure FTP service radio button is ON.
Now create user by entering username [Jatina] Password [1234] and check
all the privileges-write,read,delete,rename,list and click on + button to add
the user.
The user is now added into the list.

Page | 85 Internet Technologies – Practical Manual


Now create a file name khushi.txt on PC0 using text editor as shown in
the below diagram.

Click on PC0-> go to desktop tab and click on text editor.

Now we are ready to access ftp from PC0.Click PC0->Click on desktop tab->Click on
Command prompt and type the following command.

Page | 86 Internet Technologies – Practical Manual


Pc>ftp 192.168.1.2

As you can see the file khushi.txt is copied to server machine.

Page | 87 Internet Technologies – Practical Manual


Practical 8
Aim: Configure Telnet

Telnet:

1. Telnet sends data in clear text format.


2. Either an access control list is filtering the Telnet session or the VTY password is not
set on the remote device, then Telnet to remote device is not possible.
3. By default, Cisco router support five simultaneous Telnet sessions. The command
Router (config)#line vty 0 4,from global configuration mode, will configure all the
default VTY ports (five default VTY lines) on a router.
4. To enable a telnet session to a router, the password must be set up through the VTY
lines. If you don't set VTY password, the Cisco router will not allow telnet access.
5. To keep open one or more Telnet sessions open at the same time, use the key stroke
combination.
6. To end or terminate the Telnet session from a remote device, just type the command exit or
logout from a VTY line. The command show sessions will show active Telnet connections
to neighbor and remote devices.

Telnet with packet tracer:

Page | 88 Internet Technologies – Practical Manual


Step 1:-Configure Router

Configure router R1
Router>enable
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#host R1
R1(config)#int fa 0/0
R1(config-if)#ip address 10.0.0.1 255.0.0.0
R1(config-if)#no shut
R1(config-if)#int fa 0/1
R1(config-if)#ip address 20.0.0.1 255.0.0.0
R1(config-if)#no shut
R1(config-if)#exit
R1(config)#

Configure router R2

Page | 89 Internet Technologies – Practical Manual


Router>enable
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#host R2
R2(config)#int fa 0/1
R2(config-if)#ip address 20.0.0.2 255.0.0.0
R2(config-if)#no shut
R2(config)#int fa 0/0
R2(config-if)#ip address 30.0.0.1 255.0.0.0
R2(config-if)#no shut
R2(config-if)#exit
R2(config)#

Step 2:-Configure Static Routing


Configure static route on router R1
R1(config)#ip route 30.0.0.0 255.0.0.0 20.0.0.2
R1(config)#
Configure static route on router R2
R2(config)#ip route 10.0.0.0 255.0.0.0 20.0.0.1
R2(config)#

Step 3:-Configure Telnet

Configure telnet on router R2

R2(config)#line vty 0
R2(config-line)#login local
R2(config-line)#exit
R2(config)#username jatina password abc
R2(config)#line vty 0
R2(config-line)#enable password xyz
R2(config-line)# exit

Go to PC-1 and try to telnet

PC>telnet 30.0.0.1

Page | 90 Internet Technologies – Practical Manual


Notice that user Admin directly go to # prompt.
This is the power of privilege command.

Page | 91 Internet Technologies – Practical Manual


Page | 92 Internet Technologies – Practical Manual
PRACTICAL 9:
CONFIGURE SMTP, POP3, IMAP AND MIME.

step 1: configure server0

Desktop -> IP Configuration

Page | 93 Internet Technologies – Practical Manual


Config->email
check SMTP Service and POP3 Service is ON.
Give some random Domain Name -> click Set.
In User Setup, give user name and password and click "+",create 2 users.

step 2: configure Router0

Page | 94 Internet Technologies – Practical Manual


step 3: configure PC0

Desktop->IPConfiguartion

Page | 95 Internet Technologies – Practical Manual


Desktop-> Email

Page | 96 Internet Technologies – Practical Manual


Step 4 : Configure PC1

Desktop-> IP Configuration

Desktop->E mail

Page | 97 Internet Technologies – Practical Manual


Step 5 : compose an e-mail

PC1->Desktop->E mail->Compose->send

Step 6 : Receive PC0->Desktop->Email->Receive

Page | 98 Internet Technologies – Practical Manual

You might also like