Отключить прокрутку в терминале Xfce / Избежать прокрутки истории команд

В зависимости от зоны и версии Solaris вам может потребоваться указать сеть разными способами. Используя общий сетевой интерфейс, ОС зоны не нужно знать о конфигурации сети, потому что она общая с глобальной зоной. Таким образом, фактически ваши сети будут определены в глобальной зоне, а вы просто укажете IP в конфигурации zonecfg.

Если вы используете exclusive-IP (доступен в Solaris 11), то вам нужно вручную настроить ip внутри каждой зоны, так как они имеют отдельный IP стек.

schily упомянул, и довольно хорошо, что если сетевая маска не указана, то она берется из значений по умолчанию. Если вы посмотрите здесь, то найдете следующее:

netmask mask

For IPv4 only. Specify how much of the address to reserve for subdividing networks into subnetworks. The mask includes the network part of the local address and the subnet part, which is taken from the host field of the address. The mask contains 1's for the bit positions in the 32-bit address which are to be used for the network and subnet parts, and 0's for the host part. The mask should contain at least the standard network portion, and the subnet field should be contiguous with the network portion. The mask can be specified in one of four ways:

    with a single hexadecimal number with a leading 0x,

    with a dot-notation address,

    with a “+” (plus sign) address, or

    with a pseudo host name/pseudo network name found in the network database networks(4).

If a “+” (plus sign) is given for the netmask value, the mask is looked up in the netmasks(4) database. This lookup finds the longest matching netmask in the database by starting with the interface's IPv4 address as the key and iteratively masking off more and more low order bits of the address. This iterative lookup ensures that the netmasks(4) database can be used to specify the netmasks when variable length subnetmasks are used within a network number.

If a pseudo host name/pseudo network name is supplied as the netmask value, netmask data may be located in the hosts or networks database. Names are looked up by first using gethostbyname(3NSL). If not found there, the names are looked up in getnetbyname(3SOCKET). These interfaces may in turn use nsswitch.conf(4) to determine what data store(s) to use to fetch the actual value.

For both inet and inet6, the same information conveyed by mask can be specified as a prefix_length attached to the address parameter.

Дополнительно, Если вы используете общий адрес в конфигурации зоны и задаете ip, который не распознается через zonecfg, вы увидите следующее сообщение:

zone 'zone-shared-ip': warning: net0: no matching subnet found in netmasks(4): 10.0.2.150; using default of 255.0.0.0

5
24.04.2016, 23:59
0 ответов

Теги

Похожие вопросы