By default, the repository virtual machine obtains a dynamic
IP address at startup by using DHCP. The DHCP server might assign
a different IP address to the repository virtual machine when you
restart the repository virtual machine, which would cause configuration
issues with other components. To prevent these configuration issues,
work with your network administrator to assign a static IP address
for the repository virtual machine.
Before you begin, you will need to know the following information:
- Ask your network administrator for a static IP address that you
can use for the repository virtual machine.
- Obtain the following information from your network administrator:
- The IP address to be used by the repository virtual machine
- The subnet mask for the subnet on which the repository virtual
machine is located
- The gateway IP address that the repository virtual machine is
to use
- The fully qualified domain name for the repository virtual machine
(for example, example.com)
- The fully qualified host name for the repository virtual machine
(for example, repository.example.com)
- The IP addresses of one or more Domain Name System (DNS) name
servers used at your site
To configure a static IP address for the repository virtual
machine:
- Log into the repository as the admin user.
- Right-click the desktop and click xterm.
- Edit the Ethernet adapter configuration file (/etc/sysconfig/network-scripts/ifcg-eth0)
on the repository virtual machine:
- Enter the following command: sudoedit /etc/sysconfig/network-scripts/ifcfg-eth0.
- Type i to enter insert mode.
- Change the file to look like this, where repository_ip_address is
the IP address for the repository virtual machine and subnet_mask is
the subnet mask.
DEVICE=eh0
BOOTPROTO=static
IPADDR=repository_ip_address
NETMASK=subnet_mask
ONBOOT=yes
- Press Esc, then enter :wq to
save the file and exit.
- Edit the network configuration file (/etc/sysconfig/network)
on the repository virtual machine:
- Enter the following command: sudoedit /etc/sysconfig/network
- Type i to enter insert mode.
- Change the file to look like this, where repository_host_name is
the fully qualified host name for the repository virtual machine and gateway_ip_address is
the gateway IP address.
NEWTORKING=yes
HOSTNAME="repository_host_name"
GATEWAY=gateway_ip_address
GATEWAYDEV="eth0"
- Press Esc, then enter :wq to
save the file and exit.
- Edit the DNS resolver library configuration file (/etc/resolv.conf)
on the repository virtual machine:
- Enter the following command: sudoedit /etc/resolv.conf
- Type i to enter insert mode.
- Change the file to look like this, where domain_name is
the fully qualified domain name for the repository virtual machine
and name_server_ip_address is
the IP address of a name server. To use more than one
name server, add nameserver name_server_ip_address lines
after the first nameserver name_server_ip_address line.
search domain_name
nameserver name_server_ip_address
- Press Esc, then enter :wq to
save the file and exit.
- Restart the repository virtual machine by right-clicking
the desktop, clicking , and clicking Yes to
confirm.