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 Have a machine that i am assinging 2 ips to from 2 seperate networks. Both these ips are on totally diffrent networks are are publicly accessible. I also will have to set the gateway for each network.
Right now the problem i am having is that only the network assinged to eth0 is alive and pinable while eth1 appears to be up but it's not accessible.
Can anybody give me a clue what i'm doign wrong here? route only shows a default gw setup for eth0 and not eth1, also when i add default gw to eth1 it still does not seam to work. At this point i'm wondering if something is wrong else where.
Since these two IPs are both on the same subnet you don't need to have both there. Are you turning them both on via an ifcfg-eth config? Maybe you have ifcfg-eth0:0 setup? Either way, get rid of one of them.
on eth1 it looks like you have two networks setup:
216.144.233.192 0.0.0.0 255.255.255.224 U 0 0 0 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
which one is the correct one? Do you have eth1 setup with an IP address?
Also keep in mind - I'm not sure what you're trying to do is really feasable. You want to have two Internet connection and use both of them for increased bandwith? Something along the lines of bonded ethernet?
i need both connections becaue one service will be on one network and another service on another. There will be no bonded bandwidth.
As for the 169 address, i'm not sure where that is comming from, it appears that fedora is adding it automatically.
Those 2 ips you are talking about are aliases eth0:1 and eth0:2 there are really 3 ips on eth0 and there will be 3 ips on eth1 as well but for now i'm just trying to get eth1 working.
While screwing with it for a bit i did get eth1 and eth0 pingable for a bit but i dont know how, and when i restart the network and try to figure out how i cant seam to figure it out again.
I think your confused about what i'm trying to do. I am not trying to have a bonded connection between eth0 and eth1. I simply want connections to eth0 to come in eth0 and respoces to be sent out eth0. If the connection comes in eth1 then the responce be sent out eth1. I just want the machine to be alive on both ips. THey dont need to be bonded,loadbalanced,etc.
[QUOTE=tr4nsfix]Whats your output from a 'netstat -rn' ?
You can only have one default gateway... this is where traffic goes if it doesn't know where else to go.
why do you have two real world IPs coming into one box on two seperate interfaces out of curiosity
my machine is fc6 which is install yestoday,but both the eth0 and eth1 is not alive.I have inserted the right drives modules.Besides,i have done a lot on the configation,such as /etc/sysconfig/network-scripts/ifcfg-eth0 file...... But it doesn't seen to work...
can you help me,please?
my email: mabaozhizao@163.com
thanks
At first sorry to kick this thread up,
The reason to post a reply is for indexing purposes and maybe if the auther hasn't found a way to give some help.
I once did the setup you were talking about.
(2 nic's on a box with different settings, different gateways etc).
The trick is to use different routing tables (search for advanced routing howto).
Also keep in mind a) that you must enable source routing verification in sysctl else nic 1 can give a reply to nic 2 et vice versa.
b) each application on your system must be configged to one nic (=ip/network)
c) if you're using isp's and they block outgoing mail except for their domains then things will be more difficult. The option is to configure for example one sendmail on nic 1/network1 and postfix for example on nic 2/network 2. OR you can try some virtualisation like openvz and let the host machine do the network routing. (which i didn't tried)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.