Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Adding virtual ip in Ubuntu 11.10

  1. #1
    Join Date
    Jun 2010
    Beans
    7

    Adding virtual ip in Ubuntu 11.10

    Hi Everybody,

    I want add virtual ip for my pc(Ubuntu 11.10).I have edited the file
    #vi /etc/network/interface and added the below line

    auto eth0
    iface eth0 inet static
    address 192.168.0.190
    netmask 255.255.255.0
    broadcast 192.168.0.255
    gateway 192.168.0.8
    auto eth0:1
    iface eth0:1 inet static
    address 192.168.0.41
    netmask 255.255.255.0
    broadcast 192.168.0.255
    gateway 192.168.0.8

    But while restarting the network service gives the below error

    Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces
    * Reconfiguring network interfaces... RTNETLINK answers: File exists
    Failed to bring up eth0:1.


    Any suggestion highly appreciated .

    Thanks in advance



  2. #2
    Join Date
    Sep 2011
    Location
    Wherever I go, Here I am
    Beans
    Hidden!
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Adding virtual ip in Ubuntu 11.10

    Did you uninstall your network manager?


    add virtual IP the easy way
    http://www.liberiangeek.net/2010/02/...-the-easy-way/
    Last edited by bluexrider; November 8th, 2011 at 07:57 PM. Reason: no good reason
    Please mark your thread as Solved when appropriate || My WIKI
    ---------------------------


  3. #3
    Join Date
    Jun 2010
    Beans
    7

    Re: Adding virtual ip in Ubuntu 11.10

    Sorry to say this,

    I have already followed the url earlier and it was working with Ubuntu 10.04. Problem started with 11.10 .Sorry for posting the stupid question .but I am not able to get solution around .

  4. #4
    Join Date
    Jan 2010
    Beans
    7

    Re: Adding virtual ip in Ubuntu 11.10

    Hi,

    I face exactly the same problem with ubuntu 11.10...it works fine with 11.04 then it failed tu bring up after upgrade to 11.10...have you found the workaround?

  5. #5
    Join Date
    Nov 2005
    Location
    Allentown, PA
    Beans
    123
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Adding virtual ip in Ubuntu 11.10

    This link looks like it has relevant information:
    http://www.linuxquestions.org/questi...-rhel5-710766/

    I've found that even though I can't see the virtual NICs they are responding. In that link, the OP mentions "Further read indicated there is an option for alias files to start the alias interface at same time as primary or not. The default is to start at same time." Anyone have a clue how to change that?

  6. #6
    Join Date
    Jun 2010
    Beans
    7

    Re: Adding virtual ip in Ubuntu 11.10

    Quote Originally Posted by chakhedik View Post
    Hi,

    I face exactly the same problem with ubuntu 11.10...it works fine with 11.04 then it failed tu bring up after upgrade to 11.10...have you found the workaround?

    Hi chakhedik

    Still I am waiting for solution .

  7. #7
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    12,985
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: Adding virtual ip in Ubuntu 11.10

    This is a known bug in 11.10.

    You could create the interface manually in /etc/rc.local. Remove the definition in /etc/network/interfaces, then edit /etc/rc.local and add this command:

    Code:
    ifconfig eth0:0 192.168.0.41 netmask 255.255.255.0 broadcast 192.168.0.255
    You don't need a gateway directive; the aliases always use the same gateway as the physical adapter.

  8. #8
    Join Date
    Nov 2005
    Location
    Allentown, PA
    Beans
    123
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Adding virtual ip in Ubuntu 11.10

    That report says a fix was released last month, but I'm still having the problem. When should we expect that to trickle into the repos?

  9. #9
    Join Date
    Jan 2010
    Beans
    7

    Re: Adding virtual ip in Ubuntu 11.10

    Quote Originally Posted by SeijiSensei View Post
    This is a known bug in 11.10.

    You could create the interface manually in /etc/rc.local. Remove the definition in /etc/network/interfaces, then edit /etc/rc.local and add this command:

    Code:
    ifconfig eth0:0 192.168.0.41 netmask 255.255.255.0 broadcast 192.168.0.255
    You don't need a gateway directive; the aliases always use the same gateway as the physical adapter.
    thanks SeijiSensei, that solve my problem....thank you very much

    That report says a fix was released last month, but I'm still having the problem. When should we expect that to trickle into the repos?
    i think the fix released for debian only and not yet been pushed to ubuntu....
    Last edited by chakhedik; December 16th, 2011 at 10:24 PM.

  10. #10
    Join Date
    Jun 2010
    Beans
    7

    Wink Re: Adding virtual ip in Ubuntu 11.10

    Quote Originally Posted by SeijiSensei View Post
    This is a known bug in 11.10.

    You could create the interface manually in /etc/rc.local. Remove the definition in /etc/network/interfaces, then edit /etc/rc.local and add this command:

    Code:
    ifconfig eth0:0 192.168.0.41 netmask 255.255.255.0 broadcast 192.168.0.255
    You don't need a gateway directive; the aliases always use the same gateway as the physical adapter.
    Thanks a ton SeijiSensei for the solution .This resolved my problem .I was about to downgrade OS .Sorry for late reply .

Page 1 of 2 12 LastLast

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
  •