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

Re: 2 ethernet interfaces



>  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
this shudn't work because u r using a private ip in the internal network.
(but 192.0 is not a private ip if i remember correctly.) i guess u will also
hav to add ip masq thru ipchains..

Bye,
    /\ |\/| |3 /\ r