Warning: Undefined array key "cperpage" in /www/wwwroot/www.now163.com/wp-content/themes/twentytwentyfive/functions.php on line 255

Warning: Undefined variable $output in /www/wwwroot/www.now163.com/wp-content/themes/twentytwentyfive/functions.php on line 325

Warning: Undefined variable $fixed_tags in /www/wwwroot/www.now163.com/wp-content/themes/twentytwentyfive/functions.php on line 326

Warning: Undefined variable $isshowdots in /www/wwwroot/www.now163.com/wp-content/themes/twentytwentyfive/functions.php on line 327

Warning: Undefined variable $tag_aditional in /www/wwwroot/www.now163.com/wp-content/themes/twentytwentyfive/functions.php on line 330

Warning: Undefined variable $tag_aditional in /www/wwwroot/www.now163.com/wp-content/themes/twentytwentyfive/functions.php on line 333

Warning: Undefined variable $tag_aditional in /www/wwwroot/www.now163.com/wp-content/themes/twentytwentyfive/functions.php on line 336

Warning: Undefined variable $post in /www/wwwroot/www.now163.com/wp-content/themes/twentytwentyfive/functions.php on line 345

Warning: Attempt to read property "ID" on null in /www/wwwroot/www.now163.com/wp-content/themes/twentytwentyfive/functions.php on line 345

Warning: Undefined variable $post in /www/wwwroot/www.now163.com/wp-content/themes/twentytwentyfive/functions.php on line 345

Warning: Attempt to read property "ID" on null in /www/wwwroot/www.now163.com/wp-content/themes/twentytwentyfive/functions.php on line 345

Warning: Undefined variable $more_text_link in /www/wwwroot/www.now163.com/wp-content/themes/twentytwentyfive/functions.php on line 345
未分类 – 理想社会

分类: 未分类

  • Cisco交换机里IP和MAC地址互查找出对应端口

    交换机:Cisco2960、Cisco G3560X

    服务器:10.15.44.164 AC-*-2D-*-84-*

    PC:10.15.44.69

    服务器44.164→port 2-Cisco2960-port1→G3560X-port5

    通过IP地址查找这个IP在那台交换机的接口下

     

    通过MAC、IP地址查询对应交换机端口

    1.开始运行Nbtstat –a ip 查询出mac地址

    或者直接到G3560X交换机上通过show arp查找mac地址

    没发现对应关系是ARP信息超时了就被删除,ARP和MAC两张表的超时清理时间是不一样的,可以先到交换机上去ping下该IP地址在show arp

    2.登陆G3560x

    运行Switch#show mac address-table dynamic address AC-*-2D-*-84-*

    可以看到mac地址为AC-*-2D-*-84-*连接G3560X交换机的端口是port5

    3. 根据GigabitEthernet0/5查询该接口对接的设备

    运行Switch#SHOw cdp neighbors gigabitEthernet 0/5

    显示更详细的信息:Switch#SHOw cdp neighbors gigabitEthernet 0/5 detail

    可以看到G0/5对接的设备是Cisco2960交换机的fas0/1端口

    4.登陆Cisco2960,

    运行cisco2960-sh-10-4-4#show mac address-table dynamic address AC-*-2D-*-84-*

    可以看到mac地址为AC-*-2D-*-84-*连接C2960交换机的端口是port9

    5.确认该mac是否是这个端口唯一活动mac地址

    运行cisco2960-sh-10-4-4#show mac address-table dynamic interface gigabitEthernet 0/9

    只显示一条,表明10.15.44.164就是连接到C2960交换机的9口;若有多条结果表明C2960 port9下接的还有其他路由交换设备,重复以上步骤查找

     

    通过交换机端口地址查询对应服务器IP

    上面通过IP查到了所连交换机对应的端口,下面通过交换机端口查询连接的是那台服务器,环境还是如上

    查看C3650X port11对应连接的是哪台服务器,步骤和上面类似,逆推

    1、查看C3650X port11查接口对接的设备mac地址

     

    运行Switch#show mac address-table dynamic interface gigabitEthernet 0/11

     

     

    1、通过mac地址查看对应IP

    运行show arp | include mac_address

    ARP和MAC两张表的超时清理时间是不一样的。使用Switch#clear arp-cache 可以清除arp信息表,使用Switch#show interfaces gigabitEthernet 0/11可以查看arp刷新时间  ARP type: ARPA, ARP Timeout 04:00:00;没发现对应关系是ARP信息超时了就被删除,如何刷新arp表有知道的大神请指教!

    本文出自 “我本不是菜鸟” 博客,请务必保留此出处http://pvbutler.blog.51cto.com/7662323/1748384

  • 为Exchange2013申请并添加公网证书

    Let’s Encrypt提供3个月有效期的证书。可以一次申请多个域名,也可以直接申请泛域名。这里我们选择申请多个域名的证书。

    1、申请地址:https://freessl.org/  选择多域名,并填写需要申请的域名。

    2、输入联系邮箱,证书类型选择RSA。ECC证书导入到Exchange2013后,在ecp里面看不到,不知为何。。

    3、按照提示修改DNS的txt记录。等1分钟生效后,进行认证。即可生成证书。

    4、签发的证书是PEM格式。而Exchange导入需要PFX格式。我们访问https://csr.chinassl.net/convert-ssl.html进行格式转换。

    上传对应的证书文件和私钥。设置一个PFX密码。最好填写一个证书别名。否则导入到Exchange2013中标题一栏会显示空白内容。

    5、把转换成PFX的证书文件放到Exchange服务器的一个共享文件夹中,添加证书需要使用网络路径。打开ECP-服务器-证书-更多-导入Exchange证书。

    填写网络证书的网络路径和上一步设置的PFX证书密码,下一步选择对应的Exchange服务器。

     

    6、可以在证书栏里看到刚刚导入的证书。双击证书,选择服务选项卡,分配证书服务,勾选SMTP、IMAP、POP、IIS

    7、打开OWA检测一下,已经有绿色小锁头了。

     

  • imapsync.exe

    https://fedorahosted.org/released/imapsync/