Difference between revisions of "NAD710 Lab 1 Answers"

From CDOT Wiki
Jump to: navigation, search
(Assignment 1)
(Assignment 1)
Line 1: Line 1:
= Assignment 1 =
+
= Please correct me =
Based on the information collected, answer the following questions:
+
Based on the best available info
# <a name="#one">What is the kernel version of Linux on matrix?</a>
+
# What is the kernel version of Linux on matrix?
# <a name="#two">What is the IP address and MAC address of the Linux machine on matrix?</a>
+
# What is the IP address and MAC address of the Linux machine on matrix?
# <a name="#three">What is the network mask on matrix?</a>
+
# What is the network mask on matrix?
# <a name="#four">What are the network addresses of the Linux machine? (there should be three networks)</a>
+
# What are the network addresses of the Linux machine? (there should be three networks)
# <a name="#five">What is the IP address of the gateway for the Linux machine on matrix?</a>
+
# What is the IP address of the gateway for the Linux machine on matrix?
# <a name="#six">What is the command to display all the currently loaded kernel modules?</a>
+
# What is the command to display all the currently loaded kernel modules?
# <a name="#seven">Where is the file for the kernel module called "e100"?</a>
+
# Where is the file for the kernel module called "e100"?
# <a name="#eight">What is the MAC address for the network device that has the IP address 192.168.1.254?</a>
+
# What is the MAC address for the network device that has the IP address 192.168.1.254?
# <a name="#nine">How do you display all the physically network addresses known by a Linux machine?</a>
+
# How do you display all the physically network addresses known by a Linux machine?</a>
# <a name="#ten">What is the MAC address of the network device on the default gateway for the Linux machine on matrix?</a>
+
# What is the MAC address of the network device on the default gateway for the Linux machine on matrix?
  
  
:1. <a name="one">What is the kernel version on matrix.</a>
+
:1. What is the kernel version on matrix.
 
::lsdaly@matrix:~> uname -r
 
::lsdaly@matrix:~> uname -r
 
::2.6.18.8-0.5-default
 
::2.6.18.8-0.5-default
  
:2. <a name="two">What is the IP address and MAC address of the Linux machine on matrix?</a>
+
:2. What is the IP address and MAC address of the Linux machine on matrix?
 
::from:  /sbin/ifconfig
 
::from:  /sbin/ifconfig
 
::mac address is  00:0E:0C:74:9C:F9
 
::mac address is  00:0E:0C:74:9C:F9
 
::and ip is 192.168.1.69
 
::and ip is 192.168.1.69
  
:3. <a name="three">What is the network mask on matrix.</a>
+
:3. What is the network mask on matrix.
 
::Mask:255.255.255.0
 
::Mask:255.255.255.0
  
:4. <a name="four">What are the network addresses of the Linux machine? (there should be three networks)</a>
+
:4. What are the network addresses of the Linux machine? (there should be three networks)
 
 
 
::Kernel IP routing table
 
::Kernel IP routing table
 
::Destination    Iface
 
::Destination    Iface
Line 33: Line 32:
 
::127.0.0.0      lo
 
::127.0.0.0      lo
  
:5. <a name="five">What is the IP address of the gateway for the Linux machine on matrix?</a>
+
:5. What is the IP address of the gateway for the Linux machine on matrix?
 
::Destination    Gateway
 
::Destination    Gateway
 
::0.0.0.0        192.168.1.254
 
::0.0.0.0        192.168.1.254
  
:6. <a name="six">What is the command to display all the currently loaded kernel modules?</a>
+
:6. What is the command to display all the currently loaded kernel modules?
  
 
::lsdaly@matrix:~> /sbin/lsmod
 
::lsdaly@matrix:~> /sbin/lsmod
Line 44: Line 43:
 
::lockd                  73192  2 nfs
 
::lockd                  73192  2 nfs
  
:7. <a name="seven">Where is the file for the kernel module called "e1000"? (changed from e100)</a>
+
:7. Where is the file for the kernel module called "e1000"? (changed from e100)
  
 
::daly@matrix:~> /sbin/modinfo e1000
 
::daly@matrix:~> /sbin/modinfo e1000
 
::filename:      /lib/modules/2.6.18.8-0.5-default/kernel/drivers/net/e1000/e1000.ko
 
::filename:      /lib/modules/2.6.18.8-0.5-default/kernel/drivers/net/e1000/e1000.ko
  
:8. <a name="eight">What is the MAC address for the network device that has the IP address 192.168.1.254?</a>
+
:8. What is the MAC address for the network device that has the IP address 192.168.1.254?
  
 
::lsdaly@matrix:~> /sbin/arp -n
 
::lsdaly@matrix:~> /sbin/arp -n
Line 55: Line 54:
 
::192.168.1.254            ether  00:0E:0C:7F:84:6F              eth0
 
::192.168.1.254            ether  00:0E:0C:7F:84:6F              eth0
  
:9. <a name="nine">How do you display all the physically network addresses known by a Linux machine?</a>
+
:9. How do you display all the physically network addresses known by a Linux machine?
 
::lsdaly@matrix:~> /sbin/arp -n
 
::lsdaly@matrix:~> /sbin/arp -n
  
:10. <a name="ten">What is the MAC address of the network device on the default gateway for the Linux machine on matrix?</a>
+
:10. <What is the MAC address of the network device on the default gateway for the Linux machine on matrix?
 
::From question 5: Gateway IP is 192.168.1.254
 
::From question 5: Gateway IP is 192.168.1.254
 
::lsdaly@matrix:~> /sbin/arp -a 192.168.1.254
 
::lsdaly@matrix:~> /sbin/arp -a 192.168.1.254
 
::gateway.matrix (192.168.1.254) at 00:0E:0C:7F:84:6F [ether] on eth0
 
::gateway.matrix (192.168.1.254) at 00:0E:0C:7F:84:6F [ether] on eth0

Revision as of 10:30, 10 September 2008

Please correct me

Based on the best available info

  1. What is the kernel version of Linux on matrix?
  2. What is the IP address and MAC address of the Linux machine on matrix?
  3. What is the network mask on matrix?
  4. What are the network addresses of the Linux machine? (there should be three networks)
  5. What is the IP address of the gateway for the Linux machine on matrix?
  6. What is the command to display all the currently loaded kernel modules?
  7. Where is the file for the kernel module called "e100"?
  8. What is the MAC address for the network device that has the IP address 192.168.1.254?
  9. How do you display all the physically network addresses known by a Linux machine?</a>
  10. What is the MAC address of the network device on the default gateway for the Linux machine on matrix?


1. What is the kernel version on matrix.
lsdaly@matrix:~> uname -r
2.6.18.8-0.5-default
2. What is the IP address and MAC address of the Linux machine on matrix?
from: /sbin/ifconfig
mac address is 00:0E:0C:74:9C:F9
and ip is 192.168.1.69
3. What is the network mask on matrix.
Mask:255.255.255.0
4. What are the network addresses of the Linux machine? (there should be three networks)
Kernel IP routing table
Destination Iface
192.168.1.0 eth0
169.254.0.0 eth0
127.0.0.0 lo
5. What is the IP address of the gateway for the Linux machine on matrix?
Destination Gateway
0.0.0.0 192.168.1.254
6. What is the command to display all the currently loaded kernel modules?
lsdaly@matrix:~> /sbin/lsmod
Module Size Used by
nfs 236268 4
lockd 73192 2 nfs
7. Where is the file for the kernel module called "e1000"? (changed from e100)
daly@matrix:~> /sbin/modinfo e1000
filename: /lib/modules/2.6.18.8-0.5-default/kernel/drivers/net/e1000/e1000.ko
8. What is the MAC address for the network device that has the IP address 192.168.1.254?
lsdaly@matrix:~> /sbin/arp -n
Address HWtype HWaddress Iface
192.168.1.254 ether 00:0E:0C:7F:84:6F eth0
9. How do you display all the physically network addresses known by a Linux machine?
lsdaly@matrix:~> /sbin/arp -n
10. <What is the MAC address of the network device on the default gateway for the Linux machine on matrix?
From question 5: Gateway IP is 192.168.1.254
lsdaly@matrix:~> /sbin/arp -a 192.168.1.254
gateway.matrix (192.168.1.254) at 00:0E:0C:7F:84:6F [ether] on eth0