<div dir="ltr">Hi Tomi,<div>I think in mr6.3.1 /etc/network/interfaces are still not a part of ngcpcfg framework. So you have to add route manually in post_up section. But keep in mind that in mr6.4.1 ngcpcfg framework will generate interfaces from network.yml</div><div><br></div><div>BR,</div><div>Volodymyr</div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Oct 3, 2018 at 7:52 PM Tomi Hakkarainen <<a href="mailto:tomishakkarainen@gmail.com">tomishakkarainen@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space">Hi Daniel,<div><br></div><div>Thank you for the correct syntax highly appreciated.<br><div><br></div><div>But I’m still not able to get this working.</div><div><br></div><span>I was adding new interface to be used but not able to get it enabled with adding configuration to network.yml and running ngcpcfg apply</span></div><span><br></span><span>also tried to run separatedly ngcpcfg build ,ngcpcfg commit and systemctl daemon-reload without luck.</span><div><br></div><div>There is no errors outputted etc… and the configuration on /etc/network/interfaces is also intact<br><div><span><br></span></div><div><span>what could I be missing here ?</span></div><div><span><br></span></div><div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)"><span style="font-variant-ligatures:no-common-ligatures">+---------------------------+---------------------------------------------- 2018-10-03 19:43:32 -+</span></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)"><span style="font-variant-ligatures:no-common-ligatures">| xxx.</span><span style="font-variant-ligatures:no-common-ligatures;color:#34bc26">xxx.xxx.xx            </span><span style="font-variant-ligatures:no-common-ligatures">|</span><span style="font-variant-ligatures:no-common-ligatures;color:#cccccc"> NGCP:</span><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:#5230e1">CE mr6.3.1         </span><span style="font-variant-ligatures:no-common-ligatures">                                          |</span></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)"><span style="font-variant-ligatures:no-common-ligatures">| </span><span style="font-variant-ligatures:no-common-ligatures;color:#34bc26">spce                     </span><span style="font-variant-ligatures:no-common-ligatures"> |</span><span style="font-variant-ligatures:no-common-ligatures;color:#cccccc"> NGCP:</span><span style="font-variant-ligatures:no-common-ligatures"> subscribers:2 locations:0 calls:0                            |</span></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)"><span style="font-variant-ligatures:no-common-ligatures">| </span><span style="font-variant-ligatures:no-common-ligatures;color:#34bc26">spce.                    </span><span style="font-variant-ligatures:no-common-ligatures"> |</span><span style="font-variant-ligatures:no-common-ligatures;color:#cccccc">   OS:</span><span style="font-variant-ligatures:no-common-ligatures"> stretch (9.5) 4.9.0-8-amd64 SMP (ext4)                       |</span></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)"><span style="font-variant-ligatures:no-common-ligatures">| </span><span style="font-variant-ligatures:no-common-ligatures;color:#34bc26">(PRODUCTION - ACTIVE)    </span><span style="font-variant-ligatures:no-common-ligatures"> |</span><span style="font-variant-ligatures:no-common-ligatures;color:#cccccc">  CPU:</span><span style="font-variant-ligatures:no-common-ligatures"> 8 = 2 x Intel(R) Xeon(R) CPU E5-2620 v3 @ 2.40GHz (HT)       |</span></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)"><span style="font-variant-ligatures:no-common-ligatures">|                           |</span><span style="font-variant-ligatures:no-common-ligatures;color:#cccccc"> BIOS:</span><span style="font-variant-ligatures:no-common-ligatures"> 6.00 (04/14/2014) by Phoenix Technologies...                 |</span></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)"><span style="font-variant-ligatures:no-common-ligatures">|                           |</span><span style="font-variant-ligatures:no-common-ligatures;color:#cccccc">  RAM:</span><span style="font-variant-ligatures:no-common-ligatures"> 7.8G (used 25%/cache 62%) kamailio[9.3%] perl-fcgi[5.2%]     |</span></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)"><span style="font-variant-ligatures:no-common-ligatures">|                           |</span><span style="font-variant-ligatures:no-common-ligatures;color:#cccccc">   LA:</span><span style="font-variant-ligatures:no-common-ligatures"> system load OK: 0.11 0.24 0.26                               |</span></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)"><span style="font-variant-ligatures:no-common-ligatures">|                           |</span><span style="font-variant-ligatures:no-common-ligatures;color:#cccccc">  HDD:</span><span style="font-variant-ligatures:no-common-ligatures"> space used /[8%]                                             |</span></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)"><span style="font-variant-ligatures:no-common-ligatures">|                           |</span><span style="font-variant-ligatures:no-common-ligatures;color:#cccccc">  HDD:</span><span style="font-variant-ligatures:no-common-ligatures"> inodes in use /[4%]                                          |</span></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)"><span style="font-variant-ligatures:no-common-ligatures">|                           |</span><span style="font-variant-ligatures:no-common-ligatures;color:#cccccc">  CFG:</span><span style="font-variant-ligatures:no-common-ligatures"> [8f1e7a0] commiting uncommented changes  (9 minutes ago)     |</span></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(175,173,36);background-color:rgba(0,0,0,0.901961)"><span style="font-variant-ligatures:no-common-ligatures;color:#28fe14">|                           |</span><span style="font-variant-ligatures:no-common-ligatures;color:#cccccc"> NGCP:</span><span style="font-variant-ligatures:no-common-ligatures;color:#28fe14"> </span><span style="font-variant-ligatures:no-common-ligatures">active node has no registrations, strange for production    </span><span style="font-variant-ligatures:no-common-ligatures;color:#28fe14"> |</span></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(175,173,36);background-color:rgba(0,0,0,0.901961)"><span style="font-variant-ligatures:no-common-ligatures;color:#28fe14">|                           |</span><span style="font-variant-ligatures:no-common-ligatures;color:#cccccc"> NGCP:</span><span style="font-variant-ligatures:no-common-ligatures;color:#28fe14"> </span><span style="font-variant-ligatures:no-common-ligatures">active node has no calls, strange for production            </span><span style="font-variant-ligatures:no-common-ligatures;color:#28fe14"> |</span></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)"><span style="font-variant-ligatures:no-common-ligatures">|                           |</span><span style="font-variant-ligatures:no-common-ligatures;color:#cccccc"> MODs:</span><span style="font-variant-ligatures:no-common-ligatures"> License OFF,                                                 |</span></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:"Andale Mono";color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)"><span style="font-variant-ligatures:no-common-ligatures">+-------------------7 sec---+-----  ---------------------------------------6.3.1.1+0~mr6.3.1.1---+</span></div><span><br>Tomi<br><br>On 3 Oct 2018, at 11.44, Daniel Grotti <<a href="mailto:dgrotti@sipwise.com" target="_blank">dgrotti@sipwise.com</a>> wrote:<br><br>Hi,<br>syntax example:<br><br>post_up:<br>      - route add -net <a href="http://1.2.3.0/21" target="_blank">1.2.3.0/21</a> gw 192.168.1.1 dev vlan300<br><br><br>Cheers,<br><br>-- <br>Daniel Grotti<br>Head of Customer Support<br>Sipwise GmbH, Campus 21/Europaring F15<br>AT-2345 Brunn am Gebirge<br><br>Office: +43(0)130120332<br><a href="mailto:dgrotti@sipwise.com" target="_blank">Email: dgrotti@sipwise.com</a><br>Website: <a href="https://www.sipwise.com" target="_blank">https://www.sipwise.com</a><br><br>On 10/02/2018 11:55 PM, Tomi Hakkarainen wrote:<br><blockquote type="cite">Hi U all,<br><br>What would be the correct format to make a static ip route on CE network interface on /etc/ngcp-config/network.yml ?<br><br>I think I should use:<br><span style="white-space:pre-wrap" class="m_1184194448130737689Apple-tab-span">    </span>• post_up: routes can be defined here (interface-based routing)<br>but cannot figure how to add destination ip,  mask and  gw<br><br>something like this ?<br><br>etc1:<br>post-up:<br>  - to: <a href="http://192.168.1.1/0" target="_blank">192.168.1.1/0</a><br>    via: 10.0.0.1<br><br><br><br><br>Regards Tomi<br><br>_______________________________________________<br>Spce-user mailing list<br><a href="mailto:Spce-user@lists.sipwise.com" target="_blank">Spce-user@lists.sipwise.com</a><br><a href="https://lists.sipwise.com/listinfo/spce-user" target="_blank">https://lists.sipwise.com/listinfo/spce-user</a><br></blockquote><br>_______________________________________________<br>Spce-user mailing list<br><a href="mailto:Spce-user@lists.sipwise.com" target="_blank">Spce-user@lists.sipwise.com</a><br><a href="https://lists.sipwise.com/listinfo/spce-user" target="_blank">https://lists.sipwise.com/listinfo/spce-user</a><br><br></span></div></div></div>_______________________________________________<br>
Spce-user mailing list<br>
<a href="mailto:Spce-user@lists.sipwise.com" target="_blank">Spce-user@lists.sipwise.com</a><br>
<a href="https://lists.sipwise.com/listinfo/spce-user" rel="noreferrer" target="_blank">https://lists.sipwise.com/listinfo/spce-user</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div style="font-size:small">Best regards,</div><div style="font-size:small">Volodymyr</div></div></div></div>