Professional Documents
Culture Documents
Network Configuration
Network Configuration
Network Configuration
An Introductory Tutorial
Network Parameters
The following are common parameters that need to be set in a networked computer:
The logical (e.g. IP) address of the DNS servers to be used to resolve domain names These can be local (e.g. frankie.csfac8.uwindsor.ca) or remote (e.g. www.google.ca) This includes the computers name (e.g. elvis) and the domain on which it resides (e.g. csfac8.uwindsor.ca)
Network Parameters
This address is required to participate on a WAN, such as the Internet This is the binary mask that should be used to extract the network and subnet information from the hosts address This is the logical (e.g. IP) address of the router which should receive the hosts Internet-bound packets
DNS Servers
DNS servers use the DNS protocol to determine the logical (e.g. IP) address of a host, given its domain name
Many servers are given (in a specific order) so that local DNS servers are first
This is because the main DNS servers (Internic) would not know local domain names
e.g. An Internic server would know about uwindsor.ca, but not frankie.csfac8.uwindsor.ca)
Host name:
e.g. elvis
Domain name:
e.g. csfac8.uwindsor.ca refers to the LAN on the 8th floor of Lambton Tower
Given these two pieces of information, the hosts DNS name would be elvis.csfac8.uwindsor.ca
Depending on the operating system, the domain may require that you log on first
The network admin will create one or more domains, but each hosts user can determine the host name, provided it is unique
Logical Address
This
is typically an IP address
This address is necessary for all WAN (including Internet) communication Routing uses the logical address for finding the path for packets
These
Subnet Mask
The
subnet mask that it used by the host is the same subnet mask used by the nearest routers
e.g. If using 2-level subnetting of 2 and 3 bits, this mask would be the last subnet mask used (137.207.248.0)
A
network admin would know the subnet masks he/she assigned to each network
Default Gateway
The default gateway (router) is the router to which all Internet-bound traffic should be sent
Typically, a LAN will have exactly one router, and this will be its address If there is more than one router, and only one leads to the Internet, the Internet-connected routers address is used here If there is more than one router that connects to the Internet, either address could be used
Troubleshooting Networks
How to Determine Network Configuration or Hardware Problems
Troubleshooting
A
Thus, if anything goes wrong, the admin should track down the problem somehow
The problem may be a configuration error, which the admin should fix The problem may be a hardware failure, which can only be fixed by repairing or replacing the hardware
Nevertheless, the admin must determine which hardware has failed, so this can happen
A Typical Scenario
A
user calls up the network admin, saying their network connection is down
For most non-technical users, even this clear of a statement of the problem might not be possible A network admin will eventually figure at least this much out from the users comments
First, an admin will try to connect to a local computer This could mean DNS servers are unavailable
The admin should check the DNS server addresses, and the servers
cmd% ping 137.207.140.93 Destination host unreachable. Destination host unreachable. Destination host unreachable.
The admin should check the configuration settings (ipconfig, netconfig, networkadmin) However, if the ping command responds from a router that a host is unreachable, the node may actually be unreachable, or the address may not be bound
works by sending an ICMP Echo Reqest to the destination The destination sends back an ICMP Echo Reply to the host The host records the round trip time, and repeats the process a few times
In
In Windows (2000/XP), editing your network configuration settings can be done from TCP/IP properties
Open control panel, select Network Connections Select your connection, click Properties Select Internet Protocol (TCP/IP), click Properties From here you can edit your configuration settings manually, or specify that a DHCP should provide the values for you
This
Most likely the routing problem is within the organization The network administrator should check the route using the traceroute (traceroute, tracert) command
Testing Routes
The traceroute command can give the logical addresses of each router in a route
5: The 5th hop 30,17,17ms: Round trip times to/from the router cgowave-0-101.cgocable.net [24.226.0.101]: The domain name and address of the router
The router could be dropping packets (due to overloaded buffer or routing loops typically)
Initially, the hop limit is set to 1, which causes the first router to drop the packet
Routers, however, will respond with an ICMP Time Exceeded error message, which contains the routers IP address The process is repeated a few times to get a few round trip times The domain name of the IP address is found (for convenience of the network admin) Then 3, 4, etc. until the destination host is reached
If the routers reconfigure (e.g. due to congestion) during its execution, the readings could be inaccurate
A1
A2
A2
S
B2 B2
If the routers reconfigure (e.g. due to congestion) during its execution, the readings could be inaccurate
1 A1
A1
A2
A2
S
B2 B2
If the routers reconfigure (e.g. due to congestion) during its execution, the readings could be inaccurate
1 2 A1 A2
A1
A2
A2
S
B2 B2
If the routers reconfigure (e.g. due to congestion) during its execution, the readings could be inaccurate
1 2 A1 A2 D
A1
A2
A2
S
B2 B2
For networks with ICMP Echo Request/Reply disabled, the UDP format must be used
Some traceroute commands do not support the UDP message format, however
LAN Setup
10BaseT Ethernet 802.11g Wireless
Install a network interface card (NIC) into each computer (host) Connect each NIC to a hub or switch, using unshielded twisted pair (UTP) cabling Every frame received by a hub is reproduced on all of its ports Every frame received by a switch is examined, and the correct port is determined for the frame A Cable/DSL also provides network address translation (NAT)
Hub:
Install an 802.11g (or 802.11b) NIC into each host Plug a wireless router or base station into your Internet connection (e.g. cable modem) Configure the SSID and security protocols on the wireless router and each of the NICs
you have only a few hosts (2-3), you can create an ad hoc network
This type of network does not have a base station (or wireless router) The hosts communicate directly with one another
Wireless
Packet Sniffers
They can also be used by network programmers to diagnose packet format errors This includes the header information e.g. Wireless, Ethernet, TCP/IP, HTTP Ethereal (Linux/Mac/Windows, multi-protocol) TCPDump (Linux/Windows, TCP/IP) Kismet (Linux, wireless)
Ethereal Tutorial
Start Ethereal Select the correct network interface Start capturing packets, stop when done Select a packet from the list Examine the packet hierarchy and header information, such as:
Ethernet or wireless frame headers IP datagram headers TCP datagram headers SMTP message