User Tools

Site Tools


technical:ipsec:iproute2-gre

Description

A tunnel can be use to encapsulate packets in an IP header for transmitting over IP infrastructure. GRE [RFC2784] is a particular tunnelling protocol supported by Cisco routers which can carry different protocols over IPv4.

Iproute2 Commands

These commands will create an GRE tunnel with iproute2.

ip tunnel add <tunnel_name> mode gre local <local_ip_addr> remote <remote_ip_addr> ttl <0-255>
ip link set <tunnel_name> up
ip address add <tunnel_ip>/<subnet_mask> dev <tunnel_name>
technical/ipsec/iproute2-gre.txt · Last modified: 2023/03/27 15:22 by jc