Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-05-2011, 08:17 AM   #1
LQ Newbie
Registered: Jul 2009
Location: Poland
Distribution: openSUSE, Debian
Posts: 15

Rep: Reputation: 0
apt-get, aptitude - bind to ip address

Hi all,
I have vps box with debian. I have two ip addresses, but first (default) is currently unavailable. In that case there is many problem. Fortunately wget has --bind-address option so I can download. My question is how can i configure apt-get, aptitude to use specific address?
Old 08-05-2011, 09:01 AM   #2
Senior Member
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 780Reputation: 780Reputation: 780Reputation: 780Reputation: 780Reputation: 780Reputation: 780
If your default address / network interface is unavailable, rather than trying to tell each application to go through a different one, I would set the default route to use the proper interface / ip address. It has been a while since I have done this, but off hand I believe the commands is "ip route <parameters here>". You will want to check the man pages for help.


apt-get, aptitude, bind, ip

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
I bricked my NAS? :( aptitude, apt-get, apt-cache segfaults immediately omegaworks Linux - Server 5 11-07-2009 09:21 AM
aptitude instead of apt-get cccc Debian 2 07-19-2009 02:07 PM
[SOLVED] apt-get and aptitude riganta Linux - Desktop 8 03-06-2009 05:07 PM
aptitude vs apt-get PCalitrack Ubuntu 3 08-08-2006 12:34 PM
aptitude .vs. apt-get thelonius Debian 12 07-25-2006 11:52 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:48 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration