LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-18-2014, 10:41 AM   #1
mcai8rw2
LQ Newbie
 
Registered: Dec 2011
Posts: 15

Rep: Reputation: Disabled
External Access for virtual / alias NIC


Hello,

Linux noob here.... just trying to get some networking to work.

We have a server with multiple NIC aliases defined in the /etc/network/interfaces file

eth0
eth0:1
..
eth0:14


When this server accesses the internet, it currently goes via the main eth0 IP address, as you would expect.

How can i make this ubuntu server access the internet from one of the other virtual NICs so that the external IP address appears to be one of the other assigned external IP addresses?

e.g.

eth0 external IP = 123.123.123.123
eth0:1 external IP = 123.123.123.124
eth0:2 external IP = 123.123.123.125

Thanks

p.s. I test this by "curl icanhazip.com"
 
Old 02-19-2014, 02:31 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,881

Rep: Reputation: 162Reputation: 162
Following link can help you to setup IP aliasing on one physical interface. The file position could be different if your distribution is different from their.
http://www.tecmint.com/create-multip...ork-interface/
 
Old 02-19-2014, 03:10 PM   #3
mcai8rw2
LQ Newbie
 
Registered: Dec 2011
Posts: 15

Original Poster
Rep: Reputation: Disabled
CURL is all a man needs.

Thanks for the tips and these will be useful for the future... but as it turns out curl has an inbuilt way of accessing these virtual aliases.

Thanks for your time regardless.


Quote:
Originally Posted by nini09 View Post
Following link can help you to setup IP aliasing on one physical interface. The file position could be different if your distribution is different from their.
http://www.tecmint.com/create-multip...ork-interface/
 
Old 02-20-2014, 02:48 PM   #4
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,881

Rep: Reputation: 162Reputation: 162
First of all, can you ping these alias IP address from another machine?
 
  


Reply


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
bridge two NIC's in virtual OS with NIC's in physical machine m4rtin Linux - Networking 0 01-24-2012 05:58 PM
Forward traffic from internal NIC to external NIC laurens Linux - Newbie 4 07-30-2009 10:53 AM
Fedora : Cannot access apache with external IP (one NIC) zamri Linux - Networking 6 03-01-2005 01:37 AM
2 External Nic, 1 Internal Nic Router Problem trevanda Linux - Networking 0 10-13-2004 01:20 AM
Not all nic alias's loading! jamiemcparland Linux - Networking 3 10-04-2003 02:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:49 PM.

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