NAD710 Lab 1 Answers
Revision as of 22:15, 15 September 2008 by Chris Tyler (talk | contribs)
Please correct me
Based on the best available info
- 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?
- 1. What is the kernel version on matrix?
lsdaly@matrix:~> uname -r kernel release is 2.6.18.8-0.5-default Kernel version of linux on matrix is #1 SMP Tue Feb 12 09:16:51 EST 2008
- 2. What is the IP address and MAC address of the Linux machine on matrix?
- from /sbin/ifconfig:
HWaddr: 00:0E:0C:74:9C:F9 IP: 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
- pconstantino->(if you want to see the host names instead of IP addresses use arp with no arguments)
- 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