lunes, 25 de julio de 2011

Tunel GRE - Cisco - GNU/Linux

En esta ocacion vamos a mostrar la configuracion de un Tunel GRE entre un equipo Cisco y un equipo con GNU/Linux mas presisamente un Debian.
La idea no es profundizar en el tema si no simplemente nostrar la configuración

GNU/Linux:

Cargar el modulo:
modprobe ip_gre

Configuración:
/etc/network/interfaces

auto tun1
iface tun1 inet static
address 10.10.7.2
netmask 255.255.255.252
pre-up iptunnel add tun1 mode gre local 172.16.99.126 remote
172.16.99.86 ttl 255
up ifconfig tun1 multicast
pointopoint 10.10.7.1
post-down iptunnel del tun1

Cisco:

interface Tunnel200
description ## GRE-CISCO-LINUX ##
ip address 10.10.7.1 255.255.255.252
tunnel source FastEthernet0
tunnel destination 172.16.99.126

Diagnostico desde GNU/Linux:

tcpdump proto 47 -vvvvv

ip tunnel ls
ip route ls
ip -s tunnel
iptunnel show
ifconfig -a
netstat -rne