Eth0--[RouterA]--S0{Internet}S0--[RouterB]--Etho
Configure the following on SiteA's Router
RouterA-Eth0: 10.0.1.1/24 & 1.0.1.1/24
RouterB-Eth0:10.0.2.1/24 & 1.0.2.1/24
RouterA-S0: Any IP given by the ISP
RouterB-S0: Any IP given by the ISP
# interface Tunnel0 # ip address 192.168.1.1 255.255.255.0 # tunnel source Ethernet0 # tunnel destination 1.0.2.1 # ip route 10.0.2.0 255.255.255.0 Tunnel0Configure the following on SiteB's Router
# interface Tunnel0 # ip address 192.168.1.2 255.255.255.0 # tunnel source Ethernet0 # tunnel destination 1.0.1.1 # ip route 10.0.1.0 255.255.255.0 Tunnel0For more info see the following links:
- RFC 1701, Generic Routing Encapsulation (GRE)
- RFC 1702, Generic Routing Encapsulation over IPv4 networks
- RFC 2784, Generic Routing Encapsulation (GRE)
- RFC 2890, Key and Sequence Number Extensions to GRE
- Cisco, Configuring GRE Tunnel Over Cable
- Juniper, Configuring GRE Tunnels Dynamically
- Linux Advanced Routing & Traffic Control HOWTO
Same for SiteB, it has Eth0 with IP address 10.0.2.1/24 and secondary IP 1.0.2.1/24 where the users (LAN) are connected to 10.0.1.0/24 subnet.
ReplyDelete==> shouldn't that be:
where the users (LAN) are connected to 10.0.2.0/24 subnet ?
I am happy to visited your site and find such a nice tutorial on the GRE so keep writing like this.
ReplyDelete@WDQ, Thanks
ReplyDelete