Reference

Network::RawNetwork(3pm)

Raw /etc/init.d/network Module

NAME

Network::RawNetwork - Raw /etc/init.d/network Module

SYNOPSIS

  my $networking = new Network::RawNetwork(%vars);

  if($networking->footprint()) {
      $networking->setup();
  }

  my @fileschanged = $networking->files();

DESCRIPTION

METHODS

The following methods exist in this module:

footprint()

This method returns 1 if Raw Networking style networking was discovered on the machine, undef if it was not. The current test checks for the existance of a line in /etc/init.d/network which consists entirely of 'ifconfig lo 127.0.0.1'.

setup_global()

The setup() method sets up the file /$root/etc/init.d/network script to make raw calls to ifconfig and route. This networking will work for any distribution. It also creats an /etc/hostname file, as it seems that distributions that have this footprint also use /etc/hostname to set the system hostname on boot.

setup_interface()

setup_interface() method determines which network setup method will be used for the particular interface. It only adds lines to the file in the event that it is a static address. Otherwise it is assumed that there is a dhcp client script elsewhere.

AUTHOR

  Sean Dague <[email protected]>

SEE ALSO

SystemConifg::Network, Net::Netmask, perl