2.72. hammer subnet
サブネットを操作します。
Usage: hammer subnet [OPTIONS] SUBCOMMAND [ARG] ... Parameters: SUBCOMMAND Subcommand [ARG] ... Subcommand arguments Subcommands: create Create a subnet delete Delete a subnet delete-parameter Delete parameter for a subnet info Show a subnet list List of subnets set-parameter Create or update parameter for a subnet update Update a subnet Options: -h, --help Print help
2.72.1. hammer subnet create
サブネットを作成します。
Usage: hammer subnet create [OPTIONS] Options: --boot-mode BOOT_MODE Default boot mode for interfaces assigned to this subnet. Possible value(s): 'Static', 'DHCP' --description DESCRIPTION Subnet description --dhcp DHCP_NAME DHCP Proxy to use within this subnet --dhcp-id DHCP_ID DHCP Capsule ID to use within this subnet --discovery-id DISCOVERY_ID ID of Discovery Capsule to use within this subnet for managing connection To discovered hosts --dns DNS_NAME DNS Proxy to use within this subnet --dns-id DNS_ID DNS Capsule ID to use within this subnet --dns-primary DNS_PRIMARY Primary DNS for this subnet --dns-secondary DNS_SECONDARY Secondary DNS for this subnet --domain-ids DOMAIN_IDS Domains in which this subnet is part Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for complex parameters --domains DOMAIN_NAMES Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for complex parameters --from FROM Starting IP Address for IP auto suggestion --gateway GATEWAY Subnet gateway --httpboot-id HTTPBOOT_ID HTTPBoot Capsule ID to use within this subnet --ipam IPAM IP Address auto suggestion mode for this subnet. Possible value(s): 'DHCP', 'Internal DB', 'Random DB', 'EUI-64', 'None' --location LOCATION_NAME Location name --location-id LOCATION_ID --location-ids LOCATION_IDS REPLACE locations with given ids Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for complex parameters --location-title LOCATION_TITLE Location title --location-titles LOCATION_TITLES Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for complex parameters --locations LOCATION_NAMES Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for complex parameters --mask MASK Netmask for this subnet --mtu MTU MTU for this subnet --name NAME Subnet name --network NETWORK Subnet network --network-type NETWORK_TYPE Type or protocol, IPv4 or IPv6, defaults to IPv4 Possible value(s): 'IPv4', 'IPv6' --organization ORGANIZATION_NAME Organization name --organization-id ORGANIZATION_ID Organization ID --organization-ids ORGANIZATION_IDS REPLACE organizations with given ids. Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for complex parameters --organization-title ORGANIZATION_TITLE Organization title --organization-titles ORGANIZATION_TITLES Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for complex parameters --organizations ORGANIZATION_NAMES Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for complex parameters --template-id TEMPLATE_ID Template HTTP(S) Capsule ID to use within this subnet --tftp TFTP_NAME TFTP Proxy to use within this subnet --tftp-id TFTP_ID TFTP Capsule ID to use within this subnet --to TO Ending IP Address for IP auto suggestion --vlanid VLANID VLAN ID for this subnet -h, --help Print help