Re: reference for 2 IP #'s for 1 NIC

From: Edward Croft (ecroft_at_openratings.com)
Date: 11/20/03

  • Next message: Ed Wilts: "Re: Passwd|Shadow & Group file Sync.."
    To: Red Hat List <redhat-list@redhat.com>
    Date: Thu, 20 Nov 2003 15:34:36 -0500
    
    

    On Thu, 2003-11-20 at 15:03, Bill Tangren wrote:
    > Hey all,
    >
    > Could someone point me in the direction of documentation on how to set
    > up one NIC card to use two IP numbers? I did a man on ifconfig and
    > didn't see how to do it. I took a RedHat class several years ago, and
    > the manual for that class states that you can have as many as 256 ip
    > numbers for a single NIC, but it didn't say how to do it.
    >
    > TIA,
    > Bill Tangren
    >
    Hey Bill, to alias an address on a NIC, go to
    /etc/sysconfig/network-scripts. You want to create a script called
    ifcfg-ethx:n where x is the NIC you wish to alias and :n is the
    iteration. Here is an example of my ifcfg-eth0:1 file.
    # Please read /usr/share/doc/initscripts-*/sysconfig.txt
    # for the documentation of these parameters.
    NETMASK='255.255.255.0'
    BOOTPROTO='none'
    DEVICE='eth0:1'
    IPADDR='10.0.13.1'
    TYPE='Ethernet'
    ONBOOT='yes'
    USERCTL='no'
    NETWORK='10.0.13.0'
    BROADCAST='10.0.13.255'
    PEERDNS='no'

    If you need a gateway, add the line GATEWAY=xx.xx.xx.xx
    Where xx.xx.xx.xx is the gateway you are using for the second address.
    Make sure the permissions are the same as ifcfg-eth0 et al. Then just
    ifup eth0:1.
    Good luck
    Ed.

    -- 
    redhat-list mailing list
    unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    https://www.redhat.com/mailman/listinfo/redhat-list
    

  • Next message: Ed Wilts: "Re: Passwd|Shadow & Group file Sync.."

    Relevant Pages

    • Re: Alignment issues under windows 64 bits
      ... Please do not send e-mail directly to this alias. ... > I have seen that the stack must be aligned in a 16 byte ... > I would love to see a piece of documentation concerning this... ... > movq 2,%rcx ...
      (microsoft.public.win32.programmer.kernel)
    • Re: Desired behaviour of "ifconfig -alias"
      ... term alias exists only for historical reasons, ... Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. ... Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: ... "Documentation is like sex; when it's good, it's very, very good, ...
      (freebsd-stable)
    • Re: Renaming second DCs the correct way?
      ... The documentation for this procedure is located at the URL below. ... rights. ... Use of included script samples are subject to the terms ... This alias is for newsgroup purposes ...
      (microsoft.public.windows.server.general)
    • Re: getAudioLanguageID returns parameter is incorrect
      ... I'll file a bug to update the documentation. ... attention. ... Please do not send email directly to this alias as this alias is for ... Int32 langcount = wmpcontrols3.audioLanguageCount; ...
      (microsoft.public.windowsmedia.sdk)
    • Re: AIX documentation. Now Resolved.
      ... Hey Ku, ... Under 4.3.3 I was able to access it by executing the ... >> Documentation icon off the CDE help menu. ... >Hey Bruce, ...
      (AIX-L)