Setting up a Peer-to-Peer PC Network Copyright 2003 Prentice-Hall Panko’s Business Data Networks and Telecommunications, 4 th edition
Setting up a Peer-to-Peer PC Network
Copyright 2003 Prentice-HallPanko’s Business Data Networks and Telecommunications, 4th edition
2
Peer-to-Peer PC Networks
No Dedicated Servers
Clients Provide Services to One Another
A B
A can print to B’s printer
B’s printer appears to be a local printer once it is set up on A
3
Peer-to-Peer PC Networks
No Dedicated Servers
Clients Provide Services to One Another
A B
B can store files to parts of A’s hard disk, retrieve files from parts of A’s hard disk
4
Advantages and Disadvantages
Advantage Avoid cost of purchasing a dedicated server No need to learn a server NOS
Disadvantages: Operational Difficulties If someone shuts off or crashes their PC, others
using its server will have service shut off or can even lose data.
Maximum size because of these operational difficulties is about 10, but 2-4 PCs is a more realistic size
5
Advantages and Disadvantages
Disadvantages: Unreliability NOSs for servers are highly reliable
PC operating systems are not as reliable
More frequent crashes even if users are not at fault
6
Advantages and Disadvantages
Disadvantages: Security On a dedicated
server, each user has an account and password
Access to resources can be limited by individual user
User LeePassword XYZ
User ChenPassword ABC
Chen may useLee may not
User-Level Security
7
Advantages and Disadvantages
Disadvantages: Security On a client,
each shared resource is called a share
For instance, a printer
For instance, a hard disk directory
Share (Printer)
8
Advantages and Disadvantages
Disadvantages: Security Passwords for
shares, not for users
All users share the same password
Passwords tend to be shared freely
Share (Printer A)Password: RTU
Print to Printer APassword RTU
Print to Printer APassword RTU
Share-Level Security
9
Advantages and Disadvantages
Disadvantages: Security
Users are not experts in setting up shares
May accidentally share parts of their hard disk they should not be sharing
May give out share passwords appropriately
10
Your LAN Card
11
Your Computer Software
12
Your Wiring: 4-Pair Unshielded TwistedPair Cable with RJ-45 Connector
RJ-45Connector
UTP Cord
Setting Up a PC to Provide Services to Others
14
Setting Up a PC to Provide Service
Install NIC and Network software
Turn on File Service in General Go to Start, Settings, Control Panel (Windows 98)
Double click on Networking Icon
On the Configuration tab, choose File and Print Sharing
15
Setting Up a PC to Provide Service
Click onFile and PrintSharingTo enableSharingIn General
16
Setting Up a PC to Provide Service
Clicking on File and Print Sharing will take you to this dialog box
17
Setting Up a PC to Provide Services
The Situation You have turned on print and file sharing
However, by default, all resources are not shared
So nothing is available to other users yet!
18
Setting Up a PC to Provide Services
Sharing Individual Resources Right click on directory or printer to be shared in
Explorer or My Computer Select Sharing Give the share a name Choose read-only or full access Choose a password for the resource You can choose two passwords—one for read-only
access, another for full access Give out passwords to approved people
19
Setting Up a PC to Provide Services
Share Name
Type of Access
Password(s)(Case-sensitive)
Sharing Tab
Get Read-Only or FullBased on What Password Typed
20
Setting Up a PC to Provide Services
Must go to Network dialog box’s Identification tab
Give the computer a name
Give the computer a workgroupname
21
Setting Up a PC to Provide Services
Recap
Turn on file and print sharing
Select resources to be shared and share them, giving password restrictions
Set up Identification tab to give the computer a name and specify its workgroup
Setting Up a PC to Use Services Provided by Others
23
Setting Up a PC to Use Services
General Steps Install NIC and network software (Ch. 4a)
On the Network dialog box’s Identification tab Give the user’s computer a name Type in the workgroup name shared by all users
24
Setting Up a PC to Use Services
Using Shared Files: Explorer or My Computer
In Explorer or My Computer, go to Network Neighborhood
The name of the computer sharing files should appear. Click on it
The names of shared directory resources should appeared. Click on the one you want
Type the password if one has been specified
You can read files. With full access can delete, etc.
25
Setting Up a PC to Use Services
Using Shared Files: Explorer or My Computer
SharedDirectories
26
Setting Up a PC to Use Services
Using Shared Files: In an Application Go to File Open (or Save)
Go to Network Neighborhood
The name of the computer sharing the directory should appear. Click on it
The names of shared directory resources should appeared. Click on the one you want
Type the password if one has been specified
You can now open files in the directory (or save a file in the directory)
27
Setting Up a PC to Use Services
Using a Shared Printer You first must set up the printer on your PC
Go to Start, Settings, Printers (in Windows 98)
Choose Add Printer
In the Wizard, select Network Printer when asked how the printer is attached to the computer
Select the shared printer you wish to use
In applications, select this printer when you print and want the output to go to the printer
Shared Internet Access for a Peer-to-Peer PC Network
Using an Access Router
29
Must have a broadband
connection and an access router
Shared Internet Access
Switch (needed forPeer-to-Peer networkinganyway
Cable Modem or DSL Modem to ISP
AccessRouter
UTP
UTP
30
Shared Internet Access
Access Router Front and Back
To Switch
To DSL orCable Modem
Front
Back
Router is about 10 cm (4”) Wide
31
Many AccessRouters Now Have
A Built-In Switch
Shared Internet Access
Access Router withBuilt-In Switch
Cable Modem or DSL Modem to ISP
UTP
32
Shared Internet Access
DHCP Access router has a built-in DHCP server
Gives private IP addresses to individual PCs
E.g., 192.168.1.5, 192.168.1.47, etc.
Gives other configuration information as well
Individual PCs must have “Obtain an IP address automatically selected on the Network Configuration tab
33
Shared Internet Access
Network Address Translation Translates between single IP address given by ISP
and DHCP-given IP addresses
Access Router withBuilt-In SwitchISP IP Address
10.0.0.23
192.168.1.5
192.168.1.23
34
Shared Internet Access
Firewall Router may or may not have a weak firewall PCs should have personal firewalls too
Perhaps a Weak Firewall Personal
Firewall
PersonalFirewall