你好,游客 登录 注册 搜索
背景:
阅读新闻

网络高可用性在企业网中的应用

[日期:2012-09-15] 来源:51cto  作者:sf418 [字体:大 中 小]

3、方案:链路捆绑:

现在为了增加两台机器之间的带宽,我们可以用端口绑定的方法来实现:

具体配置如下:

配置R1:

[R1]int eth 0

[R1-Ethernet0]ip add 192.168.4.1 24   给eth0端口配置ip

[R1-Ethernet0]quit

[R1]int virtual 10                   创建虚拟接口模版10;

[R1-Virtual-Template10]ip add 192.168.6.2 24  为虚拟接口配置ip 地址

[R1-Virtual-Template10]quit

[R1]int s0                  进入s0端口

R1-Serial0]ppp mp  int virtual 10   将该接口绑定到虚拟接口上

[R1-Serial0]int s1           进入S1端口

[R1-Serial1]ppp mp int virtual 10    将该接口绑定到虚拟接口上

[R1-Serial1]ppp mp    开启该端口绑定功能

[R1-Serial1]int s0

[R1-Serial0]ppp mp  开启多路绑定

[R1-Serial0]quit

[R1]ospf enable      打开ospf协议

[R1]int vir 10        进入虚拟端口

[R1-Virtual-Template10]ospf enable area 0    把该虚拟端口加入到ospf的0区域

R0的配置:

[R0]int eth 0

[R0-Ethernet0]ip add 192.168.1.1 24   给eth0端口配置ip

[R0-Ethernet0]quit

[R0]int virtual 10                  进入虚拟端口

[R0-Virtual-Template10]ip add 192.168.6.1 24    配置虚拟地址

[R0-Virtual-Template10]quit

[R0]int s0

[R0-Serial0]ppp mp     开启该端口的多路绑定

[R0-Serial0]ppp mp int virtual 10   把该端口绑定到虚拟链路中

[R0-Serial0]int s1

[R0-Serial1]ppp mp       开启s1端口的多链路绑定

[R0-Serial1]ppp mp int virtual 10    绑定到虚拟链路中

[R0-Serial1]quit

[R0]ospf enable                打开ospf协议

  Start OSPF task...

  OSPF enabled

[R0-ospf]int virtual 10 

[R0-Virtual-Template10]ospf enable area 0   把虚拟接口加入到区域0

[R0-Virtual-Template10]quit

[R0]dis cu

  Now create configuration...

  Current configuration

  !

    version 1.74

    local-user user1 service-type administrator password simple 123

    sysname R0

    firewall enable

    aaa-enable

    aaa accounting-scheme optional

  !

  interface Aux0

    async mode flow

    link-protocol ppp

  !

  interface Ethernet0

    ip address 192.168.1.1 255.255.255.0

  !

  interface Ethernet1

  !

  interface Serial0

    clock DTECLK1

    link-protocol ppp

    ppp mp

    ppp mp interface Virtual-Template10 

  !

  interface Serial1

    link-protocol ppp

    ppp mp

    ppp mp interface Virtual-Template10

  !

  interface Virtual-Template10

    link-protocol ppp

    ip address 192.168.6.1 255.255.255.0

    ospf enable area 0.0.0.0

  !

  quit

  ospf enable

  !

  quit

  !

  Return

查看其通信结果:

linux
相关资讯       高可用  网络高可用 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款