IPDevice::RouterBase::StaticRoute
use IPDevice::RouterBase::StaticRoute; my $route = new IPDevice::RouterBase::StaticRoute; $route->set_network('192.168.0.0', '255.255.255.0'); $route->set_destination('10.10.10.1);
This module provides routines for storing informations regarding a single IP route.
Object constructor. Valid arguments: none.
Check & set the IP prefix to be routed. Returns FALSE if the prefix is invalid, otherwise TRUE.
Returns the IP prefix.
set_network($network[, $mask])
Set the IP network address and, optionally, the mask.
Returns the IP network address.
Set the IP mask.
Returns the IP mask.
Set the destination IP address. Returns TRUE if the ip is valid, otherwise FALSE.
Returns the destination IP address.
Copyright (c) 2004 Samuel Abels. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Samuel Abels <spam debain org>
To install IPDevice::IPv4, copy and paste the appropriate command in to your terminal.
cpanm
cpanm IPDevice::IPv4
CPAN shell
perl -MCPAN -e shell install IPDevice::IPv4
For more information on module installation, please visit the detailed CPAN module installation guide.