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

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

[role="_abstract"]
You can create a namespace to be used with an existing secondary cluster-scoped user-defined network (CUDN) by using the CLI.

.Prerequisites

* You are logged in to the cluster as a user with `cluster-admin` permissions.
* You have installed the {oc-first}.

.Procedure
. Create a `Namespace` object similar to the following example:
+
[source,yaml]
----
apiVersion: v1
kind: Namespace
metadata:
  name: red
# ...
----

. Apply the `Namespace` manifest by running the following command:
+
[source, terminal]
----
oc apply -f <filename>.yaml
----
+
where:
+
`<filename>`:: Specifies the name of your `Namespace` manifest YAML file.
