Friday, June 25, 2010

Gre Tunnel

End A Configuration
----------------------------

1. Create Gre Tunnel having any number

Router(config)#interface Tunnel1
Router(config-if)#description Gre Tunnel to Remote Location

2. Need to give IP Address to Tunnel
Router(config-if)#ip address 10.10.0.1 255.255.255.252

3. Need to Give Public Source address to tunnel 1 from where it would initiate
Router(config-if)#tunnel source Vlan1
where x.x.x.x is the IP address of Vlan 1 and is Source/Wan IP of Self Router

4. Need to give Public destination address where it terminate
Router(config-if)# tunnel destination y.y.y.y
where y.y.y.y is the destination public IP Address
!

5. Following is the Configuration of LAN Interface Port.

Router(config)# interface FastEthernet0
Router(config-if)#description Local Lan IP
Router(config-if)# ip address 192.168.1.1 255.255.255.0
Router(config-if)# ip nat inside

6.Following is the Configuration of WAN Interface Port.

Router(config)# interface Vlan1
Router(config-if)# description Cisco IP
Router(config-if)# ip address x.x.x.x 255.255.255.252
Router(config-if)# ip nat outside

7. Default Route Pointing to Internet using Pathway.

ip route 0.0.0.0 0.0.0.0 Pathway

8. Remote LAN Route pointing to other end ip of gre tunnel 1

ip route 192.168.2.0 255.255.255.0 10.10.0.2





End B Configuration
---------------------------

1. Create Gre Tunnel having any number

Router(config)#interface Tunnel1
Router(config-if)#description Gre Tunnel to Remote Location

2. Need to give IP Address to Tunnel
Router(config-if)# ip address 10.10.0.2 255.255.255.252

3. Need to Give Public Source address from where it would initiate
Router(config-if)# tunnel source Vlan1
where y.y.y.y is the IP address of Vlan 1 and is Source/Wan IP of Self Router

4. Need to give Public destination address where it terminate
Router(config-if)# tunnel destination x.x.x.x
where x.x.x.x is the destination public IP Address

5. Following is the Configuration of LAN Interface Port.

Router(config)# interface FastEthernet0
Router(config-if)# description Local LAN_IP
Router(config-if)# ip address 192.168.2.1 255.255.255.0
Router(config-if)# ip nat inside

6. Following is the Configuration of WAN Interface Port.

Router(config)# interface Vlan1
Router(config-if)# description Cisco IP
Router(config-if)# ip address y.y.y.y 255.255.255.252
Router(config-if)# ip nat outside

7. Default Route Pointing to Internet using Pathway.

ip route 0.0.0.0 0.0.0.0 Pathway

8. Remote LAN Route pointing to other end ip of gre tunnel 1

ip route 192.168.1.0 255.255.255.0 10.10.10.1

No comments: