<div dir="ltr"><div><div><div><div><span class=""><span>Hi All,<br><br></span></span></div><span class=""><span>I am using netifd version "PKG_VERSION:=2014-09-08.1". Following is my network config file.<br><br></span></span><br><span class=""><span>
</span></span><p class="MsoNormal"><i><span style="font-size:10pt">config interface loopback</span></i></p>
<p class="MsoNormal"><i><span style="font-size:10pt">
option ifname lo</span></i></p>
<p class="MsoNormal"><i><span style="font-size:10pt">
option proto static</span></i></p>
<p class="MsoNormal"><i><span style="font-size:10pt">
option ipaddr 127.0.0.1</span></i></p>
<p class="MsoNormal"><i><span style="font-size:10pt">
option netmask 255.0.0.0</span></i></p>
<p class="MsoNormal"><i><span style="font-size:10pt"> </span></i></p>
<p class="MsoNormal"><i><span style="font-size:10pt">config interface vlan1</span></i></p>
<p class="MsoNormal"><i><span style="font-size:10pt">
option ifname eth2</span></i></p>
<p class="MsoNormal"><i><span style="font-size:10pt">
option proto static</span></i></p>
<p class="MsoNormal"><i><span style="font-size:10pt">
option ipaddr 192.168.0.1</span></i></p>
<p class="MsoNormal"><i><span style="font-size:10pt">
option netmask 255.255.255.0</span></i></p>
<p class="MsoNormal"><i><span style="font-size:10pt"> </span></i></p>
<p class="MsoNormal"><i><span style="font-size:10pt">config interface wan1</span></i></p>
<p class="MsoNormal"><i><span style="font-size:10pt">
option ifname eth0</span></i></p>
<p class="MsoNormal"><i><span style="font-size:10pt">
option proto static</span></i></p>
<p class="MsoNormal"><i><span style="font-size:10pt">
option ipaddr 172.31.3.8</span></i></p>
<p class="MsoNormal"><i><span style="font-size:10pt">
option netmask 255.255.0.0</span></i></p>
<p class="MsoNormal"><i><span style="font-size:10pt"> </span></i></p>
<p class="MsoNormal"><i><span style="font-size:10pt">config interface gre1</span></i></p>
<p class="MsoNormal"><i><span style="font-size:10pt">
option peeraddr 192.168.11.5</span></i></p>
<p class="MsoNormal"><i><span style="font-size:10pt">
option ipaddr 172.31.3.8</span></i></p>
<p class="MsoNormal"><i><span style="font-size:10pt">
option proto gre</span></i></p>
<p class="MsoNormal"><i><span style="font-size:10pt">
option df true</span></i></p>
<p class="MsoNormal"><i><span style="font-size:10pt">
option zone tunnel</span></i></p>
<p class="MsoNormal"><i><span style="font-size:10pt">
option tunlink wan1</span></i></p>
<p class="MsoNormal"><i><span style="font-size:10pt"> </span></i></p>
<p class="MsoNormal"><i><span style="font-size:10pt">config interface
'gre1_static'</span></i></p>
<p class="MsoNormal"><i><span style="font-size:10pt">
option proto 'static'</span></i></p>
<p class="MsoNormal"><i><span style="font-size:10pt">
option ifname '@gre1'</span></i></p>
<p class="MsoNormal"><i><span style="font-size:10pt">
option ipaddr '10.232.90.101'</span></i></p>
<p class="MsoNormal"><i><span style="font-size:10pt">
option netmask '255.255.255.0'</span></i></p>
<span class=""><span><br><br></span></span></div><span class=""><span>With the above configuration I am unable to create the GRE interface. With further debugging I found out that</span></span>, GRE interface addition is
failing in function “proto_shell_check_dependencies” with check “if
(dep->dep.iface)” being NULL for interface WAN1. Following are the logs.
<br><br>
<p class="MsoNormal"><i><span style="font-size:10pt">Jan 2 16:21:02 RV340
netifd: proto_shell_notify:723 blobmsg_get_u32(tb[NOTIFY_ACTION]):6</span></i></p>
<p class="MsoNormal"><i><span style="font-size:10pt">Jan 2 16:21:02 RV340
netifd: proto_shell_check_dependencies:87 ifname:(null) name:gre1</span></i></p>
<p class="MsoNormal"><i><span style="font-size:10pt">Jan 2 16:21:02 RV340
netifd: proto_shell_check_dependencies:90 interface:wan1</span></i></p>
<p class="MsoNormal"><i><span style="font-size:10pt">Jan 2 16:21:02 RV340
netifd: proto_shell_check_dependencies:94 making false interface:wan1</span></i></p>
<p class="MsoNormal"><i><span style="font-size:10pt">Jan 2 16:21:02 RV340
netifd: Interface 'gre1', available=0</span></i></p>
<p class="MsoNormal"><i><span style="font-size:10pt">Jan 2 16:21:02 RV340
netifd: interface_set_available:369 calling __interface_set_down</span></i></p>
<p class="MsoNormal"><i><span style="font-size:10pt">Jan 2 16:21:02 RV340
netifd: run teardown for interface 'gre1'</span></i></p>
<p class="MsoNormal"><i><span style="font-size:10pt">Jan 2 16:21:02 RV340
netifd: netifd_start_process:138</span></i></p>
<p class="MsoNormal"><i><span style="font-size:10pt">Jan 2 16:21:02 RV340
netifd: netifd_start_process:174 bin:./gre.sh</span></i></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Note: I have added some more logs to find out where it is
getting failed.</p>
<br></div><div>Is my configuration proper? Or any thing am I missing? I am unable find out where I am going wrong. any pointers would be grateful. <br></div><div><br></div>Thanks,<br></div>Sridhar<br></div>