Dayalan Manohar wrote:

> Hi,
> I have a question,How do i configure a linux box with 2 network cards
> and ip forwarding enabled to do a redirect the same way that it is being
> done as shown by 192.168.1.1?This does not seem to be the default
> behaviour with simply enabling IP forwarding and putting in a route to
> the next hop.Correct me if I am wrong.192.168.1.1 is the default gateway
> in this case.
>
> </root>ping 192.168.254.1
> PING 192.168.254.1 (192.168.254.1) from 192.168.1.90 : 56(84) bytes of
> data.
> 64 bytes from 192.168.254.1: icmp_seq=0 ttl=255 time=0.6 ms
> >From int-if-alabama.innomedia.soft.net (192.168.1.1): Redirect Host(New
> nexthop: demo.innomedia.soft.net (192.168.1.119))
> 64 bytes from 192.168.254.1: icmp_seq=1 ttl=255 time=18.8 ms
> 64 bytes from 192.168.254.1: icmp_seq=2 ttl=255 time=0.4 ms
>

hi,
it can be achieved by another great feature of the linux kernel - policy
based routing

#echo 1 > /proc/sys/net/ipv4/conf/eth0/send_redirects

sorry, i just answered my own question.
regards,
dayalan


_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to