def get_network(ip, netmask):
    """Get network address from ip and netmask"""
    ip_octets = ip.split('.')
    nm_octets = netmask.split('.')
    return '.'.join(
        [str(int(ip_octets[x]) & int(nm_octets[x])) for x in range(0,4)]
    )