Problem Summary  I have two network interfaces in the machine, and need them to behave in the following way:   enp3s0: Main network interface for the machine.  Receive over DHCP an IP address (will be in 172.16.0.0/24), a gateway, and a DNS resolver for the office network and the world at large.  Default route is to this received gateway. enp2s0: Local subnet consisting of nothing more than 2 meters away, and nothing that should have access to the main network.  Serve DHCP on this network (192.168.0.0/24, domain is .localnet), and provide the local machine with DNS resolution of .localnet clients.   I had a working solution for all this under 16.04 using /etc/network/ and dnsmasq (no NetworkManager), but I'm just lost in the new era of netplan and systemd-resolved.  Everything just keeps fighting everything else.  So, what's my right, modern solution to make this work right?  Ideally in such a way that I won't have to change it for 20.04.  Additional information  For reference, here is the script that did what I needed under 16.04.  #!/bin/bash # # Configure the PC to use dual network adapters. # # usage: dualnetwork.sh &lt;hinetif&gt; &lt;localnetif&gt; # # This configuration is based around the use of the classic ifupdown # configuration files rather than NetworkManager.  This is substantially # more stable and easier to work with.  It is probably prudent to also # uninstall NetworkManager once this is done: #   sudo apt-get remove network-manager # # Must run as root. # # Rob Gaddi, 29 Jan 2019  GENERATED="Generated by $0 at $(date)" HINET=$1 LOCALNET=$2  abort () {     echo $*     exit 1 }  [[ ! -z "$LOCALNET" ]] || abort Must provide hinet and localnet interfaces. ip -br addr | grep $HINET    || abort Interface $HINET not found ip -br addr | grep $LOCALNET || abort Interface $LOCALNET not found  #################################################################### echo Configuring network interfaces #################################################################### mkdir -p /etc/network/interfaces.d echo source-directory /etc/network/interfaces.d &gt; /etc/network/interfaces cat &lt;&lt;-CONF &gt; /etc/network/interfaces.d/hinet     # $GENERATED     auto $HINET     iface $HINET inet dhcp CONF cat &lt;&lt;-CONF &gt; /etc/network/interfaces.d/localnet      # $GENERATED     allow-hotplug $LOCALNET     iface $LOCALNET inet static         address 192.168.0.20/24      iface $LOCALNET inet static         address 192.168.254.20/24 CONF  #################################################################### echo Installing and configuring dnsmasq #################################################################### apt-get install --reinstall -y dnsmasq mkdir -p /etc/dnsmasq.d cat &lt;&lt;-CONF &gt; /etc/dnsmasq.d/dualnetwork.conf     # $GENERATED     no-negcache     dhcp-range=192.168.0.100,192.168.0.150,4h     interface=$LOCALNET     domain=localnet     dhcp-fqdn     log-dhcp CONF systemctl enable --now dnsmasq.service   Edit  This differs from  in that the problem is not netplanning the machine IP addresses; that part is pretty easy.  The problem is making the system serve DHCP on one network.  When I tried it the obvious way, dnsmasq and systemd-resolved kept stepping on one another's toes.  When I tried just disabling systemd-resolvd and letting dnsmasq do all the work it never got the upstream DNS server when it accepted the main network DHCP.
I am new to the netplan on Ubuntu 18.04, just discovered it exists today. I have an interface that I am trying to add to create a floating IP on google cloud. It is based on this example:   I tested the example, and it works, but now I try to do the same on ubuntu, and I don't know how to convert this:  cat &lt;&lt; EOF &gt;&gt; /etc/network/interfaces auto eth0:0 iface eth0:0 inet static     address 10.190.1.1     netmask 255.255.255.255 EOF   to netplan.  The output for ls /etc/netplan is '50-cloud-init.yaml'. and the output for cat /etc/netplan/*.yaml is:  network:     version: 2     ethernets:         ens4:             dhcp4: true             match:                 macaddress: 42:01:0a:8e:00:3e             set-name: ens4   my ifconfig:  # ifconfig  ens4 ens4: flags=4163&lt;UP,BROADCAST,RUNNING,MULTICAST&gt;  mtu 1460     inet 10.142.0.62  netmask 255.255.255.255  broadcast 0.0.0.0     inet6 fe80::4001:aff:fe8e:3e  prefixlen 64  scopeid 0x20&lt;link&gt;     ether 42:01:0a:8e:00:3e  txqueuelen 1000  (Ethernet)     RX packets 9430  bytes 1635180 (1.6 MB)     RX errors 0  dropped 0  overruns 0  frame 0     TX packets 13383  bytes 1513428 (1.5 MB)     TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0   What is the equivalent of what he said to put in the file, for netplan?
Meta SE account is shown 3 times in accounts Earlier today I asked my first question on this site. So Meta SE was added to my accounts. But this account is shown three times:        One of them also has a badge while the other two don't.   The network profile doesn't show MSE at all:        Also I have got this long wierd user name and  I am not able to change it. In the edit- display name this long name is not there.My user name on other sites is shown there.   After all this happened Meta SE questions are not getting loaded in my SE app.    Edit: the issue of name is solved now. I changed the profile picture and saved changes and it worked. headed or heading, started or starting? Consider:  Two units are headed your way. Two units are heading your way. Don't get me started! Don't get me starting!  Is there any difference in meaning? And I don't see why passive voice is used here. I would think they have similar meaning here. Help me to clarify! Even though I got banned suspended, I'm able to mark a question as a favorite. Is this functionally correct? How can I remove the white pixels around the edges when exporting a transparent GIF? How to ensure all data has been physically written to disk? I understand that .NET FileStream's Flush method only writes the current buffer to disk, but dependent on Windows' disk driver and the hard disk firmware this is no guarantee that the data is actually physically written to disk.  Is there a .NET or Win32 method that can give me this guarantee? So if there is power loss one nanosecond after the call to this method comes back, I can still be sure that everything is OK? How to NOT show keyboard layout chooser popup when changing language in GNOME 3 Since I installed 17.10, when switching language with the assigned keyboard shortcut I get this switcher "window" that obstructs me from typing for a couple of seconds. And yes, a couple of seconds is a huge amount of time when switching languages a lot.      This happens both in X11 and Wayland but doesn't happen (the obstructive window will not appear) when I switch language by clicking on the lang indicator on top bar. Is there any way to tell this window "please go away"? Algorithm to match one input file with given numbers of file Number of ways to connect sets of $k$ dots in a perfect $n$-gon I have to prove that:     $$\sum_{k=0}^{n} {{m+k} \choose{m}} = { m+n+1 \choose m+1 }$$   I tried to open up the right side with Pascal's definition that: $$ { n \choose k} = {n-1 \choose {k}} + {n-1 \choose {k-1}}$$  Here is what I came up with, and I am sure it is wrong because it does not equal the left side:  $$ {m+n+1 \choose m+1} = {m+n \choose m+1} + {m+n \choose m} = ... ={m+n \choose m+1} + {m+n-1 \choose m} + {m+n-2 \choose m-1} + ... + {m \choose m+1} = \sum_{k=0}^{n} {m+k \choose m+k-n+1 }  $$  Which, again, probably is wrong because it is not equal $\sum_{k=0}^{n} { m+k \choose m}$. Any help is appreciated Mixed content on many SE sites Many SE sites (like math.SE) have a problem with mixed content, which causes display bugs in recent browsers. This is particularly evident with math.SE (because of the huge use of MathJax) and with chat sections.  Will this be fixed?  How to reproduce  Visit  or   What happens  Mixed content is blocked, output is missing pieces of code (MathJax):    This picture also includes my main Firefox addons (top right), it relevant. It shows missing styles:    The white on the left is my tab list. remove numbers from filenames in Mac OS X I have a directory full of files with names in this format (with numbers as the start of each filename):  102_file.txt 104_list.txt 242_another_file.txt   I would like to rename them as follows (i.e. removing the numbers):  file.txt list.txt another_file.txt   Can anyone suggest a way to do this (presumably from the terminal)? According to some grammars[1][2] and CMS...  "Interjections and vocative should be separated from the rest of the sentence by commas".  The vocative case [1] is used to indicate direct address (i.e., to show when you are talking to somebody or something directly). Nouns in the vocative case are set off using commas. CMS 6.38  As direct address (i.e. vocative case), the parenthetical element should be set off using commas (CMS 6.30). An absolute phrase is always treated as a parenthetical element, as is an interjection.  So,      Hello, world!   That is a very classical way to hello the world.  But, languages change. I am not sure, but today, I feel that it is very uncommon helloing someone with an interjection, providing a small pause and clarifying who is helloed. I have an impression that usually people use hello as a ("kind of") verb, not an interjection.   Question: Is that just a personal (bad) impression or some linguistic has already studied that phenomenon?     [1] - Nelson, Gerald C., Director Survey of English Usage Sidney Greenbaum, and Sidney Greenbaum. An Introduction to English Grammar. Routledge, 2013. [2] - Advanced Grammar in Use with Answers: A Self-Study Reference and Practice Book for Advanced Learners of English. 3 edition. Cambridge University Press, 2013. CMS - Chicago Manual of Style Problem  For what natural numbers is $n^3 &lt; 2^n$?  Attempt @ Solution   For $n=1$, $1 &lt; 2$ Suppose $n^3 &lt; 2^n$ for some $n = k \ge 1$ It looks like the inequality is true for $n = 0$, $n = 1$ and $n\ge10$ But, how can I prove this through induction? Updating VS Code in ubuntu 18.04 How can I delete everything from my MacBook Pro before selling it? I have a Mac that runs Snow Leopard and I intend to upgrade it to Mountain Lion and sell it on ebay. However, I only have one hard-drive, and I'm sure I can't use something in my OS to delete my OS and all user data.  Is there something for this that's built into the firmware that I can do on boot, or otherwise?   I have source code on my Mac for multiple corporations' proprietary software and I can't risk somebody gaining access through the use of any sort of disk recovery tool. I plan to use a 7 pass erase rather than simply deleting the directory. I understand using phone while it is being charged by a normal charger is not advised. What about using phone while it is being charged by a portable charger (powerbank)?  I own a HTC one and i was told by a mobile technician HTC’s own portable charger only should be used for HTC one. How much truth is there to it as HTC powerbank is not available in my city and i am thinking of using Sony portable charger for charging my HTC One? Can you cast a spell at a higher level, even if it doesn't have an "At higher levels" entry? I keep having to re-install Ubuntu after trying advice.  This is very frustrating.  All I want is to boot to a Linux command prompt.  Please help! I need to run Firefox browser from terminal. Browser works fine, but terminal still waits for Firefox to return and if I do CTRL+C, it terminates Firefox. How to run command to make Firefox work independently from terminal? I am rendering my scene with only one sample but all the renders of the same picture have a different seed value. How can I combine them correctly? I wrote a java-program that loads all the images and takes the average pixel color for each pixel of the images. Is that a correct way of combining the images? It doesn't reduce the noise very much so I am not happy with it. What can I do?