Chapter 8. Setting up the Customer's Computer

This chapter will cover setting up the customer's computer. It will be largely based on the generic graphical Linux install we just did, so it will be short and simple.

In the command line on the host computer, type:

VBoxManage clonevdi Linux-Graphics.vdi customer.vdi

Create a VM called "customer", using the virtual hard disk we just cloned. Set up the VirtualBox networking as follows (refer to Figure 1.2):

Adapter 1: Enabled, Internal Network, "isp customers"

Start up gateway.isp.sam, then start up customer.

After customer starts up, do an ifconfig. Since the generic Linux install had already set eth0 to dhcp, you should see that we have already automatically obtained an IP address.

First, let's change the hostname. Edit /etc/rc.conf and change the following line:

HOSTNAME="customer"

Next, we'll add a new user called user, so we won't have to run everything as root or admin. This will represent the customer using this computer.

sudo useradd -d /home/user -g users -m user

Give the user a password ("userpswd" will suffice for this exercise):

sudo passwd user

and type in the password when prompted.

To check the new user, log out as admin and log back in as user.

Finally, to check the routing through the ISP gateway, start up all three backbone routers, and issue a

traceroute -n 172.16.20.100

This will display the path from cusomter to backbone3. The -n option tells traceroute to not do DNS lookups on IP addresses. If omitted here, the command will take a really long time as it tries (and fails after timing out) to look up each IP address in the path.

That's all we'll do for the customer's computer for now. This shows that the DHCP setup on the ISP gateway works. Later on, we will add other software to try out other technologies.