Static IP address on wandering Wi-Fi client

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Is there any way to tell systemd-networkd to use one .network file or
another depending on which SSID the Wi-Fi interface is connected to?

I've been working for a while on a router-like project that has a WAN
interface which normally gets its IP address by DHCP but can be
configured to use a static IP address. We've been using
systemd-networkd. We recently decided to add a Wi-Fi interface as an
option to the Ethernet interface, and it was easy enough to set up
wpa_supplicant to handle connecting the lower layer, after which
systemd-networkd uses the .network file to bring up IP, either using
DHCP or a static IP address.

The next issue that came up in my thinking was that a static IP address
might be needed with one Wi-Fi service set, but a different static IP or
DHCP service might be in play on a different service set. I don't see
any way to tell systemd-networkd to use one set of parameters for one
SSID but a different set for another SSID. Does this capability exist,
or do I have to roll my own? (I see that NetworkManager can do this, but
I really don't want to drag NetworkManager into the picture if I can
avoid it.)

Thanks!

-- 
Bruce A. Johnson | Firmware Engineer
Blue Ridge Networks, Inc.
14120 Parke Long Court Suite 103 | Chantilly, VA 20151
Main: 1.800.722.1168 | Direct: 703-633-7332
http://www.blueridgenetworks.com


_______________________________________________
systemd-devel mailing list
systemd-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/systemd-devel




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux