Add new IPs to server using SSH

Add IPs to FreeBSD.
-------------------------------
vi /etc/rc.conf

First line is the main ip address + subnet mask
Second line and thereafter use the 'alias' in the config line and netmask of 255.255.255.255 and proper broadcast ip.

ALso, may not be fxp0, might be sis0, rltk0, etc..
ifconfig_fxp0="inet 10.10.10.34 netmask 255.255.255.248"
ifconfig_fxp0_alias0="inet 10.10.10.35 netmask 255.255.255.255"
ifconfig_fxp0_alias1="inet 10.10.10.36 netmask 255.255.255.255"
ifconfig_fxp0_alias2="inet 10.10.10.37 netmask 255.255.255.255"

etc..

Also you can run /stand/sysconfig
Choose Configure, Networking, Interfaces, then nic card ( fxp0, rltk, dlink, rl0, vne, etc...)


Add IPs to Linux / CentOS
 -------------------------------------
pico /etc/sysconfig/network
root@server5 [~]# more /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=yourbox.domain.com
GATEWAY=10.10.10.1

just set Gateway information only.

pico /etc/sysconfig/network-scripts/ifcfg-eth0

root@server5 [~]# more /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
BROADCAST=10.10.10.255
IPADDR=10.10.10.226
NETMASK=255.255.255.0
NETWORK=10.10.10.0
ONBOOT=yes
TYPE=Ethernet

Just set, IP addr, netmask, network, broadcast.
REMOVE HWADDR. (incase of nic change the settings will work)


Adding Range of IPs to a Redhat Linux server
--------------------------------------------------------------
make ifcfg-eth0-range0 file in /etc/sysconfig/network-scripts/
[root@localhost network-scripts]# more ifcfg-eth0-range0

ONBOOT=yes
IPADDR_START=10.10.10.101
IPADDR_END=10.10.10.121
NETMASK=255.255.255.0
CLONENUM_START=0

If you have another range of ips:
make another file called; ifcfg-eth0-range1
then ifcfg-eth0-range2, etc..

then do: CLONENUM_START=#
where # = the number of ips already added to the box + 1.
example, if you have 10 ips in range0, then colonenum =11

ie, the next set of alias ips should start at that range (eth0:11)


Debian Server
----------------------------
To add secondary ips in debian do:
edit /etc/network/interfaces and add below

auto eth0:0
iface eth0:0 inet static
address 10.10.10.3
netmask 255.255.255.0

auto eth0:1
iface eth0:1 inet static
address 10.10.10.4
netmask 255.255.255.0



Changing Main IP on a Debian Linux server
-------------------------------------------------------
vi /etc/hostname
vi /etc/hosts

vi /etc/network/interfaces

and edit the entries below.

auto eth0
iface eth0 inet static
address 67.159.5.28
netmask 255.255.255.0
network 67.159.5.0
BROADCAST 67.159.5.255
gateway 67.159.5.1

then reboot with 'shutdown -r now' or /etc/init.d/networking restart



Windows 2000/XP/2003
-------------------------------
1) Click on Start, Settings, Control-Panel, Network Connections
2) Right click on Local Area Network or Which ever nic is active and choose Properties
3) Click on Internet Protocol (TCP/IP), then click Properties
4) Change your ip address info for the Primary ip there.

To add more ips other then primary ip, click Advanced at the bottom right.
5) Under IP Settings Tab, Ip addresses, Click Add
6) Add in the new IP Address + Netmask, then click Add
7) Under Default Gateway, Click Add
8) Enter the gateway information for that new ip and click Add.
9) Hit okay, then okay, then okay!
10) All done, ips are added. You do not need to reboot for changes to take affect.

Was this answer helpful?

Also Read
Can I upgrade hardwares on a Budget Server?

No, you can NOT upgrade any hardware on a Budget Server. You get Budget Servers for so cheap...

How to add extra root user to VPS or dedicated server?

Login to your SSH as root user and run the following commands (shown in BLUE color only) to...

What is included with a new cPanel dedicated server?

The following softwares will be pre-installed on your new CPanel based dedicated server free of...

What is your refund policy for your Dedicated Servers?

Sorry, but we do NOT offer any refunds/credits if you cancel your dedicated server subscription....