Written Assignment Unit 7
Written Assignment Unit 7
Administrators
Introduction
As your company expands its IT administration services to Unix-based operating systems, it's essential
to equip new network administrators with the necessary skills to manipulate and control networking
functions in Unix. This technical document outlines the steps involved and explains key commands
essential for Unix networking.
Example:
sh Copy code
Explanation: This command configures the network interface eth0 with the IP address 192.168.1.10
and the subnet mask 255.255.255.0, then brings the interface up.
Output:
sh Copy code
Example:
sh Copy code
sudo ip route add default via 192.168.1.1
Explanation: This command sets the default gateway to 192.168.1.1, directing all outbound traffic
through this gateway.
Output:
sh Copy code
default via 192.168.1.1 dev eth0 192.168.1.0/24 dev eth0 proto kernel scope link src
192.168.1.10
Example:
sh Copy code
Explanation: This command adds Google's DNS server to the configuration file.
Output:
sh Copy code
nameserver 8.8.8.8
1. ifconfig / ip
The ifconfig command is used to configure network interfaces. The ip command, part of the iproute2
suite, provides more functionality and is preferred in modern Unix systems.
Usage:
sh Copy code
sudo ifconfig eth0 down sudo ip addr add 192.168.1.10/24 dev eth0
Explanation:
sudo ifconfig eth0 down disables the eth0 interface.
sudo ip addr add 192.168.1.10/24 dev eth0 assigns an IP address to the eth0 interface using the
ip command.
Output:
sh Copy code
$ sudo ifconfig eth0 down $ sudo ip addr add 192.168.1.10/24 dev eth0
2. netstat
The netstat command displays network connections, routing tables, interface statistics, masquerade
connections, and multicast memberships.
Usage:
sh Copy code
netstat -r
Explanation:
netstat -r displays the routing table, showing how data packets are routed within the network.
Output:
sh Copy code
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface default
192.168.1.1 0.0.0.0 UG 0 0 0 eth0 192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
3. ping
The ping command tests the reachability of a host on an IP network and measures the round-trip time
for messages sent from the originating host to a destination computer.
Usage:
sh Copy code
ping google.com
Explanation:
ping google.com sends ICMP ECHO_REQUEST packets to Google’s server to check connectivity
and measure response time.
Output:
sh Copy code
Conclusion
Mastering Unix networking functions is crucial for effective IT administration. By following the steps
outlined and understanding the key commands discussed, new network administrators will be well-
equipped to manage and troubleshoot Unix-based networks efficiently.
References
Hiatt, J. M., & Creasey, T. J. (2012). Change Management: The People Side of Change. Prosci.
Lewin, K. (1947). Frontiers in Group Dynamics: Concept, Method, and Reality in Social Science;
Social Equilibria and Social Change. Human Relations.
Nemeth, E. (2017). Unix and Linux System Administration Handbook. Pearson Education.