NICに複数のIPを割り当てる方法

  • 設定ファイル作成
$ cat /etc/sysconfig/network-scripts/ifcfg-eth0-range0
IPADDR_START=10.77.23.65
IPADDR_END=10.77.23.68
NETMASK=255.255.255.0
BROADCAST=10.77.23.255
NO_ALIASROUTING=yes
CLONENUM_START=0
  • IF起動
# ifup ifcfg-eth0-range0
# ifconfig -a
...
eth0:0    Link encap:Ethernet  HWaddr 00:0C:29:1C:51:8A  
          inet addr:10.77.23.65  Bcast:10.77.23.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:185 Base address:0x2000 

eth0:1    Link encap:Ethernet  HWaddr 00:0C:29:1C:51:8A  
          inet addr:10.77.23.66  Bcast:10.77.23.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:185 Base address:0x2000 

eth0:2    Link encap:Ethernet  HWaddr 00:0C:29:1C:51:8A  
          inet addr:10.77.23.67  Bcast:10.77.23.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:185 Base address:0x2000 

eth0:3    Link encap:Ethernet  HWaddr 00:0C:29:1C:51:8A  
          inet addr:10.77.23.68  Bcast:10.77.23.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:185 Base address:0x2000 
...