NetCF

A library and command line tool for configuring networking on Linux machines
Download

NetCF Ranking & Summary

Advertisement

  • Rating:
  • License:
  • LGPL
  • Price:
  • FREE
  • Publisher Name:
  • David Lutterkort
  • Publisher web site:
  • http://augeas.net/

NetCF Tags


NetCF Description

A library and command line tool for configuring networking on Linux machines NetCF is:* a library for configuring network interfaces* a command line tool (ncftool) to do the same from the command line* distribution-agnostic and supports multiple distributions and operating systems (well, soon, anyway)* sets up Ethernet interfaces, bridges, and bonds Both libvirt and NetworkManager need this functionality - NetCF implements what is common to both of them.How does it work?The API for netcf accepts an XML description of the overall interface you want. For a simple bridge, this is< interface type="bridge" startmode="onboot" > < name >br0< /name > < mtu size="1500"/ > < dhcp/ > < bridge stp="off" > < interface type="ethernet" > < name >eth0< /name > < mtu size="1492"/ > < mac address="ab:bb:cc:dd:ee:ff"/ > < /interface > < /bridge >< /interface >A call to ncf_define with the above XML will make the necessary changes to your system's network configuration scripts to set up a bridge br0 with the ethernet interface eth0 enslaved to it.This goes both ways: you can also retrieve the XML description for any network interface on your system with ncf_if_xml_desc. The important point is that netcf uses your distribution's 'native' network configuration mechanisms directly. That makes it possible to hand-edit those scripts, or modify them with other programs, without confusing NetCF. What's New in This Release: · The interface.rng schema now allows specifying IPv4 and IPv6 addresses in any order · ncf_if_status: new API call · ncf_if_xml_state: only report information about the live interface, and none of the information from configuration files; report interface type; report all addresses assigned to an interface; report MAC address of an interface · ncf_list_interfaces, ncf_num_interfaces, ncf_if_xml_state: fix bugs when dealing with interfaces that are down · ncf_if_mac_string: do not report error when MAC is not known, simply return NULL · use libnl to determine information about live interfaces


NetCF Related Software