Changes

Jump to: navigation, search

NAD710 Lab 1

4,674 bytes added, 11:36, 17 September 2008
Completing this Lab
* hostname
* uname
* /sbin/ifconfig
* /sbin/route
* /sbin/lspci
* /sbin/lsmod
* /sbin/modinfo
* /sbin/ifconfig
* /sbin/route
* /sbin/arp
= Background Information =
* Linux Kernel information
Follow the The following procedure can be used on matrix.senecac.on.ca and your own Fedora Core machine to collete those network settings and system informationlisted above.
= Procedure =
Have a lot of fun...
student@matrix:~>
== System Information ==
* Type the command
raymond@matrix:~> uname -a
depends:
srcversion: 16DCEDEE4B5629C222C352D
== Network settings ==
* Try the command "/sbin/modinfo" on each of the module listed and determine which one is the device driver for the network interface card. Record the location (filename) of the device driver of the network interface card. If you have to type the command for each module by hand, it may take you quite a while. If you know shell scripting, you can write a small shell script to automate the process and save a lot of typing.
* To display basic networking settings on a Linux system, type the command "/sbin/ifconfig" and record the output for later use: raymond@matrix:~> /sbin/ifconfig eth0 Link encap:Ethernet HWaddr 00:03:47:E9:89:B5 inet addr:192.168.1.70 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::203:47ff:fee9:89b5/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:164170 errors:0 dropped:0 overruns:0 frame:0 TX packets:133956 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:16560820 (15.7 Mb) TX bytes:15356431 (14.6 Mb) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:24893 errors:0 dropped:0 overruns:0 frame:0 TX packets:24893 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:18954652 (18.0 Mb) TX bytes:18954652 (18.0 Mb)
* From the output of the /sbin/ifconfig command, you should be able to determine the IP address, network broadcast address and network mask for your host. In the above sample output, "eth0" is device name of the real network device, and "lo" is the logical loopback network device. There are a few other fields in the output that are import in troubleshooting networking problems. Consult the "man" page for "ifconfig" for more details.
* To be able to communicate computers on the LANs or on the Internet, your system needs to know which network (or LAN) it is in and the IP address of at least one gateway machine to connect to other network. Type the command /sbin/route and record its output for later use:
raymond@matrix:~> /sbin/route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.1.254 0.0.0.0 UG 0 0 0 eth0
* From the output of the /sbin/route command, you should be able to tell which networks (LANs) your machine is directly connected (the 1st column) and which gateway (the 2nd column) your machine should use to reach other networks. Consult the "man" page for "route" for more details.
* If there is no "Gateway" for your machine, your machine can only communicate with other machines that are physically connected.
* Any two physically (or directly) connected network machines must know each other's physical network address (i.e. MAC address) before that can start exchanging data. The MAC address exchange process could occur automatically (default) or manually (to be done by the system administrator). To display the list of MAC address known to your machine, type the command "/sbin/arp". Record the output for later use:
raymond@matrix:~> /sbin/arp -n
Address HWtype HWaddress Flags Mask Iface
192.168.1.50 ether 00:0E:0C:82:9F:9F C eth0
192.168.1.254 ether 00:0E:0C:7F:84:6F C eth0
192.168.1.30 ether 00:0E:0C:82:E5:6B C eth0
192.168.1.10 ether 00:19:D1:3D:F4:3B C eth0
...
= Questions =
Based on the information collected, answer the following questions:
# What is the kernel version of Linux on matrix?
# What is the IP address and MAC address of the Linux machine on matrix?
# What is the network mask on matrix?
# What are the network addresses of the Linux machine? (there should be three networks)
# What is the IP address of the gateway for the Linux machine on matrix?
# What is the command to display all the currently loaded kernel modules?
# Where is the file for the kernel module called "e100"?
# What is the MAC address for the network device that has the IP address 192.168.1.254?
# How do you display all the physically network addresses known by a Linux machine?
# What is the MAC address of the network device on the default gateway for the Linux machine on matrix?
= Completing this Lab =
* Post your answers for this lab to [[NAD710 Lab 1 Answers]]
* You will be graded according to your contribution. If you have nothing to add to the answer page, please make some comments of the lab and the answers and email them to your professor.
 
[[Category:LUX]][[Category:NAD]]
1
edit

Navigation menu