V
V
vlarkanov2018-04-14 21:29:57
linux
vlarkanov, 2018-04-14 21:29:57

Debian 9.4: why doesn't the gre tunnel come up on system startup?

In /etc/networking/interfaces I made the following entry:
auto tun1
iface tun1 inet static
address 192.168.10.1
netmask 255.255.255.0
broadcast 192.168.10.255
up ifconfig tun1 multicast
pre-up modprobe ip_gre
pre-up iptunnel add tun1 mode gre local 212.47.xx remote 212.12.xx ttl 255
pointopoint 192.168.10.2
post-down iptunnel del tun1
After the system boots, there is no tun1 in the list of interfaces. But if you manually do something like


ip tunnel add tun1 mode gre remote 212.12.xx local 212.47.xx ttl 255
ip link set tun1 up
ip addr add 192.168.10.1/24 dev tun1

then the connection appears. How to make it rise by itself at system startup?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
Wexter, 2018-04-14
@Wexter

pre-up iptunnel add tun1 mode gre local 212.47.xx remote 212.12.xx ttl 255
you have a typo

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question