微信图片_20180517175355.png (81.11 KB, 下载次数: 0)

2018-5-17 17:55 上传

Switch 0

Switch>enable

Switch#show run

Building configuration...

Current configuration : 1344 bytes

!

version 12.1

no service timestamps log datetime msec

no service timestamps debug datetime msec

no service password-encryption

!

hostname Switch

!

!

!

spanning-tree mode pvst

!

interface Port-channel 1

switchport mode trunk

!

interface FastEthernet0/1

switchport mode trunk

channel-group 1 mode desirable

!

interface FastEthernet0/2

switchport mode trunk

channel-group 1 mode desirable

!

interface FastEthernet0/3

!

interface FastEthernet0/4

!

interface FastEthernet0/5

!

interface FastEthernet0/6

switchport access vlan 30

!

interface FastEthernet0/7

!

interface FastEthernet0/8

!

interface FastEthernet0/9

!

interface FastEthernet0/10

!

interface FastEthernet0/11

switchport access vlan 10

!

interface FastEthernet0/12

!

interface FastEthernet0/13

!

interface FastEthernet0/14

!

interface FastEthernet0/15

!

interface FastEthernet0/16

!

interface FastEthernet0/17

!

interface FastEthernet0/18

switchport access vlan 20

!

interface FastEthernet0/19

!

interface FastEthernet0/20

!

interface FastEthernet0/21

switchport mode trunk

channel-group 1 mode desirable

!

interface FastEthernet0/22

switchport mode trunk

channel-group 1 mode desirable

!

interface FastEthernet0/23

!

interface FastEthernet0/24

!

interface Vlan1

ip address 192.168.1.12 255.255.255.0

!

!

!

!

line con 0

!

line vty 0 4

login

line vty 5 15

login

!

!

!

end

三层交换机

Switch#show run

Building configuration...

Current configuration : 1841 bytes

!

version 12.2

no service timestamps log datetime msec

no service timestamps debug datetime msec

no service password-encryption

!

hostname Switch

!

!

!

!

!

!

!

ip routing

!

!

!

!

!

!

!

!

!

!

!

!

!

!

spanning-tree mode pvst

!

!

!

!

!

!

interface Port-channel 1

switchport trunk encapsulation dot1q

switchport mode trunk

!

interface Port-channel 2

switchport trunk encapsulation dot1q

switchport mode trunk

!

interface FastEthernet0/1

channel-group 1 mode desirable

!

interface FastEthernet0/2

channel-group 2 mode desirable

!

interface FastEthernet0/3

channel-group 1 mode desirable

!

interface FastEthernet0/4

channel-group 2 mode desirable

!

interface FastEthernet0/5

!

interface FastEthernet0/6

!

interface FastEthernet0/7

!

interface FastEthernet0/8

!

interface FastEthernet0/9

!

interface FastEthernet0/10

!

interface FastEthernet0/11

!

interface FastEthernet0/12

!

interface FastEthernet0/13

!

interface FastEthernet0/14

!

interface FastEthernet0/15

!

interface FastEthernet0/16

!

interface FastEthernet0/17

!

interface FastEthernet0/18

!

interface FastEthernet0/19

!

interface FastEthernet0/20

channel-group 2 mode desirable

!

interface FastEthernet0/21

channel-group 1 mode desirable

!

interface FastEthernet0/22

channel-group 1 mode desirable

!

interface FastEthernet0/23

channel-group 2 mode desirable

!

interface FastEthernet0/24

!

interface GigabitEthernet0/1

!

interface GigabitEthernet0/2

!

interface Vlan1

ip address 192.168.1.1 255.255.255.0

!

interface Vlan10

mac-address 0090.2147.7101

ip address 192.168.10.1 255.255.255.0

!

interface Vlan20

mac-address 0090.2147.7102

ip address 192.168.20.1 255.255.255.0

!

interface Vlan30

mac-address 0090.2147.7103

ip address 192.168.30.1 255.255.255.0

!

ip classless

!

ip flow-export version 9

!

!

!

!

!

!

!

line con 0

!

line aux 0

!

line vty 0 4

login

!

!

!

end

Switch 1

Switch>enable

Switch#show run

Building configuration...

Current configuration : 1229 bytes

!

version 12.1

no service timestamps log datetime msec

no service timestamps debug datetime msec

no service password-encryption

!

hostname Switch

!

!

!

spanning-tree mode pvst

!

interface Port-channel 2

!

interface FastEthernet0/1

channel-group 2 mode desirable

!

interface FastEthernet0/2

channel-group 2 mode desirable

!

interface FastEthernet0/3

!

interface FastEthernet0/4

!

interface FastEthernet0/5

!

interface FastEthernet0/6

switchport access vlan 30

!

interface FastEthernet0/7

!

interface FastEthernet0/8

!

interface FastEthernet0/9

!

interface FastEthernet0/10

!

interface FastEthernet0/11

switchport access vlan 10

!

interface FastEthernet0/12

!

interface FastEthernet0/13

!

interface FastEthernet0/14

!

interface FastEthernet0/15

!

interface FastEthernet0/16

!

interface FastEthernet0/17

!

interface FastEthernet0/18

switchport access vlan 20

!

interface FastEthernet0/19

!

interface FastEthernet0/20

channel-group 2 mode desirable

