The following steps accomplish this:
- Connect as root
- Go to directoy /etc/sysconfig/network-scripts
- Identify the file that is used for the NIC that you must define:
for example ifcfg-eth0 is for the traditional first network card.
- Verify/Change the settings depending on your needs
- When changing from dhcp to static addressing, the file should become something like this:
BOOTPROTO=static
BROADCAST=192.168.1.255
HWADDR=xx:xx:xx:xx:xx
IPADDR=192.168.1.102
NETMASK=255.255.255.0
NETWORK=192.168.1.0
ONBOOT=yes
Define the paramter for the network in itself
- Connect as root
- Go to /etc/sysconfig
- Edit the file network
- Set the hostname here and the gateway for the network.
- The file should contain something like:
HOSTNAME=myservername
GATEWAY=192.168.1.1
Set the resolv.conf file with the nameservers
- Connect as root
- Go to directory /etc
- Edit the file resolv.conf
- Add/modify lines in the file with the specification of the nameserver.
- An example
search hellings.be
nameserver vvv.xxx.yyy.zzzz
- Add as many nameservers as you require
- Connect as root
- Restart the network
service network restart
No comments:
Post a Comment