A small utility to add aliases to network interfaces.
A small utility to add aliases to network interfaces.
Akaer is a small utility that adds and removes aliases to your network interfaces. This is useful in web development.
Install the gem:
gem install akaer
Run the application:
akaer
You're done!
Just type akaer --help and you'll see all available options.
By defaults, Akaer uses a configuration file in ~/.akaer_config, but you can change the path using the --config switch.
The file is a plain Ruby file with a single config object that supports the following directives.
interface: The network interface to manage. lo0 by default.addresses: A specific list of aliases to manage.start_address: The address to start sequential address. 10.0.0.1 by default. Not used if addresses is specified.aliases: The number of sequential addresses to add. 5 by default.add_command: The command to run for adding an alias. sudo ifconfig @INTERFACE@ alias @ALIAS@ by default.remove_command: The command to run for removing an alias. sudo ifconfig @INTERFACE@ -alias @ALIAS@ by default.log_file: The default log file. By default it logs to standard output.log_level: The default log level. Valid values are from 0 to 5 where 0 means "all messages".dry_run: Only show which modifications will be done.quiet: Do not show any message.Copyright (C) 2013 and above Shogun (shogun_panda@me.com).
Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.