Quantcast
Channel: VMware Communities : Discussion List - Virtual Machine, Guest OS and VM Tools
Viewing all articles
Browse latest Browse all 1961

Redhat 6.3 creating an alias IP address on the network card.

$
0
0

I am trying to create an alias IP address on an existing ethernet interface using the following procedure below.  However it does not work, it does not create the alias eth0:1 interface.  I've tried many times, various combinations and configurations without success.  Any ideas??  BTW this procedure was given to me by Redhat.

 

Thanks.

 

  • The following procedure uses eth0 as an example for assigning a second TCP/IP address:
    • Verify that your /etc/sysconfig/network-scripts/ifcfg-eth0 file does not have a GATEWAY= parameter in it. If it does, remove it and add that parameter to /etc/sysconfig/network.
    • The alias interface configuration files has naming style of "ifcfg-<if-name>:<alias-name>".
    • Copy your /etc/sysconfig/network-scripts/ifcfg-eth0 file to a new file called: /etc/sysconfig/network-scripts/ifcfg-eth0:1
  • Modify /etc/sysconfig/network-scripts/ifcfg-eth0:1
  1. change DEVICE=eth0 to DEVICE=eth0:1
  2. modify IPADDR= to specify the additional tcp/ip address you wish to use.
  3. the ONBOOT option not valid for alias devices; please use ONPARENT in alias if you want to bring up the device when the parent device is brought.
  • Here is an example for ifcfg-eth0:1

    # cat ifcfg-eth0:1
    DEVICE=eth0:1
    ONPARENT=yes
    BOOTPROTO=static
    IPADDR=192.168.200.2
    NETMASK=255.255.255.0
  • Start the secondary interface:

    # ifup eth0:1
  • or

    # service network restart


Viewing all articles
Browse latest Browse all 1961

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>