From: Kavitha Ashok Date: Tue, 06 Dec 2005 16:11:59 +0000 Subject: [LARTC] GRE Tunnels Message-Id: <5f2193a30512060811o87784cdi24a8da43e5a514c4@mail.gmail.com> MIME-Version: 1 Content-Type: multipart/mixed; boundary="===============0206768903==" List-Id: To: lartc@vger.kernel.org --===============0206768903== Content-Type: multipart/alternative; boundary="----=_Part_11134_21947611.1133885519251" ------=_Part_11134_21947611.1133885519251 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi , I am trying to set up a GRE tunnel between two linux routers. The routers have a 400 MHz Processor. Linux .2 65.0.0.2 Linux LAN1 -------- Router -------- INTERNET ---- Router ---- LAN2 10.10.10.0 .1 208.1.0.1 (Simulated) .1 .1 192.168.2.0/24 /24 Scripts to Create the tunnel ip tunnel add tun0 mode gre remote 65.0.0.1 local 208.1.0.1 dev eth1 ttl 25= 5 ip addr add 192.18.0.1 dev tun0 ip route add 192.18.0.2 dev tun0 ip route add 192.168.2.0/24 dev tun0 I change the remote and local ip and setup the tunnel ad the other end. The tunnel is up and i am able to send data through the tunnel. But its ver= y slow. Without the tunnels i could send 50Mbps and with the tunnels its arou= d 1-2 Mbps. --- Kernel Config --- -- CONFIG_NETFILTER=3Dy # CONFIG_NETFILTER_DEBUG is not set # CONFIG_FILTER is not set CONFIG_UNIX=3Dy CONFIG_INET=3Dy CONFIG_IP_MULTICAST=3Dy CONFIG_IP_ADVANCED_ROUTER=3Dy CONFIG_IP_MULTIPLE_TABLES=3Dy CONFIG_IP_ROUTE_FWMARK=3Dy CONFIG_IP_ROUTE_NAT=3Dy CONFIG_IP_ROUTE_MULTIPATH=3Dy CONFIG_IP_ROUTE_MULTIPATH_SEQUENTIAL=3Dy CONFIG_IP_ROUTE_TOS=3Dy # CONFIG_IP_ROUTE_VERBOSE is not set # CONFIG_IP_PNP is not set # CONFIG_NET_ARP_LIMIT is not set # CONFIG_NET_IPIP is not set CONFIG_NET_IPGRE=3Dy # CONFIG_NET_IPGRE_BROADCAST is not set # CONFIG_IP_MROUTE is not set # CONFIG_ARPD is not set ------------------------------------------------------ Any ideas to tune up the tunnel performance would be greatly Appreciated. Thanks, Kavitha ------=_Part_11134_21947611.1133885519251 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi ,

I am trying to set up a GRE tunnel between two linux routers. The routers h= ave a 400 MHz Processor.

            &nb= sp;           Linux           .2      65.0.0.2&n= bsp;  Linux
  LAN1 --------  Router -------- INTERNET ---- Router ---- &= nbsp; LAN2
10.10.10.0      = .1  208.1.0.1   (Simulated)   .1       .1          192.168.2.0/24
    /24            =             &nb= sp;            =         


Scripts to Create the tunnel

ip tunnel add tun0 mode gre remote 65.0.0.1= local 208.1.0.1 dev eth1 ttl 255
ip addr add 192.18.0.1 dev tun0
ip route add 192.18.0.2 dev tun0
ip route add 192.168.2.0/24 dev tun0<= br>
I change the remote and local ip and setup the tunnel ad the other end.

The tunnel is up and i am able to send data through the tunnel. But its very slow. Without the tunnels i could send 50Mbps and with the tunnels its aroud 1-2 Mbps.


--- Kernel Config --- --
CONFIG_NETFILTER=3Dy
# CONFIG_NETFILTER_DEBUG is not set
# CONFIG_FILTER is not set
CONFIG_UNIX=3Dy
CONFIG_INET=3Dy
CONFIG_IP_MULTICAST=3Dy
CONFIG_IP_ADVANCED_ROUTER=3Dy
CONFIG_IP_MULTIPLE_TABLES=3Dy
CONFIG_IP_ROUTE_FWMARK=3Dy
CONFIG_IP_ROUTE_NAT=3Dy
CONFIG_IP_ROUTE_MULTIPATH=3Dy
CONFIG_IP_ROUTE_MULTIPATH_SEQUENTIAL=3Dy
CONFIG_IP_ROUTE_TOS=3Dy
# CONFIG_IP_ROUTE_VERBOSE is not set
# CONFIG_IP_PNP is not set
# CONFIG_NET_ARP_LIMIT is not set
# CONFIG_NET_IPIP is not set
CONFIG_NET_IPGRE=3Dy
# CONFIG_NET_IPGRE_BROADCAST is not set
# CONFIG_IP_MROUTE is not set
# CONFIG_ARPD is not set

------------------------------------------------------

Any ideas to tune up the tunnel performance would be greatly Appreciated.
Thanks,
Kavitha ------=_Part_11134_21947611.1133885519251-- --===============0206768903== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc --===============0206768903==--