Find the answer to your Linux question:
Results 1 to 6 of 6
Hello, I have a stupid problem with my linux box Here is the scenario: Linux box has 4 interfaces without the loopback interface: eth0 172.22.0.0/24 from that interface I receive ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    wfw
    wfw is offline
    Just Joined!
    Join Date
    Jan 2005
    Location
    Bulgaria
    Posts
    26

    Routing problem?


    Hello, I have a stupid problem with my linux box

    Here is the scenario:

    Linux box has 4 interfaces without the loopback interface:

    eth0 172.22.0.0/24 from that interface I receive PPPOE connection which is:
    ppp0 213.240.xxx.xxx/32

    also I have a private network in my home:
    eth1 10.0.0.1/24 which has 4 computers which use the internet connection from ppp0.

    there is no problem about the interfaces above. but I have a vpn server which gives interface ppp1 with server IP 10.0.1.1 and client IP: 10.0.1.100

    when I make a connection to the vpn server from internet the ppp1 interface is UP and i can ping IP 10.0.1.1 and IP 10.0.1.100 from the server

    I have a client pc from my home network which IP is 10.0.0.5 and IP 10.0.0.1 set for default gw. it can ping 10.0.0.1 and 10.0.1.1 but it cannot ping 10.0.1.100 which is the main task.

    if you have any idea why 10.0.0.5 cannot ping 10.0.1.100 plz help

  2. #2
    Linux Engineer
    Join Date
    Apr 2005
    Location
    Buenos Aires, Argentina
    Posts
    908
    if you have any idea why 10.0.0.5 cannot ping 10.0.1.100 plz help
    They cannot ping eachother because they're in different subnets.
    serzsite.com.ar
    "All the drugs in this world won\'t save you from yourself"

  3. #3
    Just Joined!
    Join Date
    Jul 2005
    Posts
    28
    Quote Originally Posted by serz
    They cannot ping eachother because they're in different subnets.
    I think that it's not the real problem because the client sets 10.0.0.1 as the gateway and this box has another IP in the range if 10.0.1.xxx . Maybe you should set the router settings for the server, to tell it route the requests to 10.0.1.xxx via vpn device.

  4. #4
    wfw
    wfw is offline
    Just Joined!
    Join Date
    Jan 2005
    Location
    Bulgaria
    Posts
    26
    Quote Originally Posted by serz
    if you have any idea why 10.0.0.5 cannot ping 10.0.1.100 plz help
    They cannot ping eachother because they're in different subnets.
    ok they are in different subnets, but I set up a default GW on the 10.0.0.5 which means that every packet which is not for the local subnet should be sent to the gateway.

    also I added in the 10.0.0.1 this:
    route add 10.0.1.0 mask 255.255.255.0 10.0.0.1
    which also didn't work.

    when i create a vpn connection the default gw on the vpn client pc is changed to 10.0.1.1
    should I run a script which adds 10.0.0.0/24 on the vpn client pc?

  5. #5
    wfw
    wfw is offline
    Just Joined!
    Join Date
    Jan 2005
    Location
    Bulgaria
    Posts
    26
    Quote Originally Posted by hr.asadi
    Maybe you should set the router settings for the server, to tell it route the requests to 10.0.1.xxx via vpn device.
    what do you mean? how can I make this?

  6. #6
    Just Joined!
    Join Date
    Jul 2005
    Posts
    28
    try the 'ip' command. you should set the router settings there.

Posting Permissions

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