Add Multiple IP's to a Server

Method1:

To temporarily add additional IP's use the following commands:

ifconfig eth0:### netmask 255.255.255.248

EX: ifconfig eth0:199 192.168.100.100 netmask 255.255.255.248

  • eth0:### can be anything usually the last octet in the IP address
  • netmask is the same unless other specified by Krypt Support
  • If Krypt server is allocated 3 IP addresses, more IP's can be requested by submitting a support ticket

To permanately add the IP address to be bounded upon startup, edit /etc/rc.d/rc.local and copy and paste the above ifconfig command into the bottom of the file.

Method 2:

1. enter"cd /etc/sysconfig/network-scripts"

2. enter "cp ifcfg-eth0 ifcfg-eth0:1"

3. edit the file "vi ifcfg-eth0:1" and modify DEVICE, and IPADDR

DEVICE=eth0:1
ONBOOT=yes
BOOTPROTO=static
IPADDR=209.11.239.11
NETMASK=255.255.255.248
GATEWAY=209.11.239.9

4. restart the network service "/sbin/service network restart"

这个回答有用吗?

 打印这篇文章

继续阅读

How to Modify Running Services in CentOS, RedHat, and Fedora Distributions

To enable services in CentOS, RedHat, and Fedora distributions, you can determine a service and...

DirectAdmin Installation Guide

...

How to check drive space

...

How to create a partition size larger than 2TB using parted

Linux has a 2TB limit on the partition size. Find the drive you want to partition # fdisk -l...

Resetting root password in CentOS/RedHat

f you forgot your root password, you can use the following steps to boot into single user mode...

Powered by WHMCompleteSolution