[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
Re: 2 ethernet interfaces
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 18.104.22.168 netmask 255.255.255.0 eth0
b)route add -net <dest network of ur isp or the router(R1) internal
interface> netmask 255.255.255.255 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 0.0.0.0 netmask 0.0.0.0 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>
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 22.214.171.124 and gateway is 126.96.36.199.
> Netmask is 255.255.255.0. Now it works fine with default gateway as
> 188.8.131.52. 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