How to enable GRE tunnel under RHEL5 system server

Source: Internet
Author: User
& 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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.