<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Jun 21, 2017 at 10:55 AM, Jakob Schürz <span dir="ltr"><<a href="mailto:wertstoffe@nurfuerspam.de" target="_blank">wertstoffe@nurfuerspam.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi!<br>
<br>
I'm fiddeling around with network, to find out, how it works. I know,<br>
it's not made for use in Laptops moving in different networks.<br>
<br>
But there is a solution with wpa_supplicant to connect to different<br>
WLANs. I also found a Solution when i connect to my mobile phone, using<br>
usb-thetering for the network-connection. This also works.<br>
<br>
My question is - and i googled the half last night - how to configure<br>
networkd to set dhcp on on wireless-network (especially internet-cafe,<br>
wlan in trains...) and give a fixed ip-address at the home-wlan or the<br>
wlan at work (different ip then the home-fixed-ip)<br></blockquote><div><br></div><div>You can't do this with networkd alone, as it cannot yet distinguish between different Wi-Fi SSIDs. (Open a feature request on Github.) NetworkManager, connman, or perhaps a recent dhcpcd (which AFAIK introduced wpa_supplicant support recently) would work better in this case.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Is there also a possibility to set different fixed and dynamic<br>
ip-addresses when connection to different wired lans? Also the home-lan<br>
(static ip) and the lan at work (static) and the lan in university (dhcp).<br></blockquote><div><br></div><div><div>Unfortunately, wired LANs don't even *have* anything like a SSID, so tools can't distinguish between them at all. Really, just use DHCP at home...</div><div><br></div><div>But some of them (e.g. NetworkManager) allow manually switching between connection profiles, e.g. you can have a "DHCP" profile and a "Work - static" profile.</div></div></div><div><br></div>-- <br><div class="gmail-m_-591445148110578608gmail_signature"><div dir="ltr">Mantas Mikulėnas <<a href="mailto:grawity@gmail.com" target="_blank">grawity@gmail.com</a>></div></div>
</div></div>