Skip to content

Latest commit

 

History

History
80 lines (60 loc) · 1.18 KB

README.md

File metadata and controls

80 lines (60 loc) · 1.18 KB

ifutils

Build Status

  • ifcfg-setup is a utility and framework for /etc/sysconfig/network-scripts/ifcfg-X file management
  • iftree shows networking interface hierarchy

Requirements

Installation

$ git clone https://github.com/hansode/ifutils.git

Usage

$ ifcfg-setup <command> <device-type> <device-name> [opts...]

Getting Started

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

Commands

  • render
  • install
  • map

Device Types

  • ethernet
  • bonding
  • bridge
  • vlan
  • tap

Options

  • onboot
  • ip
  • mask
  • net
  • bcast
  • gw
  • mac
  • dns1
  • dns2
  • bridge

License

Beerware license.

If we meet some day, and you think this stuff is worth it, you can buy me a beer in return.