最後更新: 2018-10-12
介紹
建立 Multi-instance 的 postfix, 每一個 instance 有獨立的 IP
version > 2.6
用圖:
* Outbound mail relay for a corporate network.
* 每一個 instance 都有自己的 configuration, queue and data directories.
夢想家活一身, 學無限~ 夢不息, 心不倦~ |
|
學術及資源的交流園地 ^_^ postmulti由 datahunter 在 四, 15/08/2013 - 17:36 發表最後更新: 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由 datahunter 在 四, 15/08/2013 - 17:29 發表
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 不能用 "." 的, 因為 "." 有特別意思 »
|