// Module included in the following assemblies:
//
// * virt/vm_networking/virt-connecting-vm-to-primary-udn.adoc              

:_mod-docs-content-type: PROCEDURE                                    
[id="virt-creating-udn-namespace-web_{context}"]                                   
= Creating a namespace for user-defined networks by using the web console

[role="_abstract"]
You can create a namespace to be used with primary user-defined networks (UDNs) by using the {product-title} web console.

.Prerequisites
* Log in to the {product-title} web console as a user with `cluster-admin` permissions.


.Procedure
. From the *Administrator* perspective, click *Administration* -> *Namespaces*.

. Click *Create Namespace*.

. In the *Name* field, specify a name for the namespace. The name must consist of lower case alphanumeric characters or '-', and must start and end with an alphanumeric character.

. In the *Labels* field, add the `k8s.ovn.org/primary-user-defined-network` label.

. Optional: If the namespace is to be used with an existing cluster-scoped UDN, add the appropriate labels as defined in the `spec.namespaceSelector` field in the `ClusterUserDefinedNetwork` custom resource.

. Optional: Specify a default network policy.

. Click *Create* to create the namespace.
