Project

General

Profile

Actions

Bug #1381

closed

GRE tunnel interface IP address updated after reboot only

Added by Zeev Zalessky about 13 years ago. Updated almost 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Interfaces
Target version:
Start date:
03/23/2011
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.0
Affected Architecture:
All

Description

After create of GRE tunnel and assign it to newly created interface with correct IP, IP is assigned only after reboot.


Files

GRE_Edit.png (104 KB) GRE_Edit.png GRE Edit screenshot Zeev Zalessky, 03/23/2011 04:30 PM
Interface_edit.png (108 KB) Interface_edit.png Interface Edit screenshot Zeev Zalessky, 03/23/2011 04:30 PM
config.xml (39 KB) config.xml Configuration file Zeev Zalessky, 03/23/2011 04:30 PM
step1.png (75.8 KB) step1.png Zeev Zalessky, 04/02/2011 01:28 PM
Step2.png (63.5 KB) Step2.png Zeev Zalessky, 04/02/2011 01:28 PM
Step4.png (10.7 KB) Step4.png Zeev Zalessky, 04/02/2011 01:28 PM
Step3.png (72.9 KB) Step3.png Zeev Zalessky, 04/02/2011 01:28 PM
Actions #1

Updated by Ermal Luçi about 13 years ago

  • Priority changed from High to Normal

I am sorry but you ahve to be more specific than that.
Provide screenshot or your config.xml and a better description of this.
Also any relevant system log should be here.

Actions #2

Updated by Zeev Zalessky about 13 years ago

Attached screenshots and config.xml no related log entries

Actions #3

Updated by Ermal Luçi about 13 years ago

Well there is some validation missing in the GUI it seems.
You cannot create the gre and after create the interface for the tunnel.

If you switch the order of the interfaces in config.xml by having the interface first and the gre it will work as expected.

I think there is no proper way to enforce the checking in the GUI so might be not fixed for 2.0.

Actions #4

Updated by Ermal Luçi about 13 years ago

  • Status changed from New to Feedback
Actions #5

Updated by Zeev Zalessky about 13 years ago

So, first i create Interface, then i create GRE Tunnel and after that i change the interface assignment from some thing to GRE tunnel?

Actions #6

Updated by Ermal Luçi about 13 years ago

you do:
- create interface
- create GRE
- assign GRE as an interface but not replacing its parent inteface assignment.

Actions #7

Updated by Zeev Zalessky about 13 years ago

I did as you explained:
1. Create new Interface (OPT7) assigned to non assigned interface (em1)
2. configure static IP on OPT7
3. Create GRE tunnel (GRE2) with all required information including local IP equal to OPT7 IP
4. Assign GRE tunnel to OPT7 in interface -> (assign)

IP removed from OPT7
system log:
routed[39548]: write(rt_sock) RTM_ADD 10.10.1.12 (mask 0xfffffffc)-->10.10.1.14 metric=0 flags=0: File exists
Mar 27 10:37:18 routed[39548]: write(rt_sock) RTM_ADD 10.10.1.12 (mask 0xfffffffc)-->10.10.1.14 metric=0 flags=0: File exists
Mar 27 10:36:49 check_reload_status: syncing firewall
Mar 27 10:36:49 php: /interfaces_gre_edit.php: The command '/sbin/route add 10.10.1.13/30 10.10.1.14' returned exit code '1', the output was 'route: writing to routing socket: File exists add net 10.10.1.13: gateway 10.10.1.14: route already in table'
Mar 27 10:36:34 check_reload_status: syncing firewall
Mar 27 10:36:33 php: /interfaces_gre_edit.php: The command '/sbin/route add 10.10.1.13/30 10.10.1.14' returned exit code '1', the output was 'route: writing to routing socket: File exists add net 10.10.1.13: gateway 10.10.1.14: route already in table'
Mar 27 10:36:33 routed[39548]: write(rt_sock) RTM_ADD 10.10.1.13 (mask 0xffffffff)-->10.10.1.14 metric=0 flags=0: File exists
Mar 27 10:36:33 routed[39548]: write(rt_sock) RTM_ADD 10.10.1.13 (mask 0xffffffff)-->10.10.1.14 metric=0 flags=0: File exists

