<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>St3v3_92 Tracker</title>
    <link>https://communities.vmware.com/wbsdv95928/tracker</link>
    <description>St3v3_92 Tracker</description>
    <pubDate>Thu, 23 Nov 2023 13:53:03 GMT</pubDate>
    <dc:date>2023-11-23T13:53:03Z</dc:date>
    <item>
      <title>Debian 11 - persistent default gateway KO !</title>
      <link>https://communities.vmware.com/t5/Networking-Members/Debian-11-persistent-default-gateway-KO/m-p/2957743#M269</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;Here is what I'm trying to build:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://debian-facile.org/images/file-R4a2ffa442e04c35cfda2a3f96a3f1737" target="_blank" rel="nofollow noopener noreferrer"&gt;https://debian-facile.org/images/fil...a2a3f96a3f1737&lt;/A&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;Thanks to Kawer for the schema !&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;(B) has 2 interfaces:&lt;BR /&gt;- ens33: in bridge DHCP&lt;BR /&gt;- ens34: network segment shared with (A), static IP addr&lt;BR /&gt;Access to the box is done by Wifi.&lt;BR /&gt;(A) and (B) are 2 VMs running on (D).&lt;BR /&gt;&lt;BR /&gt;The idea is to have a workstation (A), completely isolated from the rest of the network (192.168.1...), however accessing the web (via ISP box E).&lt;BR /&gt;&lt;BR /&gt;Hyper classic!... you might say.&lt;BR /&gt;Yes, indeed, but as things stand, I just manage to ping from A to C and ping is KO (good thing!) from A to D.&lt;BR /&gt;B easily accesses the internet (&lt;I&gt;wget a.io&lt;/I&gt;: OK).&lt;BR /&gt;I managed to get the router to work in "non-persistent" mode, I struggle to get a persistent config after reboot.&lt;BR /&gt;&lt;BR /&gt;On A and B I did:&lt;/P&gt;&lt;DIV&gt;&lt;DIV class=""&gt;Code:&lt;/DIV&gt;&lt;PRE&gt;echo "nameserver 8.8.8.8" &amp;gt; /etc/resolv.conf&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;There, I admit, I don't see anything anymore, it must be very silly but I need an outside look!&lt;BR /&gt;NB: all screenshots below were made on (B), except the last one, made on (A).&lt;BR /&gt;&lt;BR /&gt;Please, could you help me to troubleshoot this case ?&lt;BR /&gt;&lt;BR /&gt;(no copy/past possible from the VM in text mode)&lt;BR /&gt;&lt;A href="https://www.cjoint.com/doc/23_02/MBgveogZ7us_Merged-document.png" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.cjoint.com/doc/23_02/MBg...d-document.png&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;NB: from A, &lt;I&gt;ping 8.8.8.8&lt;/I&gt; does not respond.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;In fact, problem in on VM (A).&lt;/P&gt;&lt;P&gt;To get web access, I always have to type :&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV class=""&gt;Code:&lt;/DIV&gt;&lt;PRE&gt;route add default gw 10.0.60.1&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;Impossible to make this f*ck!ng route persistante in /etc/interfaces&lt;/P&gt;&lt;P&gt;I tried many many syntaxes in /etc/network/interfaces tomake default gw route persistent but without success.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;So, I tried to run this command in &lt;I&gt;rc.local &lt;/I&gt;, it won't work !&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;When starting VM (A), I get:&lt;BR /&gt;"Failed to start /etc/rc.local Compatibility"&lt;BR /&gt;&lt;BR /&gt;In comments, unsuccessful tries I've done:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV class=""&gt;Code:&lt;/DIV&gt;&lt;PRE&gt;root@secbrowser:~# more /etc/rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

# Set here because does not work in "interfaces" file :(
/usr/bin/date &amp;gt;&amp;gt; /root/rclocal_debug_STP.txt
#/usr/bin/echo "route flush..." &amp;gt;&amp;gt; /root/rclocal_debug_STP.txt
#/usr/sbin/ip route flush table main
#/usr/bin/echo "route del..." &amp;gt;&amp;gt; /root/rclocal_debug_STP.txt
#/usr/sbin/ip route del default via 10.0.60.1 dev ens33 onlink
/usr/bin/echo "route add..." &amp;gt;&amp;gt; /root/rclocal_debug_STP.txt
/usr/sbin route add default gw 10.0.60.1
#/usr/sbin/ip route add default gw 10.0.60.1
#/usr/sbin/ip route add default 192.168.1.0/24 via 10.0.60.1
/usr/bin/echo "fin OK!"
exit 0&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;rc.local runs well according to my "log" but fails just with route add default gateway command !!!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV class=""&gt;Code:&lt;/DIV&gt;&lt;PRE&gt;root@secbrowser:~# more rclocal_debug_STP.txt
route add...
route del...
route flush...
route add...
route flush...
route add...
jeu. 23 févr. 2023 23:34:44 CET
route flush...
route add...
jeu. 23 févr. 2023 23:42:00 CET
route flush...
route add...
jeu. 23 févr. 2023 23:49:00 CET
route add...
jeu. 23 févr. 2023 23:53:07 CET
route add...
ven. 24 févr. 2023 21:26:31 CET
route add...
root@secbrowser:~#&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;Any smart idea ?&lt;BR /&gt;&lt;BR /&gt;---&lt;/P&gt;&lt;P&gt;Is there a known bug with "persistent default gateway" ?&lt;BR /&gt;&lt;BR /&gt;Do you see where the problem can come from ???&lt;BR /&gt;&lt;BR /&gt;At your disposal for any further information.&lt;BR /&gt;&lt;BR /&gt;Thank you in advance.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Steve.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 03 Mar 2023 21:25:46 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/Networking-Members/Debian-11-persistent-default-gateway-KO/m-p/2957743#M269</guid>
      <dc:creator>St3v3_92</dc:creator>
      <dc:date>2023-03-03T21:25:46Z</dc:date>
    </item>
  </channel>
</rss>

