zoukankan      html  css  js  c++  java
  • cisco交换机配置实例

    Switch>
    Switch>en 进入特权模式
    Switchi#config 讲入全局配需模式
    Switch(config)#hostname 2ceng 改机名为2ceng
    2cenglconfig)#interface vian 1讲入VLAN1

    2ceng(config-if)#no shut 激活VLAN1
    2ceng(config-if)#exit 退出到全西配需模式
    2ceng(config)#interface vlan 2创建VLAN2
    2ceng(config-if)#no shut 激活VLAN2
    2ceng(config-if)#exit 退出到全局配置模式
    2ceng(config)#interface vlan 3 创建VLAN3
    2ceng(config-if)#no shut 激活VLAN3
    2ceng(config-if)#ip address 192.168.3.254255.255.255.配器192.168.3.254为2ceng管理IP
    2ceng(config-if)#exit 退出到全局配置模式
    2ceng(config)#interface range fa0/1-12 进入端口1-12
    2ceng(config-if-range)l#switchport mode access将1-12口设需为交换口
    2ceng(config-if-range)#switch access vlan 1将1-12口划分到VLAN1
    2ceng(config-if-range)#exit 退出到全局配器模式
    2ceng(config)#interface range fa0/13-23 讲入至端口13-23
    2ceng(config-if-range)#switch access vlan 2将13-23口划分到VLAN2
    2ceng(config-if-range)#exit 退出到全局配器模式
    2ceng(config)#interface fastEthernet 0/24 讲入24口
    2ceng(config-if)#switch mode trunk将24口设置为干线
    2ceng(config-if)#exit 退出到全局配需模式
    2cenglconfig)#enable secret cisco 设置加密的特权密码 cisco
    2ceng(config)#line vty 0 4
    2ceng(config-line)#password telnet 设置远程登陆密码为telnet

    2ceng(config-line)#login
    2ceng(config-line)#exit
    2ceng(config)#ip default-gateway 192.168.3.1
    2ceng(config)#exit
    2ceng#wr 保存酉配器
    Building configuration..…
    [OK]
    三层(或多层)交换机配需实例:
    Switch>
    Switch>en
    Switch#config
    Configuring from terminal,memory,or network[terminal]?
    Enter configuration commands,one per lineEnd with CNTL/Z.
    Switch(config)#hostname 3ceng
    3ceng(config)#interface vlan 1
    3ceng(config-if)#no shut
    3ceng(config-if)#exit
    3ceng(config)#interface vlan 2
    3ceng(config-if)#no shut
    3ceng(config-if)#exit
    3ceng(config)#interface vlan 3
    3ceng(config-if)#no shut
    3cenglconfig-if)f#ip address 192.168.3.1255.255.255.0配置192.168.3.1为3ceng管理IP
    3cenglconfig-if)#description guanli描述 vlan3为管理
    3ceng(config-if)#exit

    3ceng(config)#interface range fa0/1-12
    3ceng(config-if-range)#switchport mode access
    3ceng(config-if-range)#switch access vlan 1
    3ceng(config-if-range)#exit
    3cenglconfig)#interface range fa0/13-24
    3ceng(config-if-range)#switch access vlan 2
    3ceng(config-if-range)#exit
    3ceng(config)#ip dhcp pool vlan1设置 VLAN1 DHCP
    3ceng(dhcp-config)#network 192.168.1.0 255.255.255.0设置DHCP的网段
    3ceng(dhcp-config)#dns-server 1.1.1.1设置VLAN1的DNS
    3ceng(dhcp-config)#default-router 192.168.1.1设器VLAN1的默认网关
    3ceng(dhcp-config)#exit
    3ceng(config)#ip dhcp pool vlan2
    3ceng(dhcp-config)#network 192.168.2.0 255.255.255.0
    3ceng(dhcp-config)#dns-server 2.2.2.2
    3ceng(dhcp-config)#default-router 192.168.2.1
    3ceng(config)#ip dhcp pool vlan3
    3ceng(dhcp-config)#network 192.168.3.0 255.255.255.0
    3ceng(dhcp-config)#dns-server 3.3.3.3
    3ceng(dhcp-config#default-router 192.168.3.1
    3ceng(config)#enable secret cisco
    3ceng(config)#line vty 0 4
    3ceng(config-line)#password teinet

    3ceng(config-line)#login
    3ceng(config-line)#exit
    3ceng(config)#ip routing启用路由
    3cenglconfig)#exit
    3ceng#wr
    Building configuration.…
    [OK]

  • 相关阅读:
    用wifi调试android程序
    【翻译】Ext JS 4.1的性能
    index range scan,index fast full scan,index skip scan发生的条件
    柱状图(Histogram),绑定变量,bind peeking,cursor_sharing 之间的关系1 柱状图
    柱状图(Histogram),绑定变量,bind peeking,cursor_sharing 之间的关系3 柱状图与cursor_sharing
    JNI开发入门
    索引的Clustering Factor
    索引选择性
    列定义允许null,可能导致Index Hint提升不走索引
    柱状图(Histogram),绑定变量,bind peeking,cursor_sharing 之间的关系2 绑定变量与柱状图
  • 原文地址:https://www.cnblogs.com/zhugq02/p/11168521.html
Copyright © 2011-2022 走看看