Skip to main content
10 votes
Accepted

Binding to an IP address on an interface that comes and goes

If the app supports it (or if it's your app, or if you're willing to patch it), there's a setsockopt flag IP_FREEBIND in Linux 2.4+ (and FreeBSD) which allows binding a socket to an address that doesn'...
hobbs's user avatar
  • 1,047
4 votes

Binding to an IP address on an interface that comes and goes

Answering my own question, this does appear to work, but I'm keen to learn of any other methods: I create a bridge, br0 - it has 192.168.3.1 and DHCP configured I create a dummy interface, du0, and ...
Christopher Hunt's user avatar
1 vote

creating and activating network interface from command line

A network interface is normally created as an OS-recognized object when its driver starts up and probes the interface hardware. A classic ifconfig with no options would only show configured network ...
telcoM's user avatar
  • 101k
1 vote

creating and activating network interface from command line

If you want to create a persistent interface configuration, you must be using NetworkManager or an alternative like systemd-networkd. Anything you create using commands like ip won't persist across a ...
larsks's user avatar
  • 35.9k

Only top scored, non community-wiki answers of a minimum length are eligible