zoukankan      html  css  js  c++  java
  • 配置VLAN

    SW1

    Switch>en
    Switch#conf t
    Enter configuration commands, one per line.  End with CNTL/Z.
    
    Switch(config)#hostname R1
    
    R1(config)#line console 0
    
    R1(config-line)#logging synchronous 
    
    R1(config-line)#exec-timeout 00
    R1(config-line)#end
    
    R1#conf t
    Enter configuration commands, one per line.  End with CNTL/Z.
    R1(config)#vlan 2
    R1(config-vlan)#name caiwu
    
    R1(config-vlan)#vlan 3
    R1(config-vlan)#name it
    R1(config-vlan)#end
     
    R1(config)#interface range fastEthernet 0/1-2
    
    R1(config-if-range)#switchport mode access 
    
    R1(config-if-range)#switchport access vlan 2
    R1(config-if-range)#exit
    
    R1(config)#interface range fastEthernet 0/3-5
    
    R1(config-if-range)#switchport mode access 
    
    R1(config-if-range)#switchport access vlan 3
    R1(config-if-range)#exit
    R1(config)#end
    R1#
    %SYS-5-CONFIG_I: Configured from console by console
    
    R1#show vlan brief 
    
    VLAN Name                             Status    Ports
    ---- -------------------------------- --------- -------------------------------
    1    default                          active    Fa0/6, Fa0/7, Fa0/8, Fa0/9
                                                    Fa0/10, Fa0/11, Fa0/12, Fa0/13
                                                    Fa0/14, Fa0/15, Fa0/16, Fa0/17
                                                    Fa0/18, Fa0/19, Fa0/20, Fa0/21
                                                    Fa0/22, Fa0/23, Fa0/24, Gig0/1
                                                    Gig0/2
    2    caiwu                            active    Fa0/1, Fa0/2
    3    it                               active    Fa0/3, Fa0/4, Fa0/5
    1002 fddi-default                     active    
    1003 token-ring-default               active    
    1004 fddinet-default                  active    
    1005 trnet-default                    active    
    R1#
  • 相关阅读:
    [Leetcode]279.完全平方数
    map处理数组 替换item的值
    Immutable数据详解 merge方法及其原理解释
    dev-server的mock配置
    react 国际化 react-i18next
    import * as xxx from 'xxx'
    http-server测试本地打包程序是否有问题
    git 操作
    react hook 官方文档阅读笔记
    吐槽下百度搜索引擎的权重问题
  • 原文地址:https://www.cnblogs.com/peter1007/p/9397172.html
Copyright © 2011-2022 走看看