Linux IP routing: help

Discussion in 'Home Networking' started by aguara, May 13, 2015.

  1. aguara

    aguara Guest

    I have two access to internet..

    I have a LAN but, the IP only I need to out for the other conection.

    Example: <- ppp0 <- ppp1

    How to make the changes? I don't understand all the options of IP..
    Thanks in advance!
    aguara, May 13, 2015
    1. Advertisements

  2. aguara

    Henry Law Guest

    Not sure I understand your question. Your internet connection will not
    have an address in 192.168... because that is one of the RFC1819
    "private internet" blocks.
    But these are not two different, independent networks. If you go to and play around a bit you
    will see that is a valid address in both of them.
    Henry Law, May 13, 2015
    1. Advertisements

  3. Hi Henry!

    Well, I have a one LAN

    And have two conection to Internet (ppp0 and ppp1)

    All PCs get out to Internet over the conexion of ppp0

    But, I need only one PC of the LAN to get out over the ppp1

    The PC have a fix IP

    I can make the changes with IP command?
    I test the iptables, without result.

    I make the changes with the IP command:

    # echo 202 voip >> /etc/iproute2/rt_tables
    # ip rule add from table fibra
    # ip route add default dev ppp1 table fibra
    # ip route flush cache

    The IP get out to the Internet over ppp1

    But, connecting other PC with OPENVPN to access lan remotely, I can't ping or see the, but I can see all other IP. Only the I can't access.

    Only within the LAN I can ping..

    You understand me?
    José Sanabria, May 13, 2015
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.