<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">now it works </div><div class="">I had to add the static route also to the /etc/network/interaces to get it working.</div><div class=""><br class=""></div><div class="">also finally rebooted as the ifup and ifconfig commands would not have any effect to get the post-up route enabled</div><div class="">may that the route add with persistent flag would also have worked did not try that though...</div><div class=""><br class=""></div><div class="">Thank you for your help !</div><div class=""><br class=""></div><div class="">Tomi<br class=""><div><br class=""><div class="">On 3 Oct 2018, at 21.00, Volodymyr Fedorov <<a href="mailto:lexxua@gmail.com" class="">lexxua@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi Tomi,<div class="">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 class=""><br class=""></div><div class="">BR,</div><div class="">Volodymyr</div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="">On Wed, Oct 3, 2018 at 7:52 PM Tomi Hakkarainen <<a href="mailto:tomishakkarainen@gmail.com" class="">tomishakkarainen@gmail.com</a>> wrote:<br class=""></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" class="">Hi Daniel,<div class=""><br class=""></div><div class="">Thank you for the correct syntax highly appreciated.<br class=""><div class=""><br class=""></div><div class="">But I’m still not able to get this working.</div><div class=""><br class=""></div><span class="">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 class=""><br class=""></span><span class="">also tried to run separatedly ngcpcfg build ,ngcpcfg commit and systemctl daemon-reload without luck.</span><div class=""><br class=""></div><div class="">There is no errors outputted etc… and the configuration on /etc/network/interfaces is also intact<br class=""><div class=""><span class=""><br class=""></span></div><div class=""><span class="">what could I be missing here ?</span></div><div class=""><span class=""><br class=""></span></div><div class=""><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)" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">+---------------------------+---------------------------------------------- 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)" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">| xxx.</span><span style="font-variant-ligatures:no-common-ligatures;color:#34bc26" class="">xxx.xxx.xx            </span><span style="font-variant-ligatures:no-common-ligatures" class="">|</span><span style="font-variant-ligatures:no-common-ligatures;color:#cccccc" class=""> NGCP:</span><span style="font-variant-ligatures:no-common-ligatures" class=""> </span><span style="font-variant-ligatures:no-common-ligatures;color:#5230e1" class="">CE mr6.3.1         </span><span style="font-variant-ligatures:no-common-ligatures" class="">                                          |</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)" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">| </span><span style="font-variant-ligatures:no-common-ligatures;color:#34bc26" class="">spce                     </span><span style="font-variant-ligatures:no-common-ligatures" class=""> |</span><span style="font-variant-ligatures:no-common-ligatures;color:#cccccc" class=""> NGCP:</span><span style="font-variant-ligatures:no-common-ligatures" class=""> 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)" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">| </span><span style="font-variant-ligatures:no-common-ligatures;color:#34bc26" class="">spce.                    </span><span style="font-variant-ligatures:no-common-ligatures" class=""> |</span><span style="font-variant-ligatures:no-common-ligatures;color:#cccccc" class="">   OS:</span><span style="font-variant-ligatures:no-common-ligatures" class=""> 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)" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">| </span><span style="font-variant-ligatures:no-common-ligatures;color:#34bc26" class="">(PRODUCTION - ACTIVE)    </span><span style="font-variant-ligatures:no-common-ligatures" class=""> |</span><span style="font-variant-ligatures:no-common-ligatures;color:#cccccc" class="">  CPU:</span><span style="font-variant-ligatures:no-common-ligatures" class=""> 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)" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">|                           |</span><span style="font-variant-ligatures:no-common-ligatures;color:#cccccc" class=""> BIOS:</span><span style="font-variant-ligatures:no-common-ligatures" class=""> 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)" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">|                           |</span><span style="font-variant-ligatures:no-common-ligatures;color:#cccccc" class="">  RAM:</span><span style="font-variant-ligatures:no-common-ligatures" class=""> 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)" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">|                           |</span><span style="font-variant-ligatures:no-common-ligatures;color:#cccccc" class="">   LA:</span><span style="font-variant-ligatures:no-common-ligatures" class=""> 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)" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">|                           |</span><span style="font-variant-ligatures:no-common-ligatures;color:#cccccc" class="">  HDD:</span><span style="font-variant-ligatures:no-common-ligatures" class=""> 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)" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">|                           |</span><span style="font-variant-ligatures:no-common-ligatures;color:#cccccc" class="">  HDD:</span><span style="font-variant-ligatures:no-common-ligatures" class=""> 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)" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">|                           |</span><span style="font-variant-ligatures:no-common-ligatures;color:#cccccc" class="">  CFG:</span><span style="font-variant-ligatures:no-common-ligatures" class=""> [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)" class=""><span style="font-variant-ligatures:no-common-ligatures;color:#28fe14" class="">|                           |</span><span style="font-variant-ligatures:no-common-ligatures;color:#cccccc" class=""> NGCP:</span><span style="font-variant-ligatures:no-common-ligatures;color:#28fe14" class=""> </span><span style="font-variant-ligatures:no-common-ligatures" class="">active node has no registrations, strange for production    </span><span style="font-variant-ligatures:no-common-ligatures;color:#28fe14" class=""> |</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)" class=""><span style="font-variant-ligatures:no-common-ligatures;color:#28fe14" class="">|                           |</span><span style="font-variant-ligatures:no-common-ligatures;color:#cccccc" class=""> NGCP:</span><span style="font-variant-ligatures:no-common-ligatures;color:#28fe14" class=""> </span><span style="font-variant-ligatures:no-common-ligatures" class="">active node has no calls, strange for production            </span><span style="font-variant-ligatures:no-common-ligatures;color:#28fe14" class=""> |</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)" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">|                           |</span><span style="font-variant-ligatures:no-common-ligatures;color:#cccccc" class=""> MODs:</span><span style="font-variant-ligatures:no-common-ligatures" class=""> 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)" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">+-------------------7 sec---+-----  ---------------------------------------6.3.1.1+0~mr6.3.1.1---+</span></div><span class=""><br class="">Tomi<br class=""><br class="">On 3 Oct 2018, at 11.44, Daniel Grotti <<a href="mailto:dgrotti@sipwise.com" target="_blank" class="">dgrotti@sipwise.com</a>> wrote:<br class=""><br class="">Hi,<br class="">syntax example:<br class=""><br class="">post_up:<br class="">      - route add -net <a href="http://1.2.3.0/21" target="_blank" class="">1.2.3.0/21</a> gw 192.168.1.1 dev vlan300<br class=""><br class=""><br class="">Cheers,<br class=""><br class="">-- <br class="">Daniel Grotti<br class="">Head of Customer Support<br class="">Sipwise GmbH, Campus 21/Europaring F15<br class="">AT-2345 Brunn am Gebirge<br class=""><br class="">Office: +43(0)130120332<br class=""><a href="mailto:dgrotti@sipwise.com" target="_blank" class="">Email: dgrotti@sipwise.com</a><br class="">Website: <a href="https://www.sipwise.com/" target="_blank" class="">https://www.sipwise.com</a><br class=""><br class="">On 10/02/2018 11:55 PM, Tomi Hakkarainen wrote:<br class=""><blockquote type="cite" class="">Hi U all,<br class=""><br class="">What would be the correct format to make a static ip route on CE network interface on /etc/ngcp-config/network.yml ?<br class=""><br class="">I think I should use:<br class=""><span style="white-space:pre-wrap" class="m_1184194448130737689Apple-tab-span">   </span>• post_up: routes can be defined here (interface-based routing)<br class="">but cannot figure how to add destination ip,  mask and  gw<br class=""><br class="">something like this ?<br class=""><br class="">etc1:<br class="">post-up:<br class="">  - to: <a href="http://192.168.1.1/0" target="_blank" class="">192.168.1.1/0</a><br class="">    via: 10.0.0.1<br class=""><br class=""><br class=""><br class=""><br class="">Regards Tomi<br class=""><br class="">_______________________________________________<br class="">Spce-user mailing list<br class=""><a href="mailto:Spce-user@lists.sipwise.com" target="_blank" class="">Spce-user@lists.sipwise.com</a><br class=""><a href="https://lists.sipwise.com/listinfo/spce-user" target="_blank" class="">https://lists.sipwise.com/listinfo/spce-user</a><br class=""></blockquote><br class="">_______________________________________________<br class="">Spce-user mailing list<br class=""><a href="mailto:Spce-user@lists.sipwise.com" target="_blank" class="">Spce-user@lists.sipwise.com</a><br class=""><a href="https://lists.sipwise.com/listinfo/spce-user" target="_blank" class="">https://lists.sipwise.com/listinfo/spce-user</a><br class=""><br class=""></span></div></div></div>_______________________________________________<br class="">
Spce-user mailing list<br class="">
<a href="mailto:Spce-user@lists.sipwise.com" target="_blank" class="">Spce-user@lists.sipwise.com</a><br class="">
<a href="https://lists.sipwise.com/listinfo/spce-user" rel="noreferrer" target="_blank" class="">https://lists.sipwise.com/listinfo/spce-user</a><br class="">
</blockquote></div><br clear="all" class=""><div class=""><br class=""></div>-- <br class=""><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr" class=""><div class=""><div style="font-size:small" class="">Best regards,</div><div style="font-size:small" class="">Volodymyr</div></div></div></div>
</div></div><br class=""></div></body></html>