Network::Interface(3pm)

Network::Interface3pm

A network interface abstraction

Usage

  my $interface = new Network::Interface(
                                         DEVICE => 'eth0',
                                         IPADDR => '192.168.42.101',
                                         TYPE => 'static',
                                        );
  my $netmask = $interface->netmask;
  my $ip = $interface->ip;
  my $network = $interface->network;

Overview

Methods

The following accessors exist in this module:

ip

returns ip address

ipaddr

returns ip address

netmask

returns subnet mask

network

returns base network address

broadcast

returns broadcast address

device

returns device name

type

returns interface type (dhcp⎪static⎪bootp)

Author

  Sean Dague
  [email protected]

From systemconfigurator 1.20-1 in Debian 3.0 (Woody). Parsed by carta from the page's man source.