NAME

Global::config_network_interfaces - Configures network interfaces


SYNOPSIS

In custom.conf:

Global::config_network_interfaces

[set IP_FORWARD 0|1]

 hash INTERFACE_SETTING {
  <ifname> DHCP_TO_STATIC
  <ifname> <ip>:<netmask>[:<extra opts>]
  <ifname> DHCP
 }


DESCRIPTION

Configures network interfaces, and ip forward settings. Only implemented on Linux yet.

Interfaces can be configured in 3 different ways.

DHCP_TO_STATIC: If the interface is using DHCP then it will be converted to static settings (keeping the same ip-adress and netmask).

DHCP: Configure this interface to use DHCP.

<ip>:<netmask>[:<extra opts>]: Set static ip-adress, netmask and extra opts on this interface. extra opts is OS dependent eg IO/IRQ, MTU settings, Interface NAME, WLAN parameters etc.


EXAMPLES

In your custom.conf:

        set IP_FORWARD 1 
        hash INTERFACE_SETTING {
                eth0 DHCP_TO_STATIC
                eth1 192.168.1.2:255.255.255.0
                eth2 DHCP
        }
        11 Global::config_network_interfaces


TODO

        static routes
        reboot on change


SUPPORTED OPERATING SYSTEMS

Linux(RedHat)


COPYRIGHT

Copyright (c) 2001 Ericsson Erisoft AB. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.


AUTHOR

Peder Strand <peder.strand@epl.ericsson.se>