Article 5RS0E How to route to home network and global network

How to route to home network and global network

by
ballsystemlord
from LinuxQuestions.org on (#5RS0E)
Hello,
This problem has probably been asked and answered 1,000 times already, I just can't find the right search terms. So please just point me in the right direction. I will RTFM.

I wanted to create an intranet (home net), and have a second connection go to the internet (global net). I can setup routing for the local router to assign addresses on the intranet just fine.
What I have trouble with is telling Linux to send packets for other addresses than 192.168.1.XXX to the global network interface, and vice versa. It seems Linux just chooses one or the other interface and puts every packet onto it assuming they will reach their destination -- when they will not.
I also need to know how, if one link goes down, to make Linux NOT send all the packets for that interface out the other one. Linux appears to assume that the links are a redundancy measure by default, not 2 different networks.

Thanks!latest?d=yIl2AUoC8zA latest?i=zKStTezeXNs:3igxiTDBilg:F7zBnMy latest?i=zKStTezeXNs:3igxiTDBilg:V_sGLiP latest?d=qj6IDK7rITs latest?i=zKStTezeXNs:3igxiTDBilg:gIN9vFw
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments