Skip to content

add network

Mason J. Katz edited this page Dec 15, 2015 · 1 revision

add network

Usage

stack add network {name} {subnet} {netmask} [dnszone=string] [mtu=string] [netmask=string] [servedns=boolean] [subnet=string]

Description

Add a network to the database. By default both the "public" and "private" networks are already defined by Rocks.

Arguments

  • {name}

    Name of the new network.

  • {subnet}

    The IP network address for the new network.

  • {netmask}

    The IP network mask for the new network.

Parameters

  • [dnszone=string]

    The Domain name or the DNS Zone name to use for all hosts of this particular subnet. Default is set to the name of the subnet

  • [mtu=string]

    The MTU for the new network. Default is 1500.

  • [netmask=string]

    Can be used in place of the netmask argument.

  • [servedns=boolean]

    Parameter to decide whether this zone will be served by the nameserver on the frontend.

  • [subnet=string]

    Can be used in place of the subnet argument.

Examples

  • stack add network optiputer 192.168.1.0 255.255.255.0

    Adds the optiputer network address of 192.168.1.0/255.255.255.0.

  • stack add network optiputer subnet=192.168.1.0 netmask=255.255.255.0 mtu=9000 dnszone="optiputer.net" servedns=true

    Same as above, but set the MTU to 9000.

Clone this wiki locally