GREs (Generic Routing protocol encapsulation) were submitted to IETF by Cisco, net-smiths, and other companies on September 10, 1994, marked as rfc1701 and rfc1702. Currently, most network devices support the GRE tunnel protocol.GRE specifies how to use one network protocol to encapsulate another network protocol. The GRE tun
Description: A company's PC1 network segment 192.168.1.0/24 to and B Company PC2 Network segment 172.16.2.0/24 establish GRE tunnel communicationConfiguration ideas:1, R1 and R2 to be able to communicate--R1 and R2 respectively configure default routes to the ISP2, the new tunnel port, set the IP, the two sides to the same network segment, configure the source is
Creating an IP tunnel using GRE on Linux
Contents [Hide]· 1 IP tunelling· 2 Starting Configuration· 3 tunnelling ObjectiveO 3.1 Create TunnelsO 3.2 Additional RoutesO 3.3 Delete Tunnels· 4 Network DiagramO 4.1 Debian Configuration· 5 References
IP tunelling We'll do IPv4 tunneling using GRE. GRE
650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/044P51D2-0.png "title =" .png "/>
Basic configurations:
1) The loopback ports of R1 and R2 are 192.168.1.1/24 and 192.168.2.1/24, respectively.
2) the IP addresses at both ends of the link use the vro ID, for example, s0/0: 192.168.12.1 of R1.
Q1: What is tunnel?
Q2: How to Create tunnel in GR
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.Modpro
Loading GRE ModulesModprobe Ip_greCreate a tunnel named officeIP tunnel addoffice mode GRE remote 111.206.164.122 local 111.206.0.88 TTL 255IP Link Set officeupAdd an IP address for tunnelIP Add add10.100.100.1/30 Dev OfficeCreate a routing table with a table name of 136IP route add default via 103.246.132.61 table 136
Creating an IP tunnel using GRE on Linux
Contents [Hide]· 1 IP tunelling· 2 Starting Configuration· 3 tunnelling ObjectiveO 3.1 Create TunnelsO 3.2 Additional RoutesO 3.3 Delete Tunnels· 4 Network DiagramO 4.1 Debian Configuration· 5 References
IP tunellingWe'll do IPv4 tunneling using GRE. GRE
Summary of GPRS APN-GRE Tunnel ConfigurationThis article is a practical application case about the establishment of the APN-GRE tunnel, the configuration is based on the Cisco 12012 router, using TFTP. You can see that similar applications may be encountered in the future! Welcome to the discussion!
Using 990 out of 2
Article Title: Configure ipip and gre tunnels in Linux. Linux is a technology channel of the IT lab in China. Including desktop applications, Linux system management, kernel research, embedded systems, open-source, and other basic categories.
Create a ifcfg-tunl1 file under/etc/sysconfig/network-scripts
The content is as follows:
DEVICE = tunl1
TYPE = IPIP
PEER_OUTER_IPADDR = 219.216.98.110
MY_INNER_IPADDR = 10.0.1.1/24
Configurin
Generic Enapsulation Tunnel is a kind of network tunneling technology, it is called General tunneling technology, it can be used to package the Ethernet, IP, MPLS and other packets in the IP packet to be forwarded in the network, there is a large-scale application.The Linux system natively supports the GRE interface with the following configuration commands:IP tunnel
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
Experiment topological diagram
1. Experiment Description: The router site1 and Site2 respectively simulate the company's two sites, 1.1.1.0/24 and 2.2.2.0/24 simulate the internal network of two sites respectively; Router ISP simulation service router.
A point-to-point GRE tunnel is established between Site1 and site2 through GER technology, and OSPF is run on the G
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.