Solaris alias src L2/L3

В Solaris большое значение имеет то, на каком уровне модели OSI используется объект: если бы создан отдельный интерфейс (L2) и на него назначены IP алиасы или просто назначены IP алиасы на существующие интерфейсы.

L2

       usesrc (IP, IPMP)

           Specifies  a  physical  or  virtual interface to be used for source address selection. If the keyword none is used, then  any  previous selection is cleared. Default is none.

# ipadm show-ifprop -p usesrc vrrp13
IFNAME      PROPERTY        PROTO PERM CURRENT    PERSISTENT DEFAULT    POSSIBLE
vrrp13      usesrc          ipv4  rw   none       --         none       --
vrrp13      usesrc          ipv6  rw   none       --         none       --
# ipadm set-ifprop -p usesrc=net0 -m ipv4 vrrp13
# ipadm show-ifprop -p usesrc vrrp13
IFNAME      PROPERTY        PROTO PERM CURRENT    PERSISTENT DEFAULT    POSSIBLE
vrrp13      usesrc          ipv4  rw   net0       net0       none       --
vrrp13      usesrc          ipv6  rw   none       --         none       --

L3

       deprecated (DHCP, Static, Addrconf, VRRP)

           The address should no longer used as a source address in new communications,  but  packets addressed to this address are processed as expected. Possible values are on or off. Default is off. This property is not supported on an address object of type dhcp.

# ipadm show-addrprop -p deprecated net0/v4
ADDROBJ     PROPERTY         PERM CURRENT         PERSISTENT      DEFAULT         POSSIBLE
net0/v4     deprecated       rw   off              off              off             on,off
# ipadm set-addrprop -p deprecated=on net0/v4
# ipadm show-addrprop -p deprecated net0/v4
ADDROBJ     PROPERTY         PERM CURRENT         PERSISTENT      DEFAULT         POSSIBLE
net0/v4     deprecated       rw   on              on              off             on,off

Добавить комментарий

Ваш e-mail не будет опубликован. Обязательные поля помечены *