Chapter 16: Network Basics

Commands:

Command Description Examples
ftp The ftp (File Transfer Protocol) application is part of the TCP/IP protocol suite and is standard with the UNIX operating system. It can be used to transfer files using ASCII or binary mode between systems using similar or dissimilar operating systems. $ ftp venus
Connected to 129.150.212.16.
220 venus FTP server (UNIX(r) System V Release 4.0) ready.
Name (129.150.212.16:lister): Return <CR>
331 Password required for lister.
Password: xxx
230 User lister logged in.
ftp> cd /etc/inet
250 CWD command successful.
ftp> bin
200 Type set to I.
ftp> get hosts /tmp/hosts
200 PORT command successful.
150 Binary data connection for hosts (129.159.129.38,33425)
(77 bytes)
226 Transfer complete.
local: /tmp/hosts remote: hosts
77 bytes received in 0.0014 seconds (5,25 Kbytes/s)
ftp> bye
ping The ping command tests basic connectivity between TCP/IP hosts by sending an ICMP (Internet Control Message Protocol) echo request to another computer or "host" on a TCP/IP network. If there is a reply from the destination host, then there is a good connection between them. $ ping jupiter
jupiter is alive

$ ping 192.13.145.10
192.13.145.10 is alive

rlogin Use the rlogin command to establish a remote login session on another workstation. $ rlogin saturn
Password:
Last login: Mon Dec 21 11:04:27 from venus
Sun Microsystems Inc. SunOS 5.7 Generic October 1998
$
telnet Telnet is another good network troubleshooting tool. It is a non-graphical communications utility that can be used to check the upper layers of the OSI model. $ telnet beach
Trying 192.168.49.10 ...
Connected to beach
Escape character is '^]'.
4.2 BSD UNIX (beach)
login: jdupont
Password:
Last login: Wed Jun 1 19:03:33 on console
beach% (Enter commands)
beach% exit
Connection closed by foreign host
$