# Network settings

By default, iLO interfaces will try to use DHCP for network configuration. With these functions you can inspect the network configuration and, if DHCP doesn’t quite do the right thing for you, make manual adjustments.

class `hpilo.``Ilo`
  `get_network_settings`()

    Get the iLO network settings

        >>> ilo.get_network_settings()
        {'dhcp_dns_server': True,
         'dhcp_domain_name': True,
         'dhcp_enable': True,
         'dhcp_gateway': True,
         'dhcp_sntp_settings': True,
         'dhcp_static_route': True,
         'dhcp_wins_server': True,
         'dhcpv6_dns_server': True,
         'dhcpv6_domain_name': False,
         'dhcpv6_rapid_commit': False,
         'dhcpv6_sntp_settings': True,
         'dhcpv6_stateful_enable': True,
         'dhcpv6_stateless_enable': True,
         'dns_name': 'example-server',
         'domain_name': 'int.kaarsemaker.net',
         'enable_nic': True,
         'full_duplex': 'Automatic',
         'gateway_ip_address': '10.42.128.254',
         'ilo_nic_auto_select': 'DISABLED',
         'ip_address': '10.42.128.100',
         'ipv6_addr_autocfg': True,
         'ipv6_address': 'fe80::9eb6:54ff:fe8e:4b7c',
         'ipv6_default_gateway': '::',
         'ipv6_preferred_protocol': True,
         'ipv6_prim_dns_server': '::',
         'ipv6_reg_ddns_server': True,
         'ipv6_sec_dns_server': '::',
         'ipv6_static_route_1': {'addr_status': 'INACTIVE',
                                 'ipv6_dest': '::',
                                 'ipv6_gateway': '::',
                                 'prefixlen': 0},
         'ipv6_static_route_2': {'addr_status': 'INACTIVE',
                                 'ipv6_dest': '::',
                                 'ipv6_gateway': '::',
                                 'prefixlen': 0},
         'ipv6_static_route_3': {'addr_status': 'INACTIVE',
                                 'ipv6_dest': '::',
                                 'ipv6_gateway': '::',
                                 'prefixlen': 0},
         'ipv6_ter_dns_server': '::',
         'mac_address': '9c:b6:54:8e:4b:7c',
         'nic_speed': 'Automatic',
         'ping_gateway': True,
         'prim_dns_server': '10.42.128.1',
         'prim_wins_server': '0.0.0.0',
         'reg_ddns_server': True,
         'reg_wins_server': True,
         'sec_dns_server': '0.0.0.0',
         'sec_wins_server': '0.0.0.0',
         'sntp_server1': '10.42.128.1',
         'sntp_server2': '10.42.128.2',
         'speed_autoselect': True,
         'static_route_1': {'dest': '0.0.0.0',
                            'gateway': '0.0.0.0',
                            'mask': '0.0.0.0'},
         'static_route_2': {'dest': '0.0.0.0',
                            'gateway': '0.0.0.0',
                            'mask': '0.0.0.0'},
         'static_route_3': {'dest': '0.0.0.0',
                            'gateway': '0.0.0.0',
                            'mask': '0.0.0.0'},
         'subnet_mask': '255.255.255.0',
         'ter_dns_server': '0.0.0.0',
         'timezone': 'Atlantic/Reykjavik'}

  `mod_network_settings`(enable_nic=None, reg_ddns_server=None, ping_gateway=None, dhcp_domain_name=None, speed_autoselect=None, nic_speed=None, full_duplex=None, dhcp_enable=None, ip_address=None, subnet_mask=None, gateway_ip_address=None, dns_name=None, domain_name=None, dhcp_gateway=None, dhcp_dns_server=None, dhcp_wins_server=None, dhcp_static_route=None, reg_wins_server=None, prim_dns_server=None, sec_dns_server=None, ter_dns_server=None, prim_wins_server=None, sec_wins_server=None, static_route_1=None, static_route_2=None, static_route_3=None, dhcp_sntp_settings=None, sntp_server1=None, sntp_server2=None, timezone=None, enclosure_ip_enable=None, web_agent_ip_address=None, shared_network_port=None, vlan_enabled=None, vlan_id=None, shared_network_port_vlan=None, shared_network_port_vlan_id=None, ipv6_address=None, ipv6_static_route_1=None, ipv6_static_route_2=None, ipv6_static_route_3=None, ipv6_prim_dns_server=None, ipv6_sec_dns_server=None, ipv6_ter_dns_server=None, ipv6_default_gateway=None, ipv6_preferred_protocol=None, ipv6_addr_autocfg=None, ipv6_reg_ddns_server=None, dhcpv6_dns_server=None, dhcpv6_rapid_commit=None, dhcpv6_stateful_enable=None, dhcpv6_stateless_enable=None, dhcpv6_sntp_settings=None, dhcpv6_domain_name=None, ilo_nic_auto_select=None, ilo_nic_auto_snp_scan=None, ilo_nic_auto_delay=None, ilo_nic_fail_over=None, gratuitous_arp=None, ilo_nic_fail_over_delay=None)

    Configure the network settings for the iLO card. The static route arguments require dicts as arguments. The necessary keys in these dicts are dest, gateway and mask all in dotted-quad form