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"

这个回答有用吗?

 打印这篇文章

继续阅读

重设MySQL root密码

如果忘记了MySQL的root密码,可以用以下方法重新设置: 1. KILL掉系统里的MySQL进程; killall -TERM mysqld 2....

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...

How to open ports within IPtables in Redhat 3/4/5 & Above | CentOS | Fedora Linux

How to open ports within IPtables in Redhat 3/4/5 & Above | CentOS | Fedora LinuxIPtables...

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...

How to check drive space

...

Powered by WHMCompleteSolution