Bo's Oracle Station

查看: 2303|回复: 0

课程第17/18次:2020-03-14星期六下午星期六晚上

[复制链接]

1005

主题

1469

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
12012
发表于 2020-3-14 14:14:10 | 显示全部楼层 |阅读模式

  1. #!/bin/sh
  2. sub_a() {
  3. while ip addr show | grep 192.168.0.104  &&   ip addr show | grep 172.31.118.104
  4. do
  5. sleep 1        
  6. done
  7. sleep 1
  8. nmcli con up "ens33"
  9. nmcli con up "team0"
  10. nmcli con up "team0-port1"
  11. nmcli con up "team0-port2"
  12. }

  13. while true
  14. do
  15. sub_a  
  16. done
复制代码


  1. #!/bin/sh
  2. sub_a()  {
  3. while ip addr show | grep 192.168.0.105  &&   ip addr show | grep 172.31.118.105
  4. do
  5.          sleep 1        
  6. done
  7. sleep 1
  8. nmcli con up "ens33"
  9. nmcli con up "team0"
  10. nmcli con up "team0-port1"
  11. nmcli con up "team0-port2"
  12. }

  13. while true
  14. do        
  15. sub_a
  16. done

复制代码






1.  CLASSROOM.EXASMPLE.COM 上面配POSTFIX 完整功能
1.1  标准MTA的日志:
Mar 14 15:38:15 classroom postfix/smtpd[52515]: connect from desktop41.example.com[192.168.0.41]
Mar 14 15:38:15 classroom postfix/smtpd[52515]: DCFBF3119ADD: client=desktop41.example.com[192.168.0.41]
Mar 14 15:38:15 classroom postfix/cleanup[52518]: DCFBF3119ADD: message-id=<202003141538147044455@example.com>
Mar 14 15:38:15 classroom postfix/qmgr[49679]: DCFBF3119ADD: from=<zhang3@example.com>, size=37531, nrcpt=1 (queue active)
Mar 14 15:38:16 classroom postfix/smtp[52519]: DCFBF3119ADD: to=<18950350376@189.cn>, relay=mta-189.21cn.com[183.61.185.69]:25, delay=1, delays=0.09/0.22/0.35/0.38, dsn=2.0.0, status=sent (250 Ok: queued as 8135F10065C)
Mar 14 15:38:16 classroom postfix/qmgr[49679]: DCFBF3119ADD: removed
Mar 14 15:38:17 classroom postfix/smtpd[52515]: disconnect from desktop41.example.com[192.168.0.41] ehlo=2 starttls=1 mail=1 rcpt=1 data=1 quit=1 commands=7

mail_arch.png
NULL CLIENT 转发的邮件,在classroom.example.com上面(/var/spool/mail/zhang3)表现成这样:
From thrump@whitehouse.gov  Sat Mar 14 21:31:46 2020
Return-Path: <thrump@whitehouse.gov>
X-Original-To: zhang3@example.com
Delivered-To: zhang3@example.com
Received: from server4.example.com (server4.example.com [192.168.0.104])
        by classroom.example.com (Postfix) with ESMTPS id D7C3336423DA
        for <zhang3@example.com>; Sat, 14 Mar 2020 21:31:46 +0800 (CST)
Received: from desktop4.example.com (desktop4.example.com [192.168.0.4])
        by server4.example.com (Postfix) with ESMTP id E2F9F53D3DE8
        for <zhang3@example.com>; Sat, 14 Mar 2020 21:31:45 +0800 (CST)
To: zhang3@example.com
From: Thrump <thrump@whitehouse.gov>
Subject: 10000
Message-ID: <2de8f87f-49fc-8db8-8707-50c7e5b9ce0b@whitehouse.gov>
Date: Sat, 14 Mar 2020 21:31:45 +0800
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
Thunderbird/60.5.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Content-Language: en-US




2. iSCSI环境的准备(
104849407-4096-2048*11+1)/11
9529343.90909
(9529343*512)/(1024*1024)
4652.99951





回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|Bo's Oracle Station   

GMT+8, 2024-11-21 19:49 , Processed in 0.045955 second(s), 27 queries .

快速回复 返回顶部 返回列表