06-03-2020 03:40 AM
Hi everybody,
I have a question about how redirect traffic throught GRE tunnel. I have a topology working with EIGRP and some devices have GRE tunnel with a central router. I would like that a kind of traffic flow through GRE tunnel and the rest of traffic flow normally with EIGRP. How can I add traffic to GRE tunnel?
Thanks for your help.
Solved! Go to Solution.
06-03-2020 03:52 AM
you need to filter the traffic and set the next-hop address for it
follow the link to read more, or search on keyword policy based routing
06-03-2020 03:55 AM
Hello,
policy routing is probably your best choice. Define the source and destination in an access list, configure a route map that matches that access list, and set the interface to the GRE tunnel you require that traffic to flow through. Here is an example:
interface GigabitEthernet0/0
description LAN Interface
ip address 192.168.1.1 255.255.255.0
ip policy route-map TO_TUNNEL
!
access-list 101 permit ip 192.168.1.0 0.0.0.255 any
!
route-map TO_TUNNEL permit 10
match ip address 101
set interface Tunnel 1
!
route-map TO_TUNNEL permit 20
06-03-2020 03:52 AM
- Check if this document can help you :
https://community.cisco.com/t5/networking-documents/how-to-configure-a-gre-tunnel/ta-p/3131970
M.
06-03-2020 03:52 AM
you need to filter the traffic and set the next-hop address for it
follow the link to read more, or search on keyword policy based routing
06-03-2020 03:55 AM
Hello,
policy routing is probably your best choice. Define the source and destination in an access list, configure a route map that matches that access list, and set the interface to the GRE tunnel you require that traffic to flow through. Here is an example:
interface GigabitEthernet0/0
description LAN Interface
ip address 192.168.1.1 255.255.255.0
ip policy route-map TO_TUNNEL
!
access-list 101 permit ip 192.168.1.0 0.0.0.255 any
!
route-map TO_TUNNEL permit 10
match ip address 101
set interface Tunnel 1
!
route-map TO_TUNNEL permit 20
06-03-2020 03:56 AM
Hi there,
You have two options. Either configure static routes to direct traffic destined to remote site subnets via the GRE tunnel remote end IP address. Or preferably create an EIGRP adjacency via the GRE tunnel.
Beware of creating routing loops, so make sure that you configure a static route on the local router directing packets destined for the GRE remote endpoint via your local gateway.
cheers,
Seb.
06-03-2020 07:59 AM
If we knew more about the environment of the original post we might be able to give better advice. The original post says "a kind of traffic flow through GRE tunnel". But what kind of traffic is that? If it were traffic to certain destination addresses then static routes for those destinations would be the appropriate solution. But if that traffic were to be TFTP, or FTP, or SSH, or some protocol specific traffic then Policy Based Routing would be the appropriate solution.
06-03-2020 11:35 PM
06-04-2020 11:48 AM
You have several options for getting traffic to go through the GRE tunnels:
1) static routes pointing to next hop through the tunnel.
2) dynamic routing protocol running over the tunnel. Perhaps OSPF on the tunnel and EIGRP for the rest of the network. Or you could run a second EIGRP process over the tunnels, which might be especially interesting if this is activity to understand how the network works.
3) Policy Based Routing. To separate traffic based on source address or protocol port or something like that.
All 3 could work. The choice of which would be best depends on the type of traffic that you want to use the tunnels. Or if this is an exercise to understand how the network works, it might be interesting to implement all 3 (one at a time).
06-03-2020 10:33 AM
06-03-2020 11:37 PM
06-04-2020 07:21 AM
06-03-2020 11:30 PM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide