STANDBY 热备份 HSRP 热备份路由协议

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/pangzhaowen/article/details/80650467


ed4aca6c99960eac581bfbdd03534068.png-wh_


拓扑图如上,

     实验目的:1,实现各个不同网段的主机的联通

               2,动态演示下热备份的过程,vlan1和vlan 2主线路是左边主机,vlan3 和 vlan 4属于备份机,在正常情况下。

 

     实验步骤:1,先在交换机上建立vlan1,2,3,4,然后将vlan与交换机接口相关联,然后将端口f20,f21 trunk,   

                    vlan与接口关联这样实现:

                         inter fas0/1  进入接口

                         switch mode acc

                         sw acc vlan1

                2,在左边多层交换机上实现创建lvlan1,2,3,4,然后将端口trunk,然后给每个vlan一个网关IP,

                 inter vlan 1

                  ip add 192.168.1.1  255.255.255.0

                  exit

                 

                 将端口trunk:inter fas 0/20

                              sw tr enc dot

                              sw mo tr

 

                  3,在右边多层交换机上实现同样的操作,只是略有不同,在给vlan设置网关IP的时候,必须与左边的输入区别开,如下

                   inter vlan 1

                   ip add 192.168.1.2 255.255.255.0

                   exit

 

                   4,将左边的交换机上实现主机的操作,在右边实现备份机的操作

 

                    inter vlan 1

                     standby 1 ip 192.168.1.250  //设置虚拟网关

                     standby 1 priority 105      //将默认优先级调高5个点,默认100

                     standby 1 preempt    //开启抢占功能

                    

                     inter vlan 2

                     相同操作

                      inter vlan 3,inter vlan 4 

 

                  在右边备份机上操作如下  

                     inter vlan 3

                     standby 3 ip 192.168.3.2 255.255.255.0

                     standby 3 priority 105

                     standby 3 preempt

 

注意:

            1,别忘了要开启路由功能:ip routing

             2,要把每台PC的ip网关设置成上述实验的250,

展开阅读全文
博主设置当前文章不允许评论。

ORACLE备份

03-22

rem script:hotbak.sqlrnrem date:11.09.2008rnrem desc:backup all database datafile in archivernrn--connect databasern--connect internal/password;rnconnect / as sysdba;rnrn--archivernalter system archive log current;rn--startrnrnalter tablespace system begin backup;rnhost xcopy F:\oracle\oradata\oradb\system01.dbf f:\bak2/H/R;rnalter tablespace system end backup;rnrnalter tablespace cwmlite begin backup;rnhost xcopy F:\oracle\oradata\oradb\cwmlite01.dbf f:\bak2/H/R;rnalter tablespace cwmlite end backup;rnrnalter tablespace users begin backup;rnhost xcopy F:\oracle\oradata\oradb\users01.dbf f:\bak2/H/R;rnalter tablespace users end backup;rnrnalter tablespace tools begin backup;rnhost xcopy F:\oracle\oradata\oradb\tools01.dbf f:\bak2/H/R;rnalter tablespace tools end backup;rnrnalter tablespace indx begin backup;rnhost xcopy F:\oracle\oradata\oradb\indx01.dbf f:\bak2/H/R;rnalter tablespace indx end backup;rnrnalter tablespace example begin backup;rnhost xcopy F:\oracle\oradata\oradb\example01.dbf f:\bak2/H/R;rnalter tablespace example end backup;rnrnalter tablespace ts_test begin backup;rnhost xcopy F:\oracle\oradata\oradb\test01.dbf f:\bak2/H/R;rnalter tablespace ts_test end backup;rn--endrnrn--bak control filern--binaryrnalter database backup controlfile to 'f:\bak2\controlbinbak.000';rn--asciirnalter database backup controlfile to trace;rnalter system archive log current;rn这是网上找的热备份代码,使用的时候总是出错,显示host不可用。。请指出哪里出错了,环境是xp系统 oracle9i,如果谁有完整的热备份代码请给一份谢谢~~ 论坛

没有更多推荐了,返回首页