jack567
11-23-2004, 02:11 AM
hello I have a friend that im shareing a server with. i need to know how to setup a extra ip for him from out of my block of ip's I need the commands for this please. the os is redhat
thanks for any help you can pervide.
take care
assistanz247
11-23-2004, 02:39 AM
You have to check upto which device you have IP addresses, like
eth0
eth0:1
Assume your last IP device is eth0:1
then the command will be,
ifconfig eth0:2 192.168.1.250
After adding the ip you have to change create a file called ifcfg-eth0:2 inside /etc/sysconfig/network-scripts directory.
the file shuld have following lines,
DEVICE=eth0:2
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.1.250
NETMASK=255.255.255.0
GATEWAY=192.168.1.88