PPP and IPIP Encapsulation ?

PPP and IPIP Encapsulation ?

Post by Ulrich Leodolte » Thu, 23 Jul 1998 04:00:00



I got the idea to setup a tunneled network configuartion from
NET-3-HOWTO Section 6.13.  Here is my network setup:

      192.168.1/24                                                  192.168.2/24

          -                                                              -
          |      eth1 =                                     ppp0 =       |
          |  aaa.bbb.ccc.2       aaa.bbb.ccc.1         fff.ggg.hhh.iii   |
          |                                                              |
          |   /-----\               /-----\                    /-----\   |
          |   |     |               |     |         //         |     |   |
          |---|  A  |---------------|  H  |---------//---------|  B  |---|
          |   |     |               |     |         //         |     |   |
          |   \-----/               \-----/                    \-----/   |
          |                                                              |
          -                                                              -

A ... Linux server at work
B ... My personal Linux server (dialup with dynamic IPs).
H ... HUB = Gateway for A (Dont know the internals of this hardware)

Linux router `A' is configured with:

     #
     PATH=/sbin:/usr/sbin
     #
     # Ethernet configuration
     # eth1
     ifconfig eth1 aaa.bbb.ccc.2 netmask 255.255.255.0 broadcast aaa.bbb.ccc.255 up
     route add -net aaa.bbb.ccc.0 netmask 255.255.255.0 eth1
     route add default gw aaa.bbb.ccc.1 metric 1 eth1
     # eth0
     ifconfig eth0 192.168.1.1 netmask 255.255.255.0 up
     route add -net 192.168.1.0 netmask 255.255.255.0 eth0
     # Cause all hosts on the 192.168.1/24 network to be masqueraded.
     ipfwadm -F -p deny
     ipfwadm -F -a m -S 192.168.1.0/24 -D 0.0.0.0/0

     #!/bin/sh
     # This script will be executed (using ssh) after my ppp0 interface at B
     # is configured. The first parameter is the local IP of my ppp0 interface.
     # Tunnel device configuration
     ifconfig tunl0 192.168.1.1 up
     route add -net 192.168.2.0 netmask 255.255.255.0 gw $1 tunl0

Linux router `B' would be configured with:

     #
     PATH=/sbin:/usr/sbin
     #
     # Ethernet configuration
     ifconfig eth0 192.168.2.1 netmask 255.255.255.0 up
     route add -net 192.168.2.0 netmask 255.255.255.0 eth0

     # This is part of my /etc/ppp/ip-up script:
     # Tunnel device configuration
     ifconfig tunl0 192.168.2.1 up
     route add -net 192.168.1.0 netmask 255.255.255.0 gw aaa.bbb.ccc.2 tunl0

I tried to ping from A and B, but it does not work:

A>ping 192.168.2.1

B>ping 192.168.1.1

What is wrong with my idea ???
Ulrich

--
o------------------------------------------------o
 Ulrich Leodolter
 University of Vienna, Institute of Psychology

o------------------------------------------------o

 
 
 

1. ipip Encapsulation...

First, let me say, i've read the net3-howto...

and its all down hill from there...

I've gone throught the configuration, but im not sure what im missing..
I can get up to the point where the routes are added in, thus:

on machine A with external interface 2.2.2.2 and internal 10.1.0.1 (on a
10.1.0.0/16 network) trying to talk to a network (10.10.0.0/16) on
machine B with an external interface 3.3.3.3 and internal 10.10.1.1

A
ifconfig tunl0 10.1.0.1 up
route add -net 10.10.0.0 netmask 255.255.0.0 gw 3.3.3.3 tunl0

B
ifconfig tunl0 10.10.1.1 up
route add -net 10.1.0.0 netmask 255.255.0.0 gw 2.2.2.2 tunl0

what i get from both of them is (when running the route) is:
SIOCADDRT: Network is unreachable

Now, im sure this is something simple, and im just missing something
blindingly obvious, but i've been stuck on it for a few days.. can
someone give me a pointer here??

Thanks in Advance...

Paul
--

Unix Systems Administrator  ---+++---  Access Systems Research Pty. Ltd.

2. NIS+ owners and groups, I am confused.

3. enable email notification in shell

4. Help with ipip encapsulation!!!!!!!!

5. solaris 2.6 / dhcp client setup

6. IP-Tunneling (IPIP-Encapsulation)

7. Trouble returning to login screen using xdm under runlevel 4.

8. Cannot solve IPIP Encapsulation

9. In IPIP Encapsulation where is tunl2 ?

10. ipip encapsulation

11. PPP and TCP/IP encapsulation

12. PPP and IPIP ?