Find the answer to your Linux question:
Results 1 to 2 of 2
I'm actually using Xandros, but that wasn't an option and, for all intents and purposes, I think the issue can be treated as a Debian issue, since that's what Xandros ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2005
    Posts
    1

    Adding Virtual IPs


    I'm actually using Xandros, but that wasn't an option and, for all intents and purposes, I think the issue can be treated as a Debian issue, since that's what Xandros is built upon.

    I'm trying to add virtual IPs to my NIC, and I've added them the etc\network\interfaces as so:

    ***************

    auto lo

    iface lo inet loopback

    auto eth0

    iface eth0 inet static
    address 192.168.1.6
    netmask 255.255.255.0
    gateway 192.168.1.1

    auto eth0:1

    iface eth0:1 inet static
    address 192.168.1.16
    netmask 255.255.255.0
    gateway 192.168.1.1

    auto eth0:2

    iface eth0:2 inet static
    address 192.168.1.26
    netmask 255.255.255.0
    gateway 192.168.1.1

    ***************

    When I run "/etc/init.d/networking restart", the two virtuals are added. However, when I reboot, they aren't there.

    Is there a trick to this I'm missing?

    Alternately, where could I insert the "/etc/init.d/networking restart" to have it execute on boot-up?

    Thanks,

    dz

  2. #2
    Linux Engineer
    Join Date
    Nov 2002
    Location
    Queens, NY
    Posts
    1,319
    I'd check out /etc/init.d/networking. This is what really controls how this is dictated.

    What happens if you run ifdown -a and then ifup -a after your system is running?
    The best things in life are free.

Posting Permissions

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