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.
Hello
i have one interface with 2 different ip address :
eth0 ->ip-pub1/29
eth0:1 ->ip-pub2/30
now i want route my remote servers (public ip) through eth0:1
what does /29 and /30 signify here? These are different subnets? You can't do that. an aliased interface should be on the same network, otehrwise you're just breaking things left right and centre, even IF it appears to still work, it's AWFUL practise.
And routing tables define where to go next, not what local interface to use to get there. regardless of aliases interfaces and such, if you say that destination x is reached via next hop a.b.c.1 then it will have to use an interface ON that subnet, so if it has a.b.c.100 and a.q.r.123, it'll have to use the first one implicitly
hello,
i have one interface with two ip with diff subnet mask, and two gw , now according to your last post i have to change the second ip so both have the same subnet mask ,
OLD ==> eth0 -> /29 ,,,,, eth0:1 -> /30
NEW ==> eth0 , eth0:1 --> /29 ,, same GW
i want to route my remote server go through eth0:1
how can i do that ?
If you have two different internet connections, then you should have two different nics OR vlans on the switch. What you're doing will most likely work fine, but it's just very bad practise. You can leave it as is if you have no realistic option to improve it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.