Advertisements

Assigning two IP addresses to one ethernet card in Linux

This post has been moved here:

http://technize.com/2007/05/05/assigning-two-ip-addresses-to-one-ethernet-card-in-linux/

Advertisements

4 Responses

  1. Hi Sanix,

    Your trick worked in Fedora 7 – however, what I needed to do is one extra step.

    After modifying the file eth0:0 in directory “/etc/sysconfig/network-scripts” I found that I could not PING with both the interfaces from another XP computer on my LAN.

    What I did is went to NETWORK GUI under ADMINISTRATION and ACTIVATE each interface individually – even though it shows as ALREADY ACTIVATED.

    Then it works great !!!

    Cheers,
    Niraj

  2. Actually, I know this topic is old but came across it in a search.. so I thought I would throw out my way of doing it:

    vi /etc/sysconfig/network-scripts/ifcfg-eth0-range0

    Add the following:

    IPADDR_START=”192.168.1.2″
    IPADDR_END=”192.168.1.254
    CLONENUM_START=0

    So, this will tell linux to bind all Ip addresses starting at 192.168.1.2 to 192.168.1.254.. it’s a much easier way.

  3. thank you so much gdahl .. I will try out your way too.. it looks so interesting..

  4. i face a prolem to configure the suinterface.everytime i restart network services it inactiva tha subinterface.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: