[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 192.0.4.0 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

Sumeet





----- 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 192.0.4.15 and gateway is 192.0.4.100.
The
> Netmask is 255.255.255.0. Now it works fine with default gateway as
> 192.0.4.100. I can ping locally. But not to the net. I tried to add the
same
> way which u told me and it gives me destination does'nt match with subnet.
I
> had put all possible permutations and combinations in destinat but it
refuses
> 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
C)?
> It wud be great if u tell me the exact config.... with Gateway,
Destination
> and Subnet. I admit it is spoonfeeding but when things don' t work right
this
> 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
>