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) |