學術及資源的交流園地 ^_^

HTTPie

pluxbox

postmulti

最後更新: 2018-10-12

介紹

 

建立 Multi-instance 的 postfix, 每一個 instance 有獨立的 IP

version > 2.6

用圖:

* Outbound mail relay for a corporate network.

* 每一個 instance 都有自己的 configuration, queue and data directories.

 

debain gen sub-interface

 

Script

#!/bin/bash
# debain gen sub-interface

_ipstart="n"
_ipend="m"
_myip="o"

for (( _c=$_ipstart; _c<=$_ipend; _c++ ))
do
        echo "auto eth0:$_c"
        echo "iface eth0:$_c inet static"
        echo "        address $_myip.$_c"
        echo "        netmask 255.255.255.0"
        echo ""
done

P.S.

sub-interface 不能用 "." 的, 因為 "." 有特別意思

RSS feed