& Nbsp; 1. first, we need to load the kernel module ip_gre.o. The GRE module in the previous versions of kernal is ip_gre.o, and RHEL5 called ip_gre.komodprobe-l | grepip_gre.ko above this command is to look at this module insmode/lib/modules/2.4.20-8/kernel/net/ipv4/I
1. first, load the kernel module ip_gre.o. The GRE module in the previous versions of kernal is ip_gre.o, and RHEL5 is called ip_gre.ko.
Modprobe-l | grep ip_gre.ko
The above Command is to look at this module
Insmode/lib/modules/2.4.20-8/kernel/net/ipv4/ip_gre.ko
The above command loads the ip_gre.ko module.
Note that you need to load it again after each restart or logout.
2. start the GRE tunnel
Ip tunnel add new tunnel name mode gre remote peer physical IP local physical IP ttl 255
Ip link set new tunnel name up
Ip addr add new tunnel name IP dev new tunnel name
Ip route add peer intranet private network segment/mask dev new tunnel name