ifcfg-setup
is a utility and framework for/etc/sysconfig/network-scripts/ifcfg-X
file managementiftree
shows networking interface hierarchy
$ git clone https://github.com/hansode/ifutils.git
$ ifcfg-setup <command> <device-type> <device-name> [opts...]
Install ifcfg-eth1.
$ ./bin/ifcfg-setup install ethernet eth1 ip=192.168.1.2 gw=192.168.1.1 bcast=192.168.1.255 net=192.168.1.0 mac=fe:ff:ff:ff:ff
DEVICE=eth1
TYPE=Ethernet
BOOTPROTO=static
ONBOOT=yes
IPADDR=192.168.1.2
NETWORK=192.168.1.0
BROADCAST=192.168.1.255
GATEWAY=192.168.1.1
- render
- install
- map
- ethernet
- bonding
- bridge
- vlan
- tap
- onboot
- ip
- mask
- net
- bcast
- gw
- mac
- dns1
- dns2
- bridge
Beerware license.
If we meet some day, and you think this stuff is worth it, you can buy me a beer in return.