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/26 12:21] – 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 257: | 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 266: | 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 280: | 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 306: | Line 324: | ||
</ | </ | ||
- | Add your explanation here. | + | The command " |
Line 318: | 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 358: | 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 371: | 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.1259238112.txt.gz · Last modified: 2011/01/14 12:50 (external edit)