eg-253:networkq:529673
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
eg-253:networkq:529673 [2009/11/05 12:48] – anton | eg-253:networkq:529673 [2011/01/14 13:00] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 6: | Line 6: | ||
|**Name** |Anton Babentsov | | |**Name** |Anton Babentsov | | ||
|**Student Number** |529673 | | |**Student Number** |529673 | | ||
- | |**Date of Submission** |45th Octember 3330 | | + | |**Date of Submission** |10th December 2009 | |
===== Instructions ===== | ===== Instructions ===== | ||
Line 250: | Line 250: | ||
Which system feature must be turned on if you want a Linux host to act as a router? | Which system feature must be turned on if you want a Linux host to act as a router? | ||
- | **Answer**: | + | |
+ | IP forwarding | ||
==== Question 17 ==== | ==== Question 17 ==== | ||
Line 256: | Line 257: | ||
Which run-time command can be used to make a Ubuntu Linux host act as a router? | Which run-time command can be used to make a Ubuntu Linux host act as a router? | ||
- | **Answer**: | + | icct@myhost:~$ sudo sh -c "echo 1 > / |
==== Question 18 ==== | ==== Question 18 ==== | ||
Line 265: | Line 267: | ||
- | Reproduce the contents of the file defined in [[#question_17|Question 17]] to make a Ubuntu host into a router? | + | # / |
- | **Answer** | ||
- | Copy contents of file and paste it as a listing here. | + | **Answer** |
- | | + | # / |
- | Like this. | + | # set ip_forward=yes if you need to set |
+ | # up a machine with two network interface cards | ||
+ | # as a router | ||
+ | ip_forward=yes | ||
+ | spoofprotect=yes | ||
+ | syncookies=no | ||
| | ||
Line 279: | Line 285: | ||
**Answer**: | **Answer**: | ||
+ | # Interface in icct-net does the routing, | ||
+ | # so needs to know about the rest of the network. | ||
- | | + | |
- | | + | iface eth0 inet static |
- | | + | address 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 del -net 192.168.3.0 netmask 255.255.255.0 gw 192.168.1.4 | ||
+ | |||
+ | # Interface in jupiter-net is much simpler | ||
+ | auto eth0 | ||
+ | iface eth1 inet static | ||
+ | address 192.168.2.1 | ||
+ | netmask 255.255.255.0 | ||
Line 305: | Line 324: | ||
</ | </ | ||
- | Add your explanation here. | + | The command " |
Line 317: | Line 336: | ||
# Paste result here.... | # Paste result here.... | ||
+ | Kernel Interface table | ||
+ | Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR | ||
+ | eth0 1500 0 3615 0 0 2 3024 0 0 0 BMRU | ||
+ | lo 16436 0 | ||
+ | |||
</ | </ | ||
- | Add your explanation here. | + | The command " |
Line 329: | Line 353: | ||
<cli prompt=" | <cli prompt=" | ||
user@host: | user@host: | ||
+ | |||
Active Internet connections (servers and established) | Active Internet connections (servers and established) | ||
Proto Recv-Q Send-Q Local Address | Proto Recv-Q Send-Q Local Address | ||
Line 344: | Line 369: | ||
</ | </ | ||
- | Add your explanation here. | + | Command netstat -ta displays active and passive sockets. |
===== Testing the Connectivity of your network ===== | ===== Testing the Connectivity of your network ===== | ||
Line 356: | Line 381: | ||
**Answer** | **Answer** | ||
<cli prompt=" | <cli prompt=" | ||
- | user@host:~$ command | + | icct@callisto:~$ traceroute -n 192.168.2.2 |
- | # paste output here | + | traceroute to 192.168.2.2 (192.168.2.2), |
+ | | ||
</ | </ | ||
Line 369: | Line 396: | ||
**Answer** | **Answer** | ||
<cli prompt=" | <cli prompt=" | ||
- | user@host:~$ command | + | icct@callisto:~$ traceroute -n www.swan.ac.uk |
- | # paste output here | + | traceroute to www.swan.ac.uk (137.44.1.7), |
+ | | ||
</ | </ | ||
eg-253/networkq/529673.1257425339.txt.gz · Last modified: 2011/01/14 12:50 (external edit)