Websitetemplate.org

Welcome > Linux > Networking > Binding 2nd IP Address to NIC

Binding 2nd IP Address to NIC

RED HAT SPECIFIC!!!
cd /etc/sysconfig/network-scripts
cp ifcfg-eth0 ifcfg-eth0:0
vi ifcfg-eth0:0
(Change contents as shown below)
  DEVICE=eth0:0
  BOOTPROTO=static
  IPADDR=
  NETMASK=255.255.255.0
  ONBOOT=yes
:wq
ifup eth0:0  # error may occur - this is OK
/etc/init.d/network restart
ifconfig   # verify new IP address is present

log into the box from somewhere else using new IP

Content Copyright 2003-2014 George Toft