ifconfig output:
gre2: flags=b051<UP,POINTOPOINT,RUNNING,LINK0,LINK1,MULTICAST> metric 0 mtu 1476
tunnel inet 62.90.152.252 --> 74.118.132.1
inet6 fe80::215:17ff:fe7c:aad5%gre2 prefixlen 64 scopeid 0x1e
nd6 options=3<PERFORMNUD,ACCEPT_RTADV>

Actions #8

Updated by Ermal Luçi about 13 years ago

No you do not assign GRE as OPT7 but you assign GRE as OPT8 or more :)

Actions #9

Updated by Zeev Zalessky about 13 years ago

after full configuration of pfSense including all wan (4 interfaces)and all lan interfaces (3 interfaces) i started to configure GRE tunnel.
1. i configured GRE interface with one of WAN interfaces as parent (step1.png)
2. created new interface OPT7 and assigned GRE interface to it (step2.png)
3. configured newly created interface (step3.png)
4. interface without IP on dashboard (step4.png)

please tell me what is incorrect in my steps. after restart interface is up and has IP

following is system log

Apr 2 20:15:46 check_reload_status: syncing firewall
Apr 2 20:15:38 check_reload_status: syncing firewall
Apr 2 20:13:40 apinger: /usr/local/bin/rrdtool respawning too fast, waiting 300s.
Apr 2 20:13:40 apinger: Error while feeding rrdtool: Broken pipe
Apr 2 20:12:41 php: /interfaces.php: Creating rrd update script
Apr 2 20:12:40 apinger: Starting Alarm Pinger, apinger(3316)
Apr 2 20:12:40 check_reload_status: reloading filter
Apr 2 20:12:39 apinger: Exiting on signal 15.
Apr 2 20:12:39 php: /interfaces.php: Removing static route for monitor 95.35.33.254 and adding a new route through 95.35.40.25
Apr 2 20:12:39 php: /interfaces.php: Removing static route for monitor 212.199.71.221 and adding a new route through 212.199.60.89
Apr 2 20:12:37 check_reload_status: updating dyndns opt7
Apr 2 20:12:37 dhcpd: For info, please visit https://www.isc.org/software/dhcp/
Apr 2 20:12:37 dhcpd: All rights reserved.
Apr 2 20:12:37 dhcpd: Copyright 2004-2010 Internet Systems Consortium.
Apr 2 20:12:37 dhcpd: Internet Systems Consortium DHCP Server 4.1.1-P1
Apr 2 20:12:36 dnsmasq[57425]: read /etc/hosts - 2 addresses
Apr 2 20:12:36 dnsmasq[57425]: using nameserver 212.143.212.143#53
Apr 2 20:12:36 dnsmasq[57425]: using nameserver 194.90.1.5#53
Apr 2 20:12:36 dnsmasq[57425]: reading /etc/resolv.conf
Apr 2 20:12:36 dnsmasq[57425]: compile time options: IPv6 GNU-getopt no-DBus I18N DHCP TFTP
Apr 2 20:12:36 dnsmasq[57425]: started, version 2.55 cachesize 10000
Apr 2 20:12:35 dnsmasq[47429]: exiting on receipt of SIGTERM
Apr 2 20:12:33 routed[52348]: write(rt_sock) RTM_ADD 10.10.1.6/32 -->10.10.1.9 metric=16 flags=0x2: Network is unreachable
Apr 2 20:12:33 routed[52348]: write(rt_sock) RTM_ADD 10.10.1.6/32 -->10.10.1.9 metric=16 flags=0x2: Network is unreachable
Apr 2 20:12:33 routed[52348]: write(rt_sock) RTM_ADD 10.20.1.0/30 -->10.10.1.9 metric=16 flags=0x2: Network is unreachable
Apr 2 20:12:33 routed[52348]: write(rt_sock) RTM_ADD 10.20.1.0/30 -->10.10.1.9 metric=16 flags=0x2: Network is unreachable
Apr 2 20:12:33 routed[52348]: write(rt_sock) RTM_ADD 10.10.1.5/32 -->10.10.1.9 metric=16 flags=0x2: Network is unreachable
Apr 2 20:12:33 routed[52348]: write(rt_sock) RTM_ADD 10.10.1.5/32 -->10.10.1.9 metric=16 flags=0x2: Network is unreachable
Apr 2 20:12:33 routed[52348]: write(rt_sock) RTM_ADD 192.168.3.1/32 -->10.10.1.9 metric=16 flags=0x2: Network is unreachable
Apr 2 20:12:33 routed[52348]: write(rt_sock) RTM_ADD 192.168.3.1/32 -->10.10.1.9 metric=16 flags=0x2: Network is unreachable
Apr 2 20:12:33 routed[52348]: write(rt_sock) RTM_ADD 192.168.2.0 -->10.10.1.9 metric=16 flags=0x2: Network is unreachable
Apr 2 20:12:33 routed[52348]: write(rt_sock) RTM_ADD 192.168.2.0 -->10.10.1.9 metric=16 flags=0x2: Network is unreachable
Apr 2 20:12:33 routed[52348]: write(rt_sock) RTM_ADD 69.0.0.0 -->10.10.1.9 metric=16 flags=0x2: Network is unreachable
Apr 2 20:12:33 routed[52348]: write(rt_sock) RTM_ADD 69.0.0.0 -->10.10.1.9 metric=16 flags=0x2: Network is unreachable
Apr 2 20:12:33 routed[52348]: write(rt_sock) RTM_ADD 192.168.3.254/32-->10.10.1.9 metric=16 flags=0x2: Network is unreachable
Apr 2 20:12:33 routed[52348]: write(rt_sock) RTM_ADD 192.168.3.254/32-->10.10.1.9 metric=16 flags=0x2: Network is unreachable
Apr 2 20:12:26 check_reload_status: syncing firewall
Apr 2 20:09:23 routed[52348]: 10.10.1.9/30 --> 10.10.1.10 disappeared from kernel
Apr 2 20:09:23 routed[52348]: 10.10.1.9/30 --> 10.10.1.10 disappeared from kernel
Apr 2 20:09:23 routed[52348]: static route 10.10.1.10/32 --> 10.10.1.10 impossibly lacks ifp
Apr 2 20:09:23 routed[52348]: static route 10.10.1.10/32 --> 10.10.1.10 impossibly lacks ifp
Apr 2 20:07:47 apinger: Error while feeding rrdtool: Broken pipe
Apr 2 20:07:22 php: /interfaces_assign.php: Creating rrd update script
Apr 2 20:07:22 check_reload_status: syncing firewall
Apr 2 20:07:22 check_reload_status: updating dyndns opt7
Apr 2 20:07:21 dhcpd: For info, please visit https://www.isc.org/software/dhcp/
Apr 2 20:07:21 dhcpd: All rights reserved.
Apr 2 20:07:21 dhcpd: Copyright 2004-2010 Internet Systems Consortium.
Apr 2 20:07:21 dhcpd: Internet Systems Consortium DHCP Server 4.1.1-P1
Apr 2 20:07:20 dnsmasq[47429]: read /etc/hosts - 2 addresses
Apr 2 20:07:20 dnsmasq[47429]: using nameserver 212.143.212.143#53
Apr 2 20:07:20 dnsmasq[47429]: using nameserver 194.90.1.5#53
Apr 2 20:07:20 dnsmasq[47429]: reading /etc/resolv.conf
Apr 2 20:07:20 dnsmasq[47429]: compile time options: IPv6 GNU-getopt no-DBus I18N DHCP TFTP
Apr 2 20:07:20 dnsmasq[47429]: started, version 2.55 cachesize 10000
Apr 2 20:07:19 dnsmasq[8441]: exiting on receipt of SIGTERM
Apr 2 20:07:17 routed[52348]: write(rt_sock) RTM_ADD 10.10.1.10/32 -->127.0.0.1 metric=0 flags=0: File exists
Apr 2 20:07:17 routed[52348]: write(rt_sock) RTM_ADD 10.10.1.10/32 -->127.0.0.1 metric=0 flags=0: File exists
Apr 2 20:07:17 routed[52348]: write(rt_sock) RTM_ADD 10.10.1.6/32 -->10.10.1.9 metric=16 flags=0x2: Network is unreachable
Apr 2 20:07:17 routed[52348]: write(rt_sock) RTM_ADD 10.10.1.6/32 -->10.10.1.9 metric=16 flags=0x2: Network is unreachable
Apr 2 20:07:17 routed[52348]: write(rt_sock) RTM_ADD 10.20.1.0/30 -->10.10.1.9 metric=16 flags=0x2: Network is unreachable
Apr 2 20:07:17 routed[52348]: write(rt_sock) RTM_ADD 10.20.1.0/30 -->10.10.1.9 metric=16 flags=0x2: Network is unreachable
Apr 2 20:07:17 routed[52348]: write(rt_sock) RTM_ADD 10.10.1.5/32 -->10.10.1.9 metric=16 flags=0x2: Network is unreachable
Apr 2 20:07:17 routed[52348]: write(rt_sock) RTM_ADD 10.10.1.5/32 -->10.10.1.9 metric=16 flags=0x2: Network is unreachable
Apr 2 20:07:17 routed[52348]: write(rt_sock) RTM_ADD 192.168.3.1/32 -->10.10.1.9 metric=16 flags=0x2: Network is unreachable
Apr 2 20:07:17 routed[52348]: write(rt_sock) RTM_ADD 192.168.3.1/32 -->10.10.1.9 metric=16 flags=0x2: Network is unreachable
Apr 2 20:07:17 routed[52348]: write(rt_sock) RTM_ADD 192.168.2.0 -->10.10.1.9 metric=16 flags=0x2: Network is unreachable
Apr 2 20:07:17 routed[52348]: write(rt_sock) RTM_ADD 192.168.2.0 -->10.10.1.9 metric=16 flags=0x2: Network is unreachable
Apr 2 20:07:17 routed[52348]: write(rt_sock) RTM_ADD 69.0.0.0 -->10.10.1.9 metric=16 flags=0x2: Network is unreachable
Apr 2 20:07:17 routed[52348]: write(rt_sock) RTM_ADD 69.0.0.0 -->10.10.1.9 metric=16 flags=0x2: Network is unreachable
Apr 2 20:07:17 routed[52348]: write(rt_sock) RTM_ADD 192.168.3.254/32-->10.10.1.9 metric=16 flags=0x2: Network is unreachable
Apr 2 20:07:17 routed[52348]: write(rt_sock) RTM_ADD 192.168.3.254/32-->10.10.1.9 metric=16 flags=0x2: Network is unreachable
Apr 2 20:06:55 routed[52348]: write(rt_sock) RTM_ADD 10.10.1.10/32 -->127.0.0.1 metric=0 flags=0: File exists
Apr 2 20:06:55 routed[52348]: write(rt_sock) RTM_ADD 10.10.1.10/32 -->127.0.0.1 metric=0 flags=0: File exists
Apr 2 20:06:55 check_reload_status: syncing firewall
Apr 2 20:06:55 routed[52348]: static route 10.10.1.9/30 --> 10.10.1.10 impossibly lacks ifp
Apr 2 20:06:55 routed[52348]: static route 10.10.1.9/30 --> 10.10.1.10 impossibly lacks ifp
Apr 2 20:06:55 routed[52348]: write(rt_sock) RTM_ADD 10.10.1.6/32 -->10.10.1.9 metric=16 flags=0x2: Network is unreachable
Apr 2 20:06:55 routed[52348]: write(rt_sock) RTM_ADD 10.10.1.6/32 -->10.10.1.9 metric=16 flags=0x2: Network is unreachable
Apr 2 20:06:55 routed[52348]: write(rt_sock) RTM_ADD 10.20.1.0/30 -->10.10.1.9 metric=16 flags=0x2: Network is unreachable
Apr 2 20:06:55 routed[52348]: write(rt_sock) RTM_ADD 10.20.1.0/30 -->10.10.1.9 metric=16 flags=0x2: Network is unreachable
Apr 2 20:06:55 routed[52348]: write(rt_sock) RTM_ADD 10.10.1.5/32 -->10.10.1.9 metric=16 flags=0x2: Network is unreachable
Apr 2 20:06:55 routed[52348]: write(rt_sock) RTM_ADD 10.10.1.5/32 -->10.10.1.9 metric=16 flags=0x2: Network is unreachable
Apr 2 20:06:55 routed[52348]: write(rt_sock) RTM_ADD 192.168.3.1/32 -->10.10.1.9 metric=16 flags=0x2: Network is unreachable
Apr 2 20:06:55 routed[52348]: write(rt_sock) RTM_ADD 192.168.3.1/32 -->10.10.1.9 metric=16 flags=0x2: Network is unreachable
Apr 2 20:06:55 routed[52348]: write(rt_sock) RTM_ADD 192.168.2.0 -->10.10.1.9 metric=16 flags=0x2: Network is unreachable
Apr 2 20:06:55 routed[52348]: write(rt_sock) RTM_ADD 192.168.2.0 -->10.10.1.9 metric=16 flags=0x2: Network is unreachable
Apr 2 20:06:55 routed[52348]: write(rt_sock) RTM_ADD 69.0.0.0 -->10.10.1.9 metric=16 flags=0x2: Network is unreachable
Apr 2 20:06:55 routed[52348]: write(rt_sock) RTM_ADD 69.0.0.0 -->10.10.1.9 metric=16 flags=0x2: Network is unreachable
Apr 2 20:06:55 routed[52348]: write(rt_sock) RTM_ADD 192.168.3.254/32-->10.10.1.9 metric=16 flags=0x2: Network is unreachable
Apr 2 20:06:55 routed[52348]: write(rt_sock) RTM_ADD 192.168.3.254/32-->10.10.1.9 metric=16 flags=0x2: Network is unreachable
Apr 2 20:06:28 check_reload_status: syncing firewall
Apr 2 20:05:50 check_reload_status: syncing firewall
Apr 2 20:05:50 routed[52348]: static route 10.10.1.9/30 --> 10.10.1.10 impossibly lacks ifp
Apr 2 20:05:50 routed[52348]: static route 10.10.1.9/30 --> 10.10.1.10 impossibly lacks ifp
Apr 2 20:05:50 routed[52348]: write(rt_sock) RTM_ADD 10.10.1.10/32 -->127.0.0.1 metric=0 flags=0: File exists
Apr 2 20:05:50 routed[52348]: write(rt_sock) RTM_ADD 10.10.1.10/32 -->127.0.0.1 metric=0 flags=0: File exists
Apr 2 20:05:50 routed[52348]: write(rt_sock) RTM_ADD 10.10.1.9/32 -->10.10.1.10 metric=0 flags=0: File exists
Apr 2 20:05:50 routed[52348]: write(rt_sock) RTM_ADD 10.10.1.9/32 -->10.10.1.10 metric=0 flags=0: File exists

Actions #10

Updated by Ermal Luçi about 13 years ago

On step3 you just enable the interface and leave it as type none.
That will make your GRE work.

Actions #11

Updated by Zeev Zalessky about 13 years ago

It's work. please update documentation

Actions #12

Updated by Zeev Zalessky about 13 years ago

you can close it. it's work as explained in your update

Actions #13

Updated by Ermal Luçi almost 13 years ago

  • Status changed from Feedback to Closed

Its an OP issue.

Actions

Also available in: Atom PDF