Create and manage Network Interfaces
Requirements
Section titled “Requirements”- You have a Virtual Network: Create and manage Virtual Networks
Create a Network Interface
Section titled “Create a Network Interface”| Flag | Meaning | Example |
|---|---|---|
| network-id | The ID of the network the adapter will be created in | e4e87b01-17c0-4c38-a1b0-465dd625ea7b |
| allowed-addresses | Comma-separated list of allowed IP addresses | ”192.168.10.7,192.168.10.9” |
| security-groups | Comma-separated list of attached Security Groups | ”b7834d09-352f-447e-bcb1-877aac3bdebe,e877a108-5a58-414f-9061-460723cba8af” |
| name | Friendly name of the interface | my-new-interface |
| labels | Associated labels | key=value,key2=value2 |
| ipv4 | IPv4 address of the adapter | ”192.168.10.7” |
| ipv6 | IPv6 address of the adapter | ”2001:0DB8:130F:0000:0000:09C0:876A:130B” |
| nic-security | Whether NIC security should be on or off | - |
Furthermore the optional flag --nic-security enables you to turn network interface security on. Per default it is disabled.
stackit network-interface create --network-id [network-id] --allowed-addresses [allowed-addresses] --nic-security --security-groups [security-groups] --name [name] --labels [labels] --ipv4 [ipv4] --ipv6 [ipv6]List and describe Network Interfaces
Section titled “List and describe Network Interfaces”| Flag | Meaning | Example |
|---|---|---|
| network-id | The ID of the network the adapter will be created in | e4e87b01-17c0-4c38-a1b0-465dd625ea7b |
List Network Interfaces
Section titled “List Network Interfaces”stackit network-interface list --network-id [NetworkID]| Flag | Meaning | Example |
|---|---|---|
| network-id | The ID of the network the adapter will be created in | e4e87b01-17c0-4c38-a1b0-465dd625ea7b |
| network-interface-id | The ID of the network interface | 836a26fc-4f12-4c38-a1b0-465dd625ea7b |
Describe a Network Interface
Section titled “Describe a Network Interface”stackit network-interface describe [network-interface-id] --network-id [network-id]Delete Network Interfaces
Section titled “Delete Network Interfaces”| Flag | Meaning | Example |
|---|---|---|
| network-id | The ID of the network the adapter will be created in | e4e87b01-17c0-4c38-a1b0-465dd625ea7b |
| network-interface-id | The ID of the network interface | 836a26fc-4f12-4c38-a1b0-465dd625ea7b |
Describe a Network Interface
Section titled “Describe a Network Interface”stackit network-interface delete [network-interface-id] --network-id [network-id]