Networking Review, Unix Commands Lab ----------------------------------------------------------------------- X. The "ifconfig" command % ifconfig eth0 What is the MAC address:_______________________ What is the IP address:________________________ What is the Netmask:___________________________ What is the Broadcast address:_________________ What is the Link State:________________________ % sudo ifdown eth0 What is the Link State?:________________________ % sudo ifup eth0 What is the Link State?:________________________ ----------------------------------------------------------------------- X. The "netstat" command % netstat -i Which interfaces show RX-OK TX-OK counts?:____________________ % netstat -s What kind of information do you see?:_________________________ % netstat -paulnt What program services are listening?:_________________________ % netstat -pault What did the "-n" option do?:_________________________________ ----------------------------------------------------------------------- X. The "arp" and "ip neighbor" commands % arp -a How many arp entries are there?:____________________________ % ip neighbor show Arp entries, anything different?:___________________________ % sudo ip neighbor flush all && ip neighbor show How many arp entries are there now?:________________________ ----------------------------------------------------------------------- X. The "arping" command Pick an address of another machine at your table . % sudo arping -c 3 X.X.X.X What does your arp cache show now?:__________________________ What do you see in the "reply" message show?:________________ ----------------------------------------------------------------------- X. The "ping" command Pick an address of another machine at your table . % ping -c 10 X.X.X.X % ping -c 1000 -i 0.001 X.X.X.X % ping -q -c 1000 -i 0.001 -s 1460 X.X.X.X What does the "-c" option control?_____________________________ What does the "-i" option control?_____________________________ What does the "-s" option control?_____________________________ ----------------------------------------------------------------------- X. The "traceroute" and "mtr" commands % sudo apt-get install traceroute % traceroute -n www.grc.com % traceroute www.grc.com % traceroute -n www.microsoft.com What are the units of measurement?____________________________ What does a "*" mean in the output?___________________________ % sudo apt-get install mtr ( this will replace "mtr-tiny", and give you an X-Windows version ) Try pinging your neighbor X.X.X.X % mtr Type in 0.01 where the default "1" shows. What did that change?_________________________________________ ----------------------------------------------------------------------- X. The "tcptraceroute" command % tcptraceroute www.grc.com What TCP port is used by default?_____________________________ % tcptraceroute -n ns.uoregon.edu 22 What TCP Service is being checked?_____________________________