#!/bin/bash
#author:
#date:2015-6-13
#filename:ip.sh
#############################
ifconfig_cmd=`whichifconfig`
$ifconfig_cmd>ifconfig.me
###################################
functionobtain_ip_information(){
ifgrep-q‘bond‘ifconfig.me
then
bond_name=`catif..
                            
                            
                                分类:
系统相关   时间:
2015-06-14 00:43:11   
                                阅读次数:
222
                             
                    
                        
                            
                            
                                这道题我们可以采用广度优先搜索的办法,在我看来实现起来要比深搜更好一些核心算法写为了bfs()函数 = =#include #include using namespace std;typedef struct{ int x; int y;}location;int n, dis;loc...
                            
                            
                                分类:
其他好文   时间:
2015-06-09 23:29:50   
                                阅读次数:
118
                             
                    
                        
                            
                            
                                1 边界和湖心小岛分别算一个节点,连接所有距离小于D的鳄鱼,时间复杂度O(N2)
2 判断每个连通图的节点中是否包含边界和湖心小岛,是则Yes否则No
3 冗长混乱的函数参数
#include 
#include 
#include 
#include 
using namespace std;
struct Coordinate
{
    float x;
    float...
                            
                            
                                分类:
其他好文   时间:
2015-06-03 09:52:39   
                                阅读次数:
147
                             
                    
                        
                            
                            
                                场景:前提,交换机的配置由网络工程师配合!1、跨交换机做bond,模式为LACP,linux双网卡做bond4,模式为4;2、系统为centos7.0-123;3、服务器仅有两张万兆网卡,为eth0、eth1;4、网络用途:管理网172.168.16.0/24、存储网10.10.10.0/24;5、...
                            
                            
                                分类:
其他好文   时间:
2015-06-01 18:10:11   
                                阅读次数:
769
                             
                    
                        
                            
                            
                                Saving James Bond - Easy VersionAssume that the lake is a 100 by 100 square one. Assume that the center of the lake is at (0,0) and the northeast corn...
                            
                            
                                分类:
其他好文   时间:
2015-05-28 15:48:22   
                                阅读次数:
167
                             
                    
                        
                            
                            
                                在XenServer安装期间,系统会为每个物理网络接口卡(NIC)创建一个网络。向资源池添加服务器时,这些默认网络会进行合并,以便设备名称相同的所有物理NIC均连接到同一网络。通常情况下,如果您想要创建内部网络,使用现有NIC设置新VLAN,或创建NIC绑定,只需添加一个新网络即可。..
                            
                            
                                分类:
其他好文   时间:
2015-05-10 01:08:18   
                                阅读次数:
315
                             
                    
                        
                            
                            
                                X86服务器,在对eth2和eth3做了bond后,在bond0上配置了地址,去掉独立网卡eth4上配置的原地址的网关后通过servicenetworkrestart就提示标题的错误了而实际通过ethtool检测到eth2和eth3都确实接线没问题,因此,问题的原因可能在NetworkManager上面,于是执行了以下命令chkconf..
                            
                            
                                分类:
Web程序   时间:
2015-05-07 17:03:26   
                                阅读次数:
185
                             
                    
                        
                            
                            
                                在给XenServer配置网卡bonding时,需要在所有节点都添加到集群之后再进行,这也是来自Citrix的建议:“Citrix 
recommends never joining
 a host that already has a bond configured
 on it to a pool”。用XenCenter连接XenServer
集群,通过界面操作对网卡进行bonding...
                            
                            
                                分类:
其他好文   时间:
2015-05-06 09:19:10   
                                阅读次数:
260
                             
                    
                        
                            
                            
                                一、网卡绑定:1:创建一个ifcfg-bond0#cd/etc/sysconfig/network-scripts/#viifcfg-bond0DEVICE=bond0TYPE=EthernetONBOOT=yesBOOTPROTO=staticIPADDR=10.5.20.13NETMASK=255.255.252.0GATEWAY=10.5.20.253BONDING_OPTS="mode=0miimon=100"##mode有多种模式实现不同的功能2:..
                            
                            
                                分类:
系统相关   时间:
2015-04-27 15:34:17   
                                阅读次数:
170