eg-253:networkq:382392
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
eg-253:networkq:382392 [2007/11/22 12:35] – dasman | eg-253:networkq:382392 [2011/01/14 12:59] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | |||
+ | ====== Network Configuration: | ||
+ | |||
+ | ^EG-253^Practical Internet Technology II ^ | ||
+ | |**Name** |Nicolay Parashkevanov | | ||
+ | |**Student Number** |382392 | | ||
+ | |**Date of Submission** |22 November 2007 | | ||
+ | |||
+ | is wiki page directly to insert your answers. You will probably find this most convenient | ||
+ | |||
+ | When the exercise is complete you should [[# | ||
+ | |||
+ | This exercise is worth 20% of the module marks. | ||
+ | |||
+ | ===== Host Configuration ===== | ||
+ | |||
+ | |||
+ | ==== Question 1 ==== | ||
+ | |||
+ | |||
+ | Which Linux command gives you information about your computer' | ||
+ | |||
+ | **Answer** (//delete as appropriate// | ||
+ | |||
+ | |||
+ | hostname | ||
+ | |||
+ | |||
+ | |||
+ | ==== Question 2 ==== | ||
+ | |||
+ | Use the command selected in [[# | ||
+ | |||
+ | **callisto**: | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ==== Question 3 ==== | ||
+ | |||
+ | Which configuration file would you need to edit to change your computer' | ||
+ | |||
+ | Your answer (//one of//): | ||
+ | |||
+ | |||
+ | / | ||
+ | | ||
+ | |||
+ | |||
+ | ==== Question 4 ==== | ||
+ | |||
+ | Which linux command gives you information on your host's network settings? | ||
+ | |||
+ | **Answer** //one of//: | ||
+ | |||
+ | |||
+ | ifconfig | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ==== Question 5 ==== | ||
+ | |||
+ | Use the command selected in [[# | ||
+ | ^ Feature ^ Value ^ | ||
+ | | My host's IP address | 192.168.2.2 | ||
+ | | My network' | ||
+ | | The address used by my host to send an IP packet to all hosts on my network | 192.168.2.255 | | ||
+ | | The netmask of my host | 255.255.255.0 | | ||
+ | | The hardware address (MAC Address) of my LAN-facing network interface connection (NIC)((If your host has two or more network cards, the LAN-facing card will be the NIC assigned to your host's static IP address.)) | 00: | ||
+ | | The frame-level (layer 1) protocol is used to send network messages to the network from my host? | Ethernet | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ==== Question 6 ==== | ||
+ | |||
+ | How many hosts can the sub-net defined by your host's netmask support? | ||
+ | |||
+ | **Answer** //one of//: | ||
+ | |||
+ | 254 | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ==== Question 7 ==== | ||
+ | |||
+ | What class of network is the //sub-net// to which your host has been assigned? | ||
+ | |||
+ | **Answer** //one of//: | ||
+ | |||
+ | |||
+ | Class C | ||
+ | | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ===== Network Configuration ===== | ||
+ | |||
+ | **Answer** the following questions about your network configuration. Please copy and paste the contents of the files identified in [[# | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ==== Question 8 ==== | ||
+ | |||
+ | |||
+ | In which file is the configuration of your Network Interface Controller (NIC) configured? | ||
+ | |||
+ | **Answer** //one of//: | ||
+ | |||
+ | |||
+ | / | ||
+ | |||
+ | |||
+ | Please include a listing of the file chosen in answer to [[# | ||
+ | |||
+ | auto lo | ||
+ | iface lo inet loopback | ||
+ | |||
+ | auto eth0 | ||
+ | iface eth0 inet static | ||
+ | | ||
+ | network 192.168.2.0 | ||
+ | netmask 255.255.255.0 | ||
+ | gateway 192.168.2.1 | ||
+ | |||
+ | auto eth1 | ||
+ | iface eth1 inet dhcp | ||
+ | |||
+ | auto eth2 | ||
+ | iface eth2 inet dhcp | ||
+ | |||
+ | auto ath0 | ||
+ | iface ath0 inet dhcp | ||
+ | |||
+ | auto wlan0 | ||
+ | iface wlan0 inet dhcp | ||
+ | |||
+ | ~ | ||
+ | |||
+ | ==== Question 9 ==== | ||
+ | |||
+ | What is the IP address of the host which serves as the default gateway for your network? | ||
+ | |||
+ | **192.168.2.1**: | ||
+ | |||
+ | |||
+ | ==== Question 10 ==== | ||
+ | |||
+ | What is the hostname of the gateway interface? | ||
+ | |||
+ | **Answer**: | ||
+ | |||
+ | jupiter | ||
+ | ==== Question 11 ==== | ||
+ | |||
+ | In which file is the symbolic names of the networks, hosts and interfaces available on the network defined? | ||
+ | |||
+ | **Answer** //one of//: | ||
+ | |||
+ | / | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | Please include a listing of the file chosen in answer to [[# | ||
+ | |||
+ | 127.0.0.1 | ||
+ | 127.0.1.1 | ||
+ | |||
+ | |||
+ | |||
+ | # /etc/hosts -- Hosts file for ICCT Private network | ||
+ | # | ||
+ | # IP FQDN | ||
+ | # | ||
+ | 127.0.0.1 | ||
+ | # | ||
+ | 192.168.1.1 | ||
+ | 192.168.1.2 | ||
+ | # | ||
+ | # Jupiter cluster | ||
+ | # | ||
+ | 192.168.1.3 | ||
+ | 192.168.2.1 | ||
+ | 192.168.2.2 | ||
+ | 192.168.2.3 | ||
+ | 192.168.2.4 | ||
+ | # | ||
+ | # Saturn cluster | ||
+ | "/ | ||
+ | |||
+ | |||
+ | ==== Question 12 ==== | ||
+ | |||
+ | What is the symbolic name of your network' | ||
+ | |||
+ | **Answer**: | ||
+ | |||
+ | gw-jupiter.icct.com | ||
+ | |||
+ | ==== Question 13 ==== | ||
+ | |||
+ | What is the purpose of the Gateway interface? | ||
+ | |||
+ | **Answer**: | ||
+ | |||
+ | to forward packets to other networks and receive packets from other networks. | ||
+ | |||
+ | |||
+ | |||
+ | ==== Question 14 ==== | ||
+ | |||
+ | Which linux command shows the routing table for your host? | ||
+ | |||
+ | **Answer**: | ||
+ | route -n | ||
+ | |||
+ | Run the command identified in [[# | ||
+ | |||
+ | **Answer** | ||
+ | |||
+ | <cli prompt=" | ||
+ | icct@callisto: | ||
+ | Kernel IP routeing table | ||
+ | Destination | ||
+ | 192.168.2.0 | ||
+ | 169.254.0.0 | ||
+ | 0.0.0.0 | ||
+ | |||
+ | </ | ||
+ | |||
+ | ==== Question 15 ==== | ||
+ | |||
+ | How many interfaces (NICs) must a router have? | ||
+ | |||
+ | **Answer** //one of//: | ||
+ | |||
+ | |||
+ | 2 or more | ||
+ | |||
+ | |||
+ | ==== Question 16 ==== | ||
+ | |||
+ | Which system feature must be turned on if you want a Linux host to act as a router? | ||
+ | |||
+ | **Answer**: | ||
+ | ip forwarding | ||
+ | |||
+ | ==== Question 17 ==== | ||
+ | |||
+ | Which run-time command can be used to make a Ubuntu Linux host act as a router? | ||
+ | |||
+ | **Answer**: | ||
+ | icct@callisto: | ||
+ | |||
+ | ==== Question 18 ==== | ||
+ | |||
+ | In which file is the setting defined in [[# | ||
+ | |||
+ | **Answer**: | ||
+ | / | ||
+ | |||
+ | |||
+ | Reproduce the contents of the file defined in [[# | ||
+ | |||
+ | **Answer** | ||
+ | ip_forward=yes | ||
+ | spoofprotect=yes | ||
+ | syncookies=no | ||
+ | |||
+ | |||
+ | Copy contents of file and paste it as a listing here. | ||
+ | Include a minumum indent of two spaces per line. | ||
+ | Like this. | ||
+ | | ||
+ | |||
+ | |||
+ | ==== Question 19 ==== | ||
+ | |||
+ | What setting has been added to the network configuration file to define a route to '' | ||
+ | |||
+ | **Answer**: | ||
+ | |||
+ | netmask 255.255.255.0 | ||
+ | |||
+ | |||
+ | Copy contents of file and paste it as a listing here. | ||
+ | Include a minumum indent of two spaces per line. | ||
+ | Like this. | ||
+ | |||
+ | # This file describes the network interfaces available on your system | ||
+ | # and how to activate them. For more information, | ||
+ | |||
+ | # This is Jupiter | ||
+ | |||
+ | # The loopback network interface | ||
+ | auto lo | ||
+ | iface lo inet loopback | ||
+ | |||
+ | # The primary network interface | ||
+ | auto eth0 | ||
+ | iface eth0 inet static | ||
+ | address 192.168.1.3 | ||
+ | network 192.168.1.0 | ||
+ | netmask 255.255.255.0 | ||
+ | gateway 192.168.1.1 | ||
+ | # route to saturn-net | ||
+ | up route add -net 192.168.3.0 netmask 255.255.255.0 gw 192.168.1.4 | ||
+ | down route del -net 192.168.3.0 netmask 255.255.255.0 gw 192.168.1.4 | ||
+ | |||
+ | auto eth1 | ||
+ | iface eth1 inet static | ||
+ | address 192.168.2.1 | ||
+ | |||
+ | |||
+ | |||
+ | ===== Checking Your Network ===== | ||
+ | |||
+ | The Linux command '' | ||
+ | |||
+ | ==== Question 20 ==== | ||
+ | |||
+ | Give and explain the output of the command '' | ||
+ | |||
+ | **Answer** | ||
+ | <cli prompt=" | ||
+ | user@host: | ||
+ | Destination | ||
+ | saturn-net | ||
+ | jupiter-net | ||
+ | icct-net | ||
+ | default | ||
+ | |||
+ | </ | ||
+ | |||
+ | Add your explanation here. | ||
+ | displays routing tables | ||
+ | |||
+ | |||
+ | ==== Question 21 ==== | ||
+ | |||
+ | Give and explain the output of the command '' | ||
+ | |||
+ | |||
+ | **Answer** | ||
+ | <cli prompt=" | ||
+ | user@host: | ||
+ | Kernel Interface table | ||
+ | Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR | ||
+ | eth0 1500 0 7032 0 0 0 | ||
+ | eth1 1500 0 6914 0 0 0 | ||
+ | lo 16436 0 | ||
+ | |||
+ | </ | ||
+ | |||
+ | Add your explanation here. | ||
+ | displays interface table | ||
+ | |||
+ | |||
+ | ==== Question 22 ==== | ||
+ | |||
+ | Give and explain the output of the command '' | ||
+ | |||
+ | **Answer** | ||
+ | <cli prompt=" | ||
+ | user@host: | ||
+ | Active Internet connections (servers and established) | ||
+ | Proto Recv-Q Send-Q Local Address | ||
+ | tcp 0 0 gw-jupiter.swan-: | ||
+ | tcp 0 0 jupiter.swan-icc: | ||
+ | tcp 0 0 localhost.locald: | ||
+ | tcp 0 0 localhost.localdoma: | ||
+ | tcp6 | ||
+ | tcp6 | ||
+ | tcp6 | ||
+ | tcp6 | ||
+ | |||
+ | </ | ||
+ | |||
+ | Add your explanation here. | ||
+ | displays active internet connections | ||
+ | |||
+ | ===== Testing the Connectivity of your network ===== | ||
+ | |||
+ | Install, if necessary, the // | ||
+ | |||
+ | ==== Question 23 ==== | ||
+ | |||
+ | Give the output of traceroute from your host to any host on one of the other ICCT networks. | ||
+ | |||
+ | **Answer** | ||
+ | <cli prompt=" | ||
+ | user@host: | ||
+ | icct@callisto: | ||
+ | traceroute to titan.saturn.icct.com (192.168.3.4), | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ==== Question 24 ==== | ||
+ | |||
+ | Give the output of '' | ||
+ | |||
+ | **Answer** | ||
+ | <cli prompt=" | ||
+ | user@host: | ||
+ | icct@callisto: | ||
+ | traceroute to www.swan.ac.uk (137.44.1.7), | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | </ | ||
+ | |||
+ | Explain the result. | ||
+ | |||
+ | We don't see any packets coming back they are not accepted | ||
+ | |||
+ | ===== Extension Questions ===== | ||
+ | |||
+ | |||
+ | ==== Question 25 ==== | ||
+ | |||
+ | A new sub-network engineering-net ('' | ||
+ | |||
+ | **Answer** | ||
+ | |||
+ | auto eth0 | ||
+ | iface eth0 inet static | ||
+ | address 192.168.1.5 | ||
+ | network 192.168.1.0 | ||
+ | netmask 255.255.255.0 | ||
+ | gateway 192.168.1.1 | ||
+ | # Route to jupiter-net | ||
+ | up route add -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.1.3 | ||
+ | down route add -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.1.3 | ||
+ | # Route to saturn-net | ||
+ | up route add -net 192.168.3.0 netmask 255.255.255.0 gw 192.168.1.4 | ||
+ | down route add -net 192.168.3.0 netmask 255.255.255.0 gw 192.168.1.4 | ||
+ | |||
+ | # Interface in engineering-net is much simpler | ||
+ | auto eth1 | ||
+ | iface eth1 inet static | ||
+ | address 192.168.10.1 | ||
+ | netmask 255.255.255.0 | ||
+ | ==== Question 26 ==== | ||
+ | |||
+ | Which other files would you need to modify to correctly set up this new router? | ||
+ | |||
+ | **Answer** | ||
+ | |||
+ | / | ||
+ | |||
+ | |||
+ | ==== Question 27 ==== | ||
+ | |||
+ | Summarize the changes that you would you need to make to your host's network configuration to have the new // | ||
+ | |||
+ | **Answer** | ||
+ | |||
+ | needs engineering-net entry in / | ||
+ | and list the host and gateway in the host file | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ===== Signature ===== | ||
+ | |||
+ | |||
+ | I hereby submit this work for marking. | ||
+ | |||
+ | Your signature here: Nicolay Parashkevanov |