1,234
edits
Changes
→Investigation 7: How can I lease the same address every time?
=== Investigation 7: How can I lease the same address every time? ===
{{Admon/note | Use your fedora2 centos2 and fedora3 centos3 VMs | Complete the following steps on your fedora2 centos2 and fedora3 VM'scentos3 VMs.}}
{{Admon/note | Reserving IP Addresses with DHCP | Even though DHCP gives out IP address dynamically, it also has the ability to reserve an IP address for a certain computer. In this sense it's almost as if the client computer has a static IP even though it uses DHCP to get it. This is useful if you want to be able to put entries in your /etc/hosts file and not have to worry about the entry becoming invalid over time. In Linux we refer to this as supplying a fixed address to a host. Microsoft calls it a reservation.}}
# Make certain that you are located in your fedora3 centos3 virtual machine.# Create a host declaration for fedora2centos2. Make sure you record the correct <code>hardware ethernet</code> setting that corresponds to the MAC address of the interface in fedora2centos2.
# Give it the fixed-address 192.168.235.12
{{Admon/tip | Avoiding IP Address Conflicts | When supplying fixed-address it is important that the address assigned is exclusive of any ranges that have been declared. Otherwise it may be possible for 2 different hosts to receive the same address.}}
<ol><li value="3">Start your service and test the address assignment by releasing your current address on fedora2 centos2 and then requesting a new address. Use the following commands on fedora2centos2:</li>
</ol>
::: <code>ifdown eth1</code>