Find the answer to your Linux question:
Results 1 to 2 of 2
Hello! i have a problem. i have 2 VirtualPC /debian squeeze pc1 --> eth0 192.168.1.1/24 --> eth1 10.0.3.15/24 gw 10.0.3.2 bridged to my pc. pc2 connected to pc1 --> eth0 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2013
    Posts
    2

    static routing


    Hello!

    i have a problem.
    i have 2 VirtualPC /debian squeeze

    pc1 --> eth0 192.168.1.1/24

    --> eth1 10.0.3.15/24 gw 10.0.3.2 bridged to my pc.

    pc2 connected to pc1 --> eth0 192.168.1.2/24 gw 192.168.1.1

    i want to be able to browse web via pc2.

    so i have enabled ipv_4 forward.
    i add static route on pc1: route add -net 10.0.3.0/24 dev eth0
    and then route add 0.0.0.0/0 gw 10.0.3.2 dev eth0

    but when i try to ping 10.0.3.2 from pc2 i get:
    From 192.168.1.1 Redirect Host(New nexthop: 10.0.3.2)
    from 192.168.1.1 Destination Host Ureachable.

    no iptables rules.

    what am 'i doing wrong ?thank you in advance.

  2. #2
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,677
    Can you draw out your network? Would most likely make it easier for everyone to follow the trail of the packet.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •