Adding a route for an internal network on a second NIC

Juan Pablo Feria Gomez jferiago at gmail.com
Tue Jun 6 05:04:56 UTC 2006


On 6/5/06, Karl Hegbloom <hegbloom at pdx.edu> wrote:
> On Tue, 2006-06-06 at 03:23 +0100, Travisty wrote:
> > I too have seperate networks. one for internet (192.168.0.1) and one
> > intranet (192.168.11.11). It always wants to use the default geteway
> > device. Despite having 2 NICs I can only access a single network at a
> > time. I am curious as to what soulutions are available to access both.


using route

-----------------------
internet router, firewall (device which gives access to the internet)
192.168.0.254
------------------------
|
|
|
---------------------
eth0 192.168.0.1
linux box
eth1 192.168.11.11
-----------------------
|
|
|
intranet 192.168.11.x net



if this is your schema...

souuld work with...
# remove all default routes
sudo route del sefault  (repeat until get an error)
# Add the new default route
sudo route add default gw 192.168.0.254

if not, post your network schema, and explain your tests (with the results) ...




More information about the ubuntu-users mailing list