github.com/turtlemonvh/terraform@v0.6.9-0.20151204001754-8e40b6b855e8/website/source/docs/providers/vcd/r/network.html.markdown (about) 1 --- 2 layout: "vcd" 3 page_title: "vCloudDirector: vcd_network" 4 sidebar_current: "docs-vcd-resource-network" 5 description: |- 6 Provides a vCloud Director VDC Network. This can be used to create, modify, and delete internal networks for vApps to connect. 7 --- 8 9 # vcd\_network 10 11 Provides a vCloud Director VDC Network. This can be used to create, 12 modify, and delete internal networks for vApps to connect. 13 14 ## Example Usage 15 16 ``` 17 resource "vcd_network" "net" { 18 name = "my-net" 19 edge_gateway = "Edge Gateway Name" 20 gateway = "10.10.0.1" 21 22 dhcp_pool { 23 start_address = "10.10.0.2" 24 end_address = "10.10.0.100" 25 } 26 27 static_ip_pool { 28 start_address = "10.10.0.152" 29 end_address = "10.10.0.254" 30 } 31 32 } 33 ``` 34 35 ## Argument Reference 36 37 The following arguments are supported: 38 39 * `name` - (Required) A unique name for the network 40 * `edge_gateway` - (Required) The name of the edge gateway 41 * `netmask` - (Optional) The netmask for the new network. Defaults to `255.255.255.0` 42 * `gateway` (Required) The gateway for this network 43 * `dns1` - (Optional) First DNS server to use. Defaults to `8.8.8.8` 44 * `dns2` - (Optional) Second DNS server to use. Defaults to `8.8.4.4` 45 * `dns_suffix` - (Optional) A FQDN for the virtual machines on this network 46 * `dhcp_pool` - (Optional) A range of IPs to issue to virtual machines that don't 47 have a static IP; see [IP Pools](#ip-pools) below for details. 48 * `static_ip_pool` - (Optional) A range of IPs permitted to be used as static IPs for 49 virtual machines; see [IP Pools](#ip-pools) below for details. 50 51 <a id="ip-pools"></a> 52 ## IP Pools 53 54 Network interfaces support the following attributes: 55 56 * `start_address` - (Required) The first address in the IP Range 57 * `end_address` - (Required) The final address in the IP Range