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可以跨交换机通信

  • 相关阅读:
    曾经拥有,今生无悔
    WinRAR 4.20 beta2 key!注册文件 注册码
    加谁的QQ,并聊天‘
    自己读c
    字符串和字符数组做函数参数是的区别,
    数组
    *p和++对p的影响和对*p的影响
    字符串赋给指针
    memset函数,还没看2013.12.19
    strtock函数小结。
  • 原文地址:https://www.cnblogs.com/wuhaohao/p/9178434.html
Copyright © 2011-2022 走看看