Not surprisingly, passive mode isn't much different,
so let's test transferring files in both directions once more.
We will move quickly through IPv6 FTP passive mode
downloads and uploads as well, starting with the download script.
Not surprisingly,
the script simply enables passive mode and uses an IPv6
address instead of an IPv4 address.
Let's execute the script to download R1.cfg from the server.
After the feature exchange and initial login procedures,
the client issues the EPSV command.
The server responds with a dynamic port to which the
client can connect for the data transfer.
In this case, port 42514 was chosen.
Once the connection is established on this new port,
the client issues the retrieve command to download R1.cfg.
The server sends the file contents down to the
client and the process terminates.
Let's finish up with a passive mode upload by reviewing the LFTP script.
Just like the download script,
passive mode is enabled and IPv6 addressing is used.
All we must do is substitute the get command with the
put command used to perform an upload.
Let's try it out.
The client begins with the EPSV command that triggers the server
to allocate port 42513 from its port range,
giving the client a port to which it must connect for file transfers.
After the connection is formed,
the client uses the store command to upload R3's config file.
The client then sends data up to the server without any problems.
This wraps up our demonstration of classic FTP operations using IPv6. And next, we will explore the relevant packet captures.