adding ip address to linux server

From WebHostingNeeds.com
Jump to: navigation, search

Today data centre give following IP range for my server.

208.53.136.114
208.53.136.115
208.53.136.116
208.53.136.117
208.53.136.118

Here is how i added these IP's to my server

vi /etc/sysconfig/network-scripts/ifcfg-eth0-range0


IPADDR_START=208.53.136.114
IPADDR_END=208.53.136.118
CLONENUM_START=0

Now restart network service

[[email protected] network-scripts]# service network restart
Shutting down interface eth0:                              [  OK  ]
Shutting down loopback interface:                          [  OK  ]
Bringing up loopback interface:                            [  OK  ]
Bringing up interface eth0:                                [  OK  ]
[[email protected] network-scripts]# 

Now ifconfig will list all IP's

[[email protected] network-scripts]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:E0:4C:77:A3:D5
          inet addr:66.90.104.184  Bcast:66.90.104.255  Mask:255.255.255.0
          inet6 addr: fe80::2e0:4cff:fe77:a3d5/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1979132 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1456476 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:139397117 (132.9 MiB)  TX bytes:1941266488 (1.8 GiB)
          Interrupt:169 Base address:0x4000

eth0:0    Link encap:Ethernet  HWaddr 00:E0:4C:77:A3:D5
          inet addr:208.53.136.114  Bcast:208.53.136.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:169 Base address:0x4000

eth0:1    Link encap:Ethernet  HWaddr 00:E0:4C:77:A3:D5
          inet addr:208.53.136.115  Bcast:208.53.136.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:169 Base address:0x4000

eth0:2    Link encap:Ethernet  HWaddr 00:E0:4C:77:A3:D5
          inet addr:208.53.136.116  Bcast:208.53.136.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:169 Base address:0x4000

eth0:3    Link encap:Ethernet  HWaddr 00:E0:4C:77:A3:D5
          inet addr:208.53.136.117  Bcast:208.53.136.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:169 Base address:0x4000

eth0:4    Link encap:Ethernet  HWaddr 00:E0:4C:77:A3:D5
          inet addr:208.53.136.118  Bcast:208.53.136.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:169 Base address:0x4000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:1778 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1778 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:510912 (498.9 KiB)  TX bytes:510912 (498.9 KiB)

[[email protected] network-scripts]#



server setup

ip