Well, to get a list of use cases of current ubuntu just run

apt-file search /etc/network/if-pre-up.d
apt-file search /etc/network/if-post-down.d

and I have my own scripts to configure iptables according to the given
network settings, or to set parameters in /proc/sys/...


About environment variables:  There is no "complete" list, since the 
ifup/ifdown scripts allow to use arbitrary configuration directives in 
/etc/network/interfaces which are passed as an environment variable to the 
scripts, upcased with a IF_ prefix. Plenty of programs like the vlan 
configuration make use of  this method to allow arbitrary environments. E.g. 
have an entry like

  fw  hidenat

in the interfaces file is passed as environment   IF_FW=hidenat. So you
can use whatever you want as parameters to your scripts.

The default environments generated by ifup/ifdown can be found by
running a test script or having a look in the source code, i.e.

IF_*   (all those arbitrary configuration parameters as stated above)
IFACE (interface name like eth0 )
LOGICAL (logical interface)
MODE  (e.g. "start", don't know details)
PHASE (e.g. post-up)
VERBOSITY (0,1)
ADDRFAM (inet,...)
IF_ADDRESS (ip-address)
IF_GATEWAY (router)
IF_METRIC (route metric)
IF_NETMASK

and maybe additional data like WLAN netname.

There are still several open issues before network-manager smoothly fits
into the debian/ubuntu environment. These are just some of them.

regards
Hadmut

-- 
the way networkmanager stores and passes network information
https://bugs.launchpad.net/bugs/364460
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to