zoukankan      html  css  js  c++  java
  • 交换机基础配置之结合以太通道的vlan设置

    我们将以上面的拓扑图来做实验,建立以太通道,并设置好vlan,将pc1和pc3放在同一vlan,将pc2和pc4放在同一vlan,同一vlan能跨交换机通信

    在一切还没布置之前,四台pc机都在同一网段,都是可以互相通信的

    先给pc机都配置好ip地址

    配置switch1

    enable  进入特权模式

    configure terminal  进入全局配置模式

    interface port-channel 2  设置并创建以太通道,二层交换机的组号为1-6,三层为1-48

    switchport mode dynamic desirable

    exit

    port-channel load-balance?(?可以告诉你选项的作用)这里会出现6种选项,是实现以太通道负载均衡的方式

    port-channel load-balance dst-mac  选择以目标mac地址的方式实现负载均衡

    vlan 10  创建好vlan

    vlan 20

    interface f0/3

    channel-group 2 mode on

    exit

    interface f0/4

    channel-group 2 mode on

    exit

    interface f0/1

    switchport mode access

    switchport access vlan 10  

    exit

    interface f0/2

    switchport mode access

    switchport access vlan 20

    exit

    interface port-channel 2

    switchport mode trunk  设置vlan的中继

    接下里在switch2中进行配置

    enable  

    configure terminal  

    interface port-channel 2  

    switchport mode dynamic desirable

    exit

    port-channel load-balance dst-mac  

    vlan 10  创建好vlan

    vlan 20

    interface f0/1

    channel-group 2 mode on

    exit

    interface f0/2

    channel-group 2 mode on

    exit

    interface f0/3

    switchport mode access

    switchport access vlan 10  

    exit

    interface f0/4

    switchport mode access

    switchport access vlan 20

    exit

    interface port-channel 2

    switchport mode trunk 

    这样配置就全部完成了,以太通道搭建完毕,同时完成了负载均衡,并且同vlan可以跨交换机通信

  • 相关阅读:
    实现Bootstrap表格拖拽
    鼠标悬停显示气泡
    JS实现当前选择日期是星期几
    JS实现双击编辑可修改
    数组累计-reduce
    vuex——action,mutation,getters的调用
    正则 二
    常用正则 一
    vuex 的使用 mapState, mapGetters, mapMutations, mapActions
    正则替换所有的 ‘ / ’
  • 原文地址:https://www.cnblogs.com/wuhaohao/p/9178434.html
Copyright © 2011-2022 走看看