home Discovery ospf Sources Configs wiki

GRE tunnel VPN


Voor het maken van een vpn gre tunnel

Step 1:   Ping R1 from R2.

a.   Use the show ip interface brief command on R1 to determine the IP address of the S0/0/0 port ( gebruikte port)

b.   From R2 ping the IP S0/0/0 address of R1.

Step 2:   Ping PC1 from PC2.

Attempt to ping the IP address of PC1 from PC2.
We will repeat this test after configuring the GRE tunnel. What were the ping results? Why?

Part 2:   Configure GRE Tunnels

Step 1:   Configure the Tunnel 0 interface of R1.

a.   Enter into the configuration mode for R1 Tunnel 0.

enable
config t
interface tunnel 0


b.   Set the IP address as indicated in the Addressing Table.

RA(config-if)# ip address 10.10.10.1 255.255.255.255

c.   Set the source and destination for the endpoints of Tunnel 0.

RA(config-if)# tunnel source s0/0/0

RA(config-if)# tunnel destination 209.165.122.2

d.   Configure Tunnel 0 to convey IP traffic over GRE.

RA(config-if)# tunnel mode gre ip

e.   The Tunnel 0 interface should already be active. In the event that it is not, treat it like any other interface.

RA(config-if)# no shutdown

Step 2:   Configure the Tunnel 0 interface of R2.

Repeat Steps 1a – e with R2. Be sure to change the IP addressing as appropriate.

Step 3:   Configure a route for private IP traffic.

Establish a route between the 192.168.X.X networks using the 10.10.10.0/30 network as the destination.

RA(config)# ip route 192.168.2.0 255.255.255.0 10.10.10.2

RB(config)# ip route 192.168.1.0 255.255.255.0 10.10.10.1

Part 3:   Verify Router Connectivity

Step 1:   Ping PC1 from PC2.

Attempt to ping the IP address of PC1 from PC2. The ping should be successful.

Step 2:   Trace the path from PC2 to PC2.

Attempt to trace the path from PC1 to PC2. Note the lack of public IP addresses in the output.




Let op!!!!
als iets niet werkt of je snapt iets niet is het de fout van horizon