Adding virtual NIC (ie: alias) to multi-homed server

Discussion in 'Linux Networking' started by Brian, Aug 5, 2005.

  1. Brian

    Brian Guest

    I have implemented Novell OES (SuSE 9.x) as my mail/router/firewall,
    etc....

    I need an additional IP address bound to my public network interface so
    that I forward iFolder and Groupwise to an internal server. I have
    Apache and some other services already running on _this_ server.
    Coming from the RedHat 7.1 days, all I had to do to create a virtual
    NIC (alias) was to add a file called (for example)
    /etc/sysconfig/network-scripts/ifcfg-eth0-range0.

    Inside that file contains the definition for an additional IP address
    for an already existing NIC.

    IPADDR_START=192.168.200.42
    IPADDR_END=192.168.200.42
    CLONENUM_START=0
    ONBOOT="yes"

    When I restart the network, RedHat adds an additional/virtual network
    card called 'eth0:0' as shown here:


    eth0 Link encap:Ethernet HWaddr 00:D0:B7:74:08:0E
    inet addr:192.168.200.45 Bcast:192.168.200.255
    Mask:255.255.255.0
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:20208139 errors:0 dropped:0 overruns:0 frame:0
    TX packets:18858934 errors:0 dropped:0 overruns:0 carrier:2
    collisions:205296 txqueuelen:100
    Interrupt:14 Base address:0xe000

    eth0:0 Link encap:Ethernet HWaddr 00:D0:B7:74:08:0E
    inet addr:192.168.200.42 Bcast:192.168.200.255
    Mask:255.255.255.0
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    Interrupt:14 Base address:0xe000


    Not only did this create an additional IP address, it also created a
    virtual NIC to which the IP is bound. (eth0:0)


    SuSE doesn't seem to follow this behavior. When I follow the same
    procedure as I did with RedHat, I get neither the IP addres nor the
    virtual interface. I tried using YAST2 and I did get the IP address,
    but YAST didn't create a virtual interface. I really do need to have
    the 'extra' interface, ie: eth0:0 and eth0:1. Just having an
    additional IP address isn't sufficient.

    How can I accomplish this? Thanks, Brian
     
    Brian, Aug 5, 2005
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.