---
name: "Network::Interfaces"
section: "3pm"
platform: "linux"
package: "systemconfigurator"
version: "1.20-1"
release: "Debian 3.0 (Woody)"
platforms: ["linux"]
url: "https://new.carta.tech/Network::Interfaces"
---

# Network::Interfaces(3pm)

Interfaces Networking Module

## NAME

Network::Interfaces - Interfaces Networking Module

## SYNOPSIS

```
  my $networking = new Network::Interfaces(%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 Interfaces style networking was discovered on the machine, undef if it was not.  The current test checks for the existance of the file **$root/etc/network/interfaces**.

- *setup()*

  The *setup()* method sets up the file /$root/etc/network/interfaces for Interfaces type networking.  It iterates through all the network interfaces specified in the configuration file  (and/or STDIN) and translates them into the format understood by **ifup** and **ifdown** binaries. It also sets the hostname with the one provided, by modifying the /etc/hostname file.

- *setup\_interface()* *setup\_interface()* method determines which network setup method will be used for the particular interface. Currently Interfaces supports 3 types; static, dhcp, and bootp. For more information read the man page for interfaces.

  ## AUTHORS

```
  Donghwa John Kim <donghwajohnkim@users.sourceforge.net>,
  Sean Dague <sldague@us.ibm.com>
```

## SEE ALSO

Network, Network::Generic, perl
