Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've got a debian server with a single NIC and 5 IPs. It's all setup, configured and working well. What I want to know is: when I access an external site (lynx, ftp, ssh, wget) which of the ip addresses will show in the remote servers logs?
I've been using tcptrack and it seems that it's always the ip address from the last nic in /etc/network/interfaces.
Is there a way to select which of the ip address should be the default?
what interface does this match up to on ifconfig? you'll have a default route listed against an interface, e.g. eth0. each ip will be on a seperate logical interface, eth0:1 eth0:2 etc.. and i *assume* that if your default route references, for exmaple, eth0:2 then that's the ip it would have.
I think i messed up slightly when setting up the server, as i cut'n'pasted the settings for each of the virtual interfaces. So each of them have a default gateway! which means that when i ask route, I have 5 defaults.
I'll change /etc/network/interfaces so only the eth0 has a default gateway. Should this mean that the ip address assigned to eth0 should now become the 'default'?
As an aside, route shows the gateway address with a '.s' (eg 10.0.168.192.s) which I don't understand.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.