On Thu, Oct 16, 2008 at 1:46 AM, Maninder Singh <[EMAIL PROTECTED]> wrote:
> I have created two virtual interfaces on host linux : tap0 : 172.31.5.254
>  and   tap1 : 198.162.10.42
>
> First UML instance say uml1 is linked with tap0 and its eth0 is 172.31.5.253
>
> I have set ip forwarding on, in the host machine and have set the route like
>
> route add -host 172.31.5.253 dev tap0
>
> Now, when i ping from uml1 to 172.31.5.254, it is successful

uml1 and 172.31.5.254 are in the same LAN, based on network mask, so no problem.

> But   when i ping from uml1 to  198.162.10.42, it says : Network

For all other address than the same LAN addresses, u need to set up
DEFAULT routing gateway...in your case the gateway must be
172.31.5.253.....

something like route add default gw .....

> unreachable.
>
> But if i configure eth0 of host machine same as tap1, it works !!

same theory again....same LAN involved.

>
>
> What could be the reason?
>
>
>
>
>
>



-- 
Regards,
Peter Teoh

Reply via email to