Remove an IPv6 with the following syntax: Type ipconfig to verify that the address was removed.

116 | Lesson 5 If it has two and only two network adapters, it is specifically known as a dual-homed machine.

10. Type the command route print. This should display results similar to Figure 5-21. This

command gives the same result as netstat –r, but it is more commonly used. Figure 5-21 Route print This command shows a list of network adapters or interfaces on the local computer, including the MAC address and name of each. Then the IPv4 Route Table is displayed. You will notice several networking connections. The Network Destination column tells you where the computer is trying to connect. The Netmask is the subnet mask for that particular Network Destination. The Gateway is the IP address of the host that is used to gain access to the remote network. The Interface is the IP address of the net- work adapter that is making the connection to the other network. The Metric column specifies an integer between 1 and 9999; this metric is associated with the speed of the connection, the amount of hops across networks, and so on. Normally, the lowest metric is selected for connections to other networks. This is not an issue if the com- puter often a router only has two or three connections. You will notice a 0.0.0.0 network destination. This is the local network when no IP address is associated with the computer for example, when we executed the com- mand ipconfigrelease. Then you will see the local network that the computer is a part of; in the figure, it is 10.254.254.0, with a subnet mask of 255.255.255.0. This is the network number for this computer, which has an IP address of 10.254.254.112. Single IP addresses also get a route line item, as you can see in the third line. The local loopback network 127.0.0.0 and the actual local loopback IP address 127.0.0.1 also get route line items, and so on. Implementing TCPIP in the Command Line | 117 There is also an IPv6 Route Table if you are running that protocol. This table shows link-local and global unicast address line items.

11. Add and remove routes. Adding a router requires syntax similar to the netsh command

we used to add IP addresses. In the following portion of this exercise, we will add a fictitious route using our local IP address as the interface that makes the connection to the remote network:

a. Type the command route add 192.168.1.0 mask 255.255.255.0

[LocalIPAddress]. An example of this is shown in Figure 5-22. Figure 5-22 Route add The network we are attempting to connect to is 192.168.1.0, and it has a default Class C subnet mask of 255.255.255.0. The word “mask” takes the place of “sub- net mask.” Then we used our local IP address, in this case 10.254.254.112, to connect to the remote network. After we pressed Enter, a simple OK Message appeared. This means that the route has been added to the local routing table.

b. Type the command route print. You will see the new route in the IPv4 Route

Table, as shown in Figure 5-23. The new route is created for the network address 192.168.1.0, as well as for the broadcast address 192.168.1.255.

c. Type the command route delete 192.168.1.0 mask 255.255.255.0. This should

remove the route you added previously. You could also remove all added routes with one command: route -f. But be careful with this command. Depending on the operating system and protocols used, as well as the network configuration, this could stop all network connections. Figure 5-23 Route print with a new route New route