zoukankan      html  css  js  c++  java
  • Cisco3.3.2.2

    switch(config)#int  vlan   VLAN号
    switch(config)# ip   add   地址   掩码

    ***********************************************

    interface FastEthernet0/1 (你的端口)

    switchport mode access (端口模式)
    switchport access vlan 10 (需要划入的vlan)

    **************************************************

    S1(config)#interface FastEthernet 0/1
    S1(config-if)#switchport mode trunk                //配置中继模式
    S1(config-if)#switchport trunk native vlan 99      //配置VLAN 99为本征VLAN  
    **************************************************

    配置 S2 上 Portfast 的 FastEthernet 0/11。
    S2(config)# interface FastEthernet 0/11
    S2(config-if)# spanning-tree portfast
    配置 BPDU 防护并返回到特权 EXEC 模式。
    S2(config-if)# spanning-tree bpduguard enable
    显示接口 f0/11 的当前配置过滤。
    S2# show running-config interface f0/11
    在 S1 上将 PortFast 配置为所有接口的默认值。
    S1(config)# spanning-tree portfast default
    将 BPDU 防护配置为 S1 上的默认值并返回特权 EXEC 模式。
    S1(config)# spanning-tree portfast bpduguard default
    将 S2 配置为 VLAN 1 的次根并返回特权 EXEC 模式。
    S2(config)# spanning-tree vlan 1 root secondary
    将 S1 配置为 VLAN 1 的主根并返回特权 EXEC 模式。
    S1(config)# spanning-tree vlan 1 root primary
    将 S3 上的 VLAN 1 的优先级配置为 24576 并返回特权 EXEC 模式。
    S3(config)# spanning-tree vlan 1 priority 24576
    显示 S1 上的当前生成树状态。
    S1# show spanning-tree
  • 相关阅读:
    D3.js 几种常用的坐标轴
    前端页面的用户体验优化设计
    用can-fixture拦截Ajax并模拟响应
    webpack入门及使用
    CommonJS和AMD规范
    凝思6.0虚拟机搭建--遇到的问题
    凝思6.0安装vmware tools记录
    linux定时任务crontab命令
    find命令使用指南
    关于字体、字形、字符集、字体大小
  • 原文地址:https://www.cnblogs.com/lskai/p/12718303.html
Copyright © 2011-2022 走看看