Network Assignment Report
Network Assignment Report
Network Assignment Report
NCH
UNIVERS
ITY
INSTITU
TE OF
TECHNO
LOGY
DEPAR
TMENTSEC B GROUP
MEMBERS
OF NETSANET
CSITRAMIT/1512/05
WODAJE
SITOTA NANA
RAMIT/1549/05
MATEWOS
KEBEDE
RAMIT/1459/05
REDWAN ABETI SUBMITTED
RAMIT/1522/05 TO:
KIBREAB
Contents
1 Peer to peer network (data share)………………………………………………..
3
1.2DHCP configuration………………………………………………………………3
1.3Network troubleshooting commands
1.4wireless network connection…………………………………………………………7
1.5 VLAN………………………………………………………………………………….
1.5.1 Understanding Vlan…………………………………………………………………8
1.5.2 Advantages of Vlan…………………………………………………………………..8
1.5.3 Configuring vlan……………………………………………………………………….9
1.6 Routing Protocols ……………………………………………………………………..11
2. OSPF configuration……………………………………………………………………23
1
Peer to peer network (data share)
Peer to peer means two or more computers (less than 10)
Connected into the network either directly with cable or through awirless technology(wi-fi)
There are steps to share files between two computer connected by cable directly
Step 1 connecting two computer by cable (UTP cable).
Step 2 setting ip address to one of the computer by following these steps.
Control panel->view network status->local area connection->ipv4->properties->setting ip
address
Step 3 do the same procedure on the on the other computer with step 2 .
Step 4 select the file on one of computer which need to copy a file in to another computer
then follow the following procedure
File ->right click->share file->specific people->select from whom we want to send every one
then add->share
Sep 5 the second computer also do the same thing (step4) to the share a file with one
previously share a file to it
DHCP configuration
We are going ton DHCP configuration on would see how computer are connected to
the router, to swich and swich to router,and router to router.
In cisco packet tracer there is device such as router,switch,hub, computer cable…..etc
Cable can be divide in two category
Cross-over cable-> which used to connect the same type of device.
Straight through cable-> which used to connect different type of device.
To connect computer and router then
Connect through cross over with router
Select computer and router then
Connect through cross - over cable
Assigning ip address to the computer statically or dynamically for large number of computer
then config the router with CLI command
2
By passing the cisco packet tracer dialog(yes/no)no then to times enter
#Router >enable
#Router config t
#Router (conf-t) ip add xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx
#Router(conf-t) no shut ->specifies that the internal interface connection will remain open
#Router (config) exit -> exits interface configuration mode and return to
global configuration mode
Now we are going to deal about DHCP configuration .
For DHCP configuration we are used computer , switches and router.
First connecting computer with switch through cross-over cable then switch with router with
cross –over cable by selecting number of interface depend on the type of router and switch
that you selected at the start up
Switch used to connect the same network devices
To make the line open between switch and router we used these command
Click on the router goto CLI
By passing the cisco packet tracer dialog(yes/no):no
Twice enter
#Router>enable
#Router conf t
#Router int fa0/0 onto the router side
#Router ip add xxxx.xxxx.xxx.xxx xxxx.xxx.xxx.xxx
#Router ip address or default gateway
#Router no shut
#Router # exit
To define the DHCP address pool
By clicking on the router which is connecting to different computers
Then go to CLI
Passing the dialog(yes/no): n
#Router > enable
#Router #conf t
#Router(conf) #ip dhcp pool router name
Assigning the ip address to group of computers
3
#Router(dhcp-config)#network network xxx.xxx.xxx.xxx. yyy.yyy.yyy.yyy //
Where xxx.xxx.xxx.xxx is the network address to be used by the DHCP pool
yyy.yyy.yyy.yyy is subnet mask for the network
#Router (DHCP-config)#default –router xxx.xxx.xxx.xxx.xxx
To provide the ip address of the default gateway
#Router ( )#do wr// saving the work (configuration we have made.
#Router ( )#exit
Then all pcs get dynamically ip address.
Command= ipconfig/all->enter
Command:
4
100%loss-(when the two users are not connected we got 100%loss and request timed out)
0% loss-(the two clients are connected as well or we see amessage that says reply)
4-trancert :- it tells us the number of a packet passes until it reach its own destination
Specify the delay of the packet
is a computer network diagnostic tool for displaying the route
(path) and measuring transit delays of packets across an Internet
Protocol (IP) network.
Command:
Tracert->10.144.5.30(ip of our computer)->enter
The command:
netstat->enter
7-netstat –an:-
same with netstat but it deals with TCP or UDP
COMMAND:
Netstat -an
8-pathping :-
Comabination of two commands i.e ping and tracert
Functions as two commands
Command:
5
Path ping 10.144.12.2 (ip address)
10-getmac:-
it tells one’s own computer’s mac address.
- mac Address can be disabled,if mac is disabled by any means one cannot use an internet
access.
Command:
Getmac->enter
6
We picked up two pcs to connect with the wireless device with out the usage of
cable
Firstly we click on the first pc ,then physical- we have light that is on so we are
going to make it off, then after we will drag and drop zoom in turn we will drug and
drop on Linksys-WMP300N from the modules.
After drag and drop process we will turn light on
The same procedure is taken to the other pc.
To ensure the wireless connection
Pc client->config ->wireless->WEP(wired eqievalence privacy)
We will give password for the ssid (name of the company and any other)
Here apassword is made of 10 digit which can number or alphabet
After finishing the above process we will click or proced to desktop->then pc
wireless ->connect
It is must be give password to make the adpter is active
After giving the required password we will click on connect
So we can make the adapter active.
Both pcs go through the same process.
After finishing give the required password the pcs can directly
VLAN
Understanding VLANs
A VLAN is a switched network that is logically segmented by function, project
team, or application, without regard to the physical locations of the users. VLANs
have the same attributes as physical LANs, but you can group end stations even if
they are not physically located on the same LAN segment. Any switch port can
belong to a VLAN, and unicast, broadcast, and multicast packets are forwarded
and flooded only to end stations in the VLAN. Each VLAN is considered a logical
network, and packets destined for stations that do not belong to the VLAN must
be forwarded through a router or bridge . Because a VLAN is considered a
separate logical network, it contains its own bridge Management Information
Base (MIB) information and can support its own implementation of spanning tree.
Advantages of vlan
7
It is departmental wise
It minimize collission
Enhance security
Easy for network adminstration
Configuring vlan
Elec
Csit
8
Computers on the cs&it side assigned ip address statically by clicking on computers
then desktop .
Statically assigning ip address starting from 192.168.10.2 ,subnetmask
255.255.255.0,defaylt gateway 192.168.10.1
For acomputera on eletrical departments ip address assigning starts from
192.168.11.2,subnetmask 255.255.255.0,default gateway 192.168.11.1
Switch>en //
Switch#conf t //configuring terminal means enter to global
configuration mode
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 10
*/in global configuration mode ,this command defines avlan and
puts aswitch in to avlan configuration mode.*/
Switch(config-vlan)#name csit // used to further define the vlan
Switch(config-vlan)#vlan 20
Switch(config-vlan)#name elec
Switch(config-vlan)#exi
Switch(config)#int fa0/1
Switch(config-if)#switchport mode access //defin then vlan membership mode
for the port
Switch(config-if)#switchport access vlan 10 */assign the port to vlan .valid vlan
ids are
1up to 4094 */
Switch(config-if)#exi //return to global configuration
mode
Switch(config)#int fa0/3 // inter the interface to be added
to vlan
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 10
Switch(config-if)#exi
Switch(config)#int fa0/2
Switch(config-if)#switchport mode access
9
Switch(config-if)#switchport access vlan 20
Switch(config-if)#exi
Switch(config)#int fa0/4
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 20
Switch(config-if)#exi
Switch(config)#int fa0/5
Switch(config-if)#switchport mode trunk * / puts the interface able to
convert the link to atrunk link .the interface becomes atrunk interface if the
neghoring interface is set to trunk or desirable mode */
Switch(config-if)#exi
Router>enable
Router#conf t
Router(config-subif)#int fa0/0.10
*/ configure a subinterface for each VLAN the link will be a trunk for.
The interface number can be anything you want * /
Router(config-subif)#encapsulation dot1q 10
*/ Allows you to use a router interface as a trunk port to a switch. This is also
known as
"Router on a stick" because the switch uses the router to route between VLANs.*/
Router(config-subif)#ip add 192.168.10.1 255.255.255.0 //ip address of the router
and its subnet mask.
Router(config-subif)#int fa0/0.20
Router(config-subif)#ip add 192.168.11.1 255.255.255.0
Router(config-subif)#no shut // opening the line for
aconnection
Router(config-subif)#exi
Router(config)#int fa0/0
Router(config-if)#no shut
10
Routing Protocols
Distance Vector, Link State RIP, IGRP, EIGRP, OSPF
Routing protocols were created for routers. These protocols have been designed to allow the
exchange of routing tables, or known networks, between routers. There are a lot of different
routing protocols, each one designed for specific network sizes, so I am not going to be able
to mention and analyse them all, but I will focus on the most popular.
The two main types of routing: Static routing and Dynamic routing
Static routing is only optimal in a few situations. Network degradation, latency and
congestion are inevitable consequences of the non-flexible nature of static routing because
there is no adjustment when the primary route is unavailable.
Static known as oldest design configuration
Dynamic routing uses multiple algorithms and protocols. The most popular are Routing
Information Protocol (RIP) and Open Shortest Path First (OSPF).
There are 3 types of Dynamic routing protocols, these differ mainly in the way that they
discover and make calculations about routes:
1. Distance Vector. Distance Vector routers compute the best path from information passed
to them from neighbors
2. Link State. Link State routers each have a copy of the entire network map and compute
best routes from this local map
3. Hybrid
The Table below shows the main characteristics of a few different types of dynamic routing
protocols:
11
When we configure with RIP v1,RIP v2, IGRP it doesn’t need to write subnet
mask
Eg
#router RIP
#Version ½
#exit
12
--- System Configuration Dialog ---
Continue with configuration dialog? [yes/no]: no
Router>en
Router#conf t
Router(config)#hostname g3complab
g3complab(config)#int fa0/0
g3complab(config-if)#ip add 192.168.1.1 255.255.255.0
g3complab(config-if)#no shut
g3complab(config-if)#exit
g3complab(config)#int fa0/1
g3complab(config-if)#ip add 192.168.3.1 255.255.255.0
g3complab(config-if)#no shut
13
g3complab(config-if)#exit
g3complab(config)#ip dhcp pool router
g3complab(dhcp-config)#network 192.168.1.0 255.255.255.0
g3complab(dhcp-config)#default-router 192.168.1.1
g3complab(dhcp-config)#exit
g3complab(config)#ip route 192.168.2.0 255.255.255.0 192.168.3.2
g3complab(config)#do wr
Building configuration...
[OK]
g3complab(config)#
14
g4complab(dhcp-config)#default-router 192.168.2.1
g4complab(dhcp-config)#exit
g4complab(config)#ip route 192.168.1.0 255.255.255.0 192.168.3.1
g4complab(config)#do wr
Building configuration...
[OK]
g4complab(config)#
15
Router(config)#hostname g3complab
g3complab(config)#int fa0/0
g3complab(config-if)#ip add 192.168.1.1 255.255.255.0
g3complab(config-if)#no shut // Interface FastEthernet0/0, changed state to up
g3complab(config-if)#exit //back to global configuration or Exit from the EXEC
g3complab(config)#int fa0/1
g3complab(config-if)#ip add 192.168.3.1 255.255.255.252
g3complab(config-if)#no shut
g3complab(config-if)#exit
g3complab(config)#ip dhcp pool main
g3complab(dhcp-config)#network 192.168.1.0 255.255.255.0
g3complab(dhcp-config)#default-router 192.168.1.1
g3complab(dhcp-config)#exit
g3complab(config)#router ospf 2
g3complab(config-router)#network 192.168.1.0 0.0.0.255 area 0
g3complab(config-router)#network 192.168.3.0 0.0.0.3 area 0
g3complab(config-router)#end
g3complab#write// to save our config
Building configuration...
[OK]
configuration of g4complab
--- System Configuration Dialog ---
Continue with configuration dialog? [yes/no]: n
Router>en
Router#conf t //Enter configuration mode
Router(config)#hostname g4complab
g4complab(config)#int fa0/0
g4complab(config-if)#ip add 192.168.2.1 255.255.255.0
16
g4complab(config-if)#no shut
g4complab(config-if)#exit
g4complab(config)#int fa0/1
g4complab(config-if)#ip add 192.168.3.2 255.255.255.252
g4complab(config-if)#no shut
g4complab(config-if)#
g4complab(config-if)#exit
g4complab(config)#ip dhcp pool main
g4complab(dhcp-config)#network 192.168.2.0 255.255.255.0
g4complab(dhcp-config)#default-router 192.168.2.1
g4complab(dhcp-config)#exit
g4complab(config)#router ospf 1
g4complab(config-router)#network 192.168.2.0 0.0.0.255 area 0
g4complab(config-router)#network 192.168.3.0 0.0.0.3 area 0
g4complab(config-router)#end
g4complab#write// Write running configuration to memory, network, or terminal
Building configuration...
[OK]
17
Console
the console port can be used to configure the complete configuration at any time. This makes
it very important to protect the console port with a password.
To configure a console user-mode password, use the Line command from global
configuration mode. There is only one console port on all routers, so the command is
line console 0
Router#config t
Router(config)#line console 0
Router(config-line)# // tells you that you are configuring the console, aux, or VTY lines.
To finish configuring the console port, you can use two more commands:
Login:This tells the router to look under the console line configuration for the
password. If you do not use this command, you will not be prompted for a password
when you connect to the router’s console port.
Password: This sets the console user-mode password. It is case sensitive.
Router#config t
Router(config)#line con 0
Router(config-line)#login
Router(config-line)#password netsi
VTY (Telnet)
The Virtual Teletype (VTY) lines are used to configure Telnet access to a Cisco router. As I
mentioned earlier, the VTY lines must be configured for Telnet to be successful.
Router#config t
Router(config)#line vty 0 4
Router(config-line)#login
Router(config-line)#password gift
Enable password
The Enable password is used to allow security on a Cisco router when an administrator is
trying to go from user mode to privileged mode. The Enable password is an old, unencrypted
password that will prompt for a password when used from privileged mode.
Here is an example:
Router#config t
Router(config)#enable password red
Router(config)#exit
Router#disable (the disable command takes you from privilege mode back to user mode)
18
Router>enable
Enter password:
Enable Secret
it is encrypted by default and supercedes Enable if it is set. In other words, if you set the
Enable password and then set the Enable Secret password, the Enable password will never be
used.
Here’s an example:
Router#config t
Router(config)#enable secret teku
To encrypt your passwords, use the global configuration command,then:-
Router#config t
Router(config)#service password-encryption
Router(config-line)#line con 0
Router(config-line)#login
Router(config-line)#password mati
Router(config-line)#exit
Case study
A network administrator have 192.168.2.0/24 network. The suffix/24 (prounonced as
slash 24) tell the number of bits used for the network address.he is having four
different campus with different number of hosts main campus has 100 hosts,Abaya
campus has 50 computers,nechsar –campus has 25 computer and chamo campus
has 5 computer.in e classfull ip address ,the subnet are fixed size.using the same
methodology the administrator can not fulfill all requirement f network.Therefore
show how VLSM(variable subnet mask ) can be used in order to allocate deparment
wise ip address. First sort sort the requirement of ips in decending order(highest to
order) then
I. For each department find out of the following:
a. Network address
b. Subnet mask
c. Getway address
d. First and last usable address
e. Broadcast address
II. Using OSPF config the following network
19
VLSM (VARIABLE LENGTH SUBNET MASK) CALCULATION
Variable Length Subnet Masking (VLSM) is a way of further subnetting a subnet.
Using Variable Length Subnet Masking (VLSM) we can allocate IPv4 addresses to
the subnets by the exact need. Variable Length Subnet Masking (VLSM) allows us to
use more than one subnet mask within the same network address space.we can divide
a network only into subnets with equal number of IPv4 addresses. Variable Length
Subnet Masking (VLSM) allows to create subnets from a single network with unequal
number of IPv4 addresses.
Example: We want to divide 192.168.2.0/24, which is a Class C network, into four networks,
each with unequal number of IPv4 addresses requirements as shown below.
11000000.10101000.00000010.00000000
11111111.11111111.11111111.10000000
20
11000000.10101000.00000010.10000000
11111111.11111111.11111111.110000000
11000000.10101000.00000010.11000000
11111111.11111111.11111111.11100000
11000000.10101000.00000010.11100000
11111111.11111111.11111111.11111000
21
OSPF configuration
22
main(config-router)#network 192.168.1.0 0.0.0.127 area 0
main(config-router)#network 192.168.3.0 0.0.0.3 area 0
main(config-router)#end
main#wr
Building configuration...
[OK]
Configuration for abayaa campus
Continue with configuration dialog? [yes/no]: n
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname abaya
abaya(config)#int fa0/0
abaya(config-if)#ip add 192.168.2.129 255.255.255.192
abaya(config-if)#no sh
abaya(config-if)#exit
abaya(config)#int fa0/1
abaya(config-if)#ip add 192.168.3.2 255.255.255.252
abaya(config-if)#no shut
abaya(config-if)#exit
abaya(config)#int fa0/1
abaya(config-if)#ip add 192.168.3.2 255.255.255.252
abaya(config-if)#no shut
abaya(config-if)#exit
abaya(config)#int fa1/0
abaya(config-if)#ip add 192.168.4.1 255.255.255.252
abaya(config-if)#no shut
abaya(config-if)#exit
baya(config)#ip dhcp pool main
abaya(dhcp-config)#network 192.168.2.128 255.255.255.192
abaya(dhcp-config)#default-router 192.168.2.129
abaya(dhcp-config)#end
23
abaya#
abaya#wr
Building configuration...
[OK]
abaya(config)#router ospf 2
abaya(config-router)#network 192.168.2.128 0.0.0.63 area 0
abaya(config-router)#network 192.168.3.0 0.0.0.3 area 0
abaya(config-router)#network 192.168.4.0 0.0.0.3 area 0
abaya(config-router)#end
abaya#wr
Building configuration...
[OK]
Configuration of nechasar campus
Continue with configuration dialog? [yes/no]: no
Router>en
Router#conf t
Router(config)#hostname nechsar
nechsar(config)#int fa0/0
nechsar(config-if)#ip add 192.168.2.193 255.255.255.224
nechsar(config-if)#no sh
nechsar(config)#int fa0/1
nechsar(config-if)#ip add 192.168.4.2 255.255.255.252
nechsar(config-if)#no sh
nechsar(config-if)#exit
nechsar(config)#int fa1/0
nechsar(config-if)#ip add 192.168.5.1 255.255.255.252
nechsar(config-if)#no shut
nechsar(config-if)#exit
nechsar(config)#ip dhcp pool main
nechsar(dhcp-config)#network 192.168.2.192 255.255.255.224
abaya(dhcp-config)#default-router 192.168.2.193
nechsar(dhcp-config)#end
24
nechsar#wr
Building configuration...
[OK]
nechsar(config)#router ospf 3
nechsar(config-router)#network 192.168.2.192 0.0.0.31 area 0
nechsar(config-router)#network 192.168.4.0 0.0.0.3 area 0
nechsar(config-router)#network 192.168.5.0 0.0.0.3 area 0
nechsar(config-router)#end
nechsar#wr
Building configuration...
[OK]
Configuration of chamo campus
Continue with configuration dialog? [yes/no]: n
Router>en
Router#conf t
Router(config)#hostname chamo
chamo(config)#int fa0/0
chamo(config-if)#ip add 192.168.2.225 255.255.255.248
chamo(config-if)#no sh
chamo(config-if)#exit
chamo(config)#int fa0/1
chamo(config-if)#ip add 192.168.5.2 255.255.255.252
chamo(config-if)#no sh
chamo(config-if)#exit
chamo(config)# ip dhcp pool main
chamo(dhcp-config)# network 192.168.2.224 255.255.255.248
chamo(dhcp-config)# default-router 192.168.2.225
chamo(dhcp-config)#end
chamo#wr
Building configuration...
[OK]
chamo(config)#router ospf 4
25
chamo(config-router)#network 192.168.2.224 0.0.0.7 area 0
chamo(config-router)#network 192.168.5.0 0.0.0.3 area 0
chamo(config-router)#end
mchamo#wr
Building configuration...
[OK]
26