Results 1 to 2 of 2

Thread: 2 IP address on One NIC

  1. #1
    Join Date
    Jul 2005
    Posts
    12

    Question 2 IP address on One NIC

    How to Set up 2 IP address on "One" NIC ???

  2. #2
    Join Date
    Feb 2006
    Posts
    19

    Smile Two IP address to Single Network Interface Card

    How to give multiple IP address to single NIC card

    Cd into /etc/sysconfig/network-scripts
    There is configuration file for for first Ethernet Card named as ifcfg-eth0 for first IP
    Create a new file named as ifcfg-eth0:1 for second IP address
    with following contents
    ----------------------------------------------------
    DEVICE=eth0:1
    IPADDR=192.168.0.2 # (IP address)
    NETMASK=255.255.255.0 # (Netmask)
    BOOTPROTO=static
    ONBOOT=yes
    ----------------------------------------------------
    Restart the Network Service
    # service network restart

    [NOTE: you can add multiple IP addresses for one ethernet card by adding one more file for one more IP address ifcfg-eth0:2 ifcfgeth0:3 and so on.]
    [eth0 is the alias for First Ethernet Card eth1 for Second Ethernet Card and
    so on if any]

    You can also give the Range of IP address for example the ifcfg-eth0-range0 file with the following contents would bind the IP address 192.168.0.10 through 192.168.0.85 to the eth0 network card.
    IPADDR_START=192.168.0.10
    IPADDR_END=192.168.0.85
    CLONENUM_START=0

    (Please correct me if I am going wrong)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •