Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

FIT327 03 - Tutorial - Real LAN Configuration

Download as pdf or txt
Download as pdf or txt
You are on page 1of 9

HANOI UNIVERSITY

Faculty of Information Technology

FIT 327 – Tutorial Guide


Week 3
LAN Configuration
(Windows & Linux environment)

I. Draw a network map:


Using Package Tracer to draw a network map of our 408 lab which has two switch
and some PCs.

Remember:
- Use straight-through cable to connect switch-PC.
- Use cross-over cable to connect switch-switch.

II. Configure your PC in lab 408:


IP range (192.168.28.1 - 192.168.28.253)
Network mask (255.255.255.0)
Gateway (192.168.28.254)
DNS Server (192.168.1.1 / 192.168.1.3)

- Click on Network icon in the System Tray  choose Properties


or Start  Control Panel  Network Connections  right click on "Local Area
Network" then choose Properties.
- Double click on “Internet Protocol (TCP/IP)”, fill in information then click OK.

Here I choose 192.168.28.111 for my PC’s IP address. You can choose any IP from
the IP range. However, to avoid IP conflict (because PCs in the same network cannot
have the same IP), you can choose number based on your student ID number, for
example: your student ID is 0501040101 so you can choose IP like: 192.168.28.101

- Open cmd (Start  Run  type cmd) and ping your own PC’s IP and then your
friend PC:
For example: ping 192.168.28.111
III. Work with some Commands.
Open cmd on your PC to work with these commands.

1. ipconfig

Configure IP (internet protocol configuration)

Syntax:

ipconfig /all: Display full configuration information.

ipconfig /release [adapter]: Release the IP address for the specified adapter.
For example: ipconfig /release "Local Area Connection"

ipconfig /renew [adapter]: Renew the IP address for the specified adapter.
For example: ipconfig /renew "Local Area Connection"

More @ http://www.ss64.com/nt/ipconfig.html

2. ping

Ping is used to test whether a particular host is reachable across an IP network or to


self test the network interface card or as a speed test.

It works by sending ICMP echo request packets to the target host and listening for
ICMP echo response replies.

Example:
In lab 414C we may not ping fit.hanu.vn so just try pinging other PCs in lab or
gateway. You can practice more at home.

210.245.52.227: IP address of fit.hanu.vn


byte=32: size of ping packet (32 bytes)
times=13ms: round trip times - The elapsed time for transit of a signal over a closed circuit, or time
elapsed for a message to a remote place and back again.
TTL=57: is a limit on the period of time or number of iterations or transmissions in computer and
computer network technology that a unit of data (e.g. a packet) can experience before it should be
discarded.

When the host was down:


When the host was up:

When IP address was out of range:

More @ http://en.wikipedia.org/wiki/Ping

3. nslookup

DNS (Domain Name System) is an internet system to translate names into IP


addresses and nslookup (Name server lookup) is used to query DNS servers to find
DNS details.

More @ http://en.wikipedia.org/wiki/Nslookup
4. netstat

Netstat displays network connections (both incoming and outgoing), routing tables, and
a number of network interface statistics.

For using parameters guide, please see more @ http://en.wikipedia.org/wiki/Netstat

5. tracert

Tracert (similar to traceroute in Linux) allows you to determine the route packets
take through a network to reach a particular host that you specify.
For using parameters guide, type: tracert /?

More @ http://www.windowsnetworking.com/articles_tutorials/Using-Tracert.html

6. nmap

Go to moodle and download nmap for Windows. After installing, read the instruction
on executing Nmap on Windows: http://nmap.org/book/inst-windows.html

Nmap (Network Mapper) is a security scanner used to discover computers and


services on a computer network.

nmap [ <Scan Type> ...] [ <Options> ] { <target specification> }


Reference Guide for using Nmap: http://nmap.org/book/man.html

IV. EXTRA: Network configuration in Linux (Debian)


Login Debian using this account:
User: fit
Password: fit

Using graphic interface: Open network configuration tool in the top bar at System 
Administration  Network

or

Using command line (recommended): Open terminal tool in the top bar at
Applications  Accessories  Terminal

If you use command line, follow these steps:


+ Switch to root account: type in the terminal this command: su root, then
type the password, which is: fit09hanu
+ Open and edit interface file, type this into the terminal:
nano /etc/network/interfaces
+ by default you'll see something like this:
# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface - use DHCP to find our


address
auto eth0
iface eth0 inet dhcp
+ And if you want to fix your IP, modify it to:
# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface


auto eth0
iface eth0 inet static
address 192.168.28.101
gateway 192.168.28.254
netmask 255.255.255.0
+ After changes are made, don't forget to restart the networking by running
/etc/init.d/networking restart in the terminal.

To see the IP address of your machine, in the terminal (using root account)
type: ifconfig (in Windows, it is ipconfig, don’t be confused).

Ping from other PC to check your network configuration.

IV. Self-study
Try configuring network in some other distributions of Linux.

You might also like