0% found this document useful (0 votes)
15 views4 pages

Networkforyou: Email Us: Whatsapp Us: +918143809578

- Generic Routing Encapsulation (GRE) is a tunneling protocol that can encapsulate various network layer protocols inside virtual point-to-point links to transport them over an IP network. - GRE tunnels are configured between two endpoints by specifying a tunnel interface, source and destination IP addresses, and routing protocols to pass traffic through the tunnel. - IPsec can be used with GRE tunnels to encrypt the encapsulated packets for additional security.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views4 pages

Networkforyou: Email Us: Whatsapp Us: +918143809578

- Generic Routing Encapsulation (GRE) is a tunneling protocol that can encapsulate various network layer protocols inside virtual point-to-point links to transport them over an IP network. - GRE tunnels are configured between two endpoints by specifying a tunnel interface, source and destination IP addresses, and routing protocols to pass traffic through the tunnel. - IPsec can be used with GRE tunnels to encrypt the encapsulated packets for additional security.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Networkforyou

Welcome
To
Network for you
GRE

Email us: 1 of 4 WhatsApp Us : +918143809578


[email protected]
Networkforyou

Generic Routing Encapsulation:

• GRE stand for the Generic Routing Encapsulation.


• Generic Routing Encapsulation (GRE) is a tunneling protocol developed by Cisco Systems that can
encapsulate a wide variety of network layer protocols inside virtual point-to-point links or point-to-
multipoint links over an Internet Protocol network.
• GRE is the mechanism that encapsulate one protocol in another protocol.
• Tunneling is a concept where we put ‘packets into packets’ so that they can be transported over
certain networks. We also call this encapsulation.
• Tunneling is used to hide the packet and transported over certain networks. In GRE basically,
tunneling is a concept where to put packets into packets.
• GRE tunnels are used to create point-to-point connections between two networks.
• Generic Routing Encapsulation is a method to tunnel IP packets between two end points.
• Generic Routing Encapsulation supports encapsulating IPv4 broadcast & multicast traffic.
• GRE does not encrypt packets; it can be used along with IPsec to encrypt the packets.

GRE Configuration Steps:

Step 1:

Create tunnel interfaces on R1 and R2 using the interface tunnel number command.

Step 2:

Choose a subnet to be used on tunnel interfaces and assign an IP address from the subnet to both end points.

Step 3:

Configure the source IP address of the tunnel interface using the tunnel source interface or the tunnel source
ip-address command. The source interface or IP address must be the one that connects the router to the
public part of the network.

Step 4:

Configure the destination IP address of the tunnel interface using the tunnel destination ip-address
command. The destination IP address must be the remote one that connects the router to the public part of
the network.

Step 5:

Configure the routers to use the tunnel interfaces to reach remote subnets. Use either static routing or a
dynamic routing protocol to enable on tunnel interfaces to achieve that.

Email us: 2 of 4 WhatsApp Us : +918143809578


[email protected]
Networkforyou

Let do Lab for GRE:

!HQ Basic Configuration: !Branch-Office Basic Configuration:


en en
config t config t
hostname HQ hostname BO
interface FastEthernet0/0 interface FastEthernet0/0
ip address 1.1.1.1 255.0.0.0 ip address 2.2.2.1 255.0.0.0
no shutdown no shutdown
! !
interface Loopback0 interface Loopback0
ip address 192.168.1.1 255.255.255.0 ip address 192.168.2.1 255.255.255.0
!HQ GRE Configuration: !BO GRE Configuration:
config t config t
interface Tunnel1 interface Tunnel1
ip address 172.16.1.1 255.255.255.0 ip address 172.16.1.2 255.255.255.0
tunnel source 1.1.1.1 tunnel source 2.2.2.1
tunnel destination 2.2.2.1 tunnel destination 1.1.1.1
! !
ip route 0.0.0.0 0.0.0.0 1.1.1.2 ip route 0.0.0.0 0.0.0.0 2.2.2.2
router eigrp 1 router eigrp 1
no auto-summary no auto-summary
network 192.168.1.0 network 192.168.2.0
network 172.16.1.0 network 172.16.2.0
!Internet(ISP Router)Basic Configuration: Verification Commands
en HQ#traceroute 192.168.2.1
config t BO#traceroute 192.168.1.1
hostname ISP HQ#ping 192.168.2.1 source loopback 0
interface FastEthernet0/0 BO#ping 192.168.1.1 source loopback 0
ip address 1.1.1.2 255.0.0.0 HQ#show ip eigrp neighbors

Email us: 3 of 4 WhatsApp Us : +918143809578


[email protected]
Networkforyou

no shutdown BO#show ip eigrp neighbors


!
interface FastEthernet1/0
ip address 2.2.2.2 255.0.0.0
no shutdown

IPec_Over_GRE:

!HQ Basic Configuration: !Branch-Office Basic Configuration:


crypto isakmp policy 1 crypto isakmp policy 1
encr 3des encr 3des
hash md5 hash md5
authentication pre-share authentication pre-share
group 2 group 2
lifetime 86400 lifetime 86400
exit exit

crypto isakmp key cisco address 2.2.2.1 crypto isakmp key cisco address 1.1.1.1
crypto ipsec transform-set TS esp-3des esp-md5- crypto ipsec transform-set TS esp-3des esp-md5-
hmac hmac
mode transport mode transport
exit exit
crypto ipsec profile abc crypto ipsec profile abc
set security-association lifetime seconds 86400 set security-association lifetime seconds 86400
set transform-set TS set transform-set TS
exit exit
interface Tunnel 1 interface Tunnel 1
tunnel protection ipsec profile abc tunnel protection ipsec profile abc

Email us: 4 of 4 WhatsApp Us : +918143809578


[email protected]

You might also like