!

interface FastEthernet0/21

!

interface FastEthernet0/22

!

interface FastEthernet0/23

channel-group 2 mode desirable

!

interface FastEthernet0/24

!

interface Vlan1

ip address 192.168.1.13 255.255.255.0

!

!

!

!

line con 0

!

line vty 0 4

login

line vty 5 15

login

!

!

!

end

二层交换配置完ping失败_设置完端口聚合之后就ping不通了!!!相关推荐

  1. 计算机可以配置端口号吗,如何设置打印机端口,详细教您设置电脑打印机端口...

    在安装打印机时,提示手动配置打印机端口,原因是驱动安装程序没有扫描到打印机连接电脑的端口,那么如何设置电脑打印机端口呢?这是很多用户都没有操作过的,为此,小编教大家设置打印机端口的操作. 近期网友提出 ...

  2. torch的model加载完怎么看_看完这篇后,别再说你不懂JVM类加载机制了~

    精彩推荐 一百期Java面试题汇总SpringBoot内容聚合IntelliJ IDEA内容聚合Mybatis内容聚合 Class类文件的结构 任何一个Class文件都对应着唯一一个类或接口的定义信息 ...

  3. python语言学完后学什么_学完Python语言可以做什么?发展前景怎么样?

    Python是一门高级的编程语言,其语言功能强大.语法简单.上手容易,因此受到了不少人的喜欢.而对于学习一门语言,很多人最看重的就是,学习之后可以做什么?有哪些岗位?薪资待遇如何?为大家详细的讲解一下 ...

  4. 04. 交换机的端口聚合配置

    转自:http://7c0bab95.wiz03.com/share/s/1Y2WKl218k5e2gpBCl2BeEsq1-Xe2N3SrAA-2emxLy1Q_Hk2 交换机的端口聚合配置 技术原 ...

  5. 华为交换机设置端口聚合的方法

    <网口绑定的方法>一文中已经介绍了交换机设置端口聚合的方法了,但是不同的交换机设置的方法不同,准确来说,原理是一样的,就是命令大同小异啦.今天又体验了一把华为交换机设置端口绑定的方法. 首 ...

  6. 思科华为设备端口聚合配置命令对比

    Cisco(config)#int range e0/0-3 //进入接口组 [Huawei-Eth-Trunk1]trunkport g0/0/1 //增加成员接口 [Huawei-GigabitE ...

  7. 思科设备端口聚合配置命令

    Cisco(config)#int range e0/0-3 //进入接口组 Cisco(config-if-range)#switchport //接口配置为二层接口 Cisco(config-if ...

  8. 修改服务器端口后防火墙要设置吗,服务器设置完防火墙需要重启吗

    服务器设置完防火墙需要重启吗 内容精选 换一换 代码迁移工具进行代码迁移时,需要调用Linux下的rpm.deb等命令才能完成扫描和迁移相关任务,这些命令和逻辑必须在后端Linux运行.IDE插件只支 ...

  9. 插件设置修改失败_【王者荣耀金牌特权】详细技术设置教程,更新异常解决办法...

    公布一下一个90%概率解决异常的方法: 登录游戏提示异常,先做以下准备工作: 1.划掉游戏后台,王者人生后台. 2.关掉模拟定位和模拟WIFI. 3.断开你自己的WiFi. 接下来走流程: 1.先改定 ...

最新文章

  1. C# 实现将 PDF 转文本的功能
  2. OPenGL中的缓冲区对象
  3. 基于PyTorch框架的多层全连接神经网络实现MNIST手写数字分类
  4. 为敏感信息设置安全屏障
  5. AI端部署“三问”:模型如何跑起来、跑得快、持续跑
  6. python 大括号中括号小括号的区分
  7. 团队协作工具-版本控制软件SVN、Git、码云
  8. 【校招VIP】考研二战长时间没工作,面试被问为什么有职场空窗期?你应该这样回答
  9. Java实现 蓝桥杯 算法提高 天天向上(DP)
  10. 计算机程序手工编织,丝绸编程秒杀计算机 《锦绣纪》致敬最强大脑
  11. python中的get函数什么意思_详解python中get函数的用法(附代码)
  12. 大数据知识点总结笔记
  13. 骨龄预测代码学习(三)
  14. ADI元器件封装下载及使用
  15. srs流媒体服务器推流的流程
  16. 小白说js--我是一个逆袭的JS
  17. 摩拜单车服务器暂时不可用,摩拜单车因服务资源紧张而服务暂停 现已恢复
  18. 会跳舞的钢珠力学分析
  19. Python读书笔记第五章:运算符与表达式
  20. DELL R630升级BIOS固件和IDARC

热门文章

  1. Qt串口通信类Posix_QextserialPort中flush()函数修正
  2. 我的地盘听我的....
  3. Matlab——数值计算——单个代数方程 代数方程组
  4. FFmpeg RTMP推HEVC/H265流
  5. Go的json解析:Marshal与Unmarshal
  6. c++内存管理优化之ptmalloc,tcmalloc,jemalloc使用实例
  7. OpenCV的滑块与回调函数
  8. 笔记2——C++ static关键字与一维动态数组的使用
  9. php带截切图片上传_PHP大文件切割上传并带进度条功能示例
  10. class h5 点击后样式变化_H5学习笔记