Score:0

setting up gre tunnel on debian with tunnel source and tunnel destination

in flag

I am trying to setup a gre tunnel on debian to receive broadcast packets.

I have the information for an interface

ip address [10.16.2.4 255.255.255.192]
tunnel source [10.16.0.2]
tunnel destination [10.16.254.1]

When I try to create the tunnel with these commands

$ sudo ip tunnel add gre0 mode gre remote 10.16.2.4 local 192.168.1.101 ttl 255
$ sudo ip link set gre0 up

The interface comes up but I do not get any traffic on this tunnel.

How do I properly use ip address, tunnel source and tunnel destination to create the gre tunnel?

drookie avatar
za flag
"I am trying to setup a gre tunnel on debian to receive broadcast packets." - WHAT ?
in flag
I am using the linux ip tunnel command; I am unsure where to use the provided ip address/subnet mask, tunnel source and tunnel destination
drookie avatar
za flag
IP tunnels are always point-to-point or /32 (let's leave the point-to-multipoint tunnels out of the scope for now). So the mask is full 32 bits. As for source/destination - those are host addresses, they don't have and don't need a mask. when you open the site in the browser you don't need to know it's IP address mask - all the same here.
in flag
point to point makes sense, then why would I get an ip address 10.0.5.234 with a mask of 255.255.255.252 wouldn't that be a /30 network?
drookie avatar
za flag
you can use /32 as well. /30 on tunnels will work, but is innacurate.
in flag
If I create a gre tunnel like; ip tunnel add gre0 mode gre remote [10.16.2.4] local [10.1.0.2] ttl 255 ; ip link set gre0 up ; ip addr add 10.1.0.5 dev gre0 and bring the tunnel up. If I tcpdump there's no traffic going over the tunnel. Also if I try to ping the endpoint, there's also no traffic.. So I am not sure how to proceed. What can I do to debug this further?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.