[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: 2 ethernet interfaces

Hi Goldwyn.
I am still not clear on ur network arch. but this is what i will suggest

This is assuming:
 eth0 is connected to ur internal network
and eth1 to the isp directly or thourough the router(R1)
On the command prompt give this:
a) route add -net netmask eth0
b)route add -net <dest network of ur isp or the router(R1) internal
interface>  netmask eth1
This tells the router which interfece(eth0/eth1) is the packet to go to.
Now we add the default route.
c)route add -net netmask gw <ip add for ur isp's gateway if
it is connected directly(thru a modem) or the ip of the internal interface
of the router R1>

Hope this helps


----- Original Message -----
From: Goldwyn <goldwyn_r@xxxxxxxxxxxx>
To: <linux-delhi@xxxxxxxxxxxxxxxxxxxxx>
Sent: Wednesday, March 21, 2001 11:34 PM
Subject: Re: [linux-delhi] 2 ethernet interfaces

> Yehi to rona hai, I tried the same stuff but it did not work. I'll tell ya
> the whole story. My IP address is and gateway is
> Netmask is Now it works fine with default gateway as
> I can ping locally. But not to the net. I tried to add the
> way which u told me and it gives me destination does'nt match with subnet.
> had put all possible permutations and combinations in destinat but it
> to work. MAybe i did all except the right one!!
> Now I reset it to my (default gateway) ISP's gateway and it can ping to
> Internet, but not to the local network.
> Is it bcoz my local IP does'nt fall into any Class of network (ie A, B,or
> It wud be great if u tell me the exact config.... with Gateway,
> and Subnet. I admit it is spoonfeeding but when things don' t work right
> is the only option left.
> Thanx a lot.
> Goldwyn :o)
> > the simplest way is to use linuxconf.
> > config->networking->client tasks->routing&gateways->set routes to
> > alternate local nets.
> >
> > if u want a more techy solution read up the man pages of gated or routed
> >
> >
> > Neil
> >
> Goldwyn :o)
> ------------------------------------------------
> The mailing list archives are available at
> http://lists.linux-india.org/cgi-bin/wilma/linux-delhi