实验要求:建立一条以太通道,并划分vlan,让同一vlan的主机能够通信,不同vlan的主机则不能通信

拓扑如下:

涉及内容有:

1.以太通道的建立和配置

2.vlan的创建和划分

配置如下:

A

enable  进入特权模式

configure terminal   进入全局模式

interface port-channel 5  创建以太通道

switchport trunk encapsulation  将通道进行封装

switchport mode trunk  将通道修改为trunk模式  

exit   返回上一级

interface range f0/20-21  进入端口

channel-group 5 mode on  将端口划分到通道中

exit  返回上一级

vlan 10  创建vlan10

vlan 20  创建vlan20

interface f0/1  进入端口

switchport mode access  将端口模式修改为access

switchport access vlan 10  将端口划分到vlan10

interface f0/2  进入端口

switchport mode access  将端口模式修改为access

switchport access vlan 20  将端口划分到vlan20

end  返回特权模式

copy running-config startup-config   保存

B

enable  进入特权模式

configure terminal   进入全局模式

interface port-channel 5  创建以太通道

switchport trunk encapsulation  将通道进行封装

switchport mode trunk  将通道修改为trunk模式  

exit   返回上一级

interface range f0/20-21  进入端口

channel-group 5 mode on  将端口划分到通道中

exit  返回上一级

vlan 10  创建vlan10

vlan 20  创建vlan20

interface f0/1  进入端口

switchport mode access  将端口模式修改为access

switchport access vlan 10  将端口划分到vlan10

interface f0/2  进入端口

switchport mode access  将端口模式修改为access

switchport access vlan 20  将端口划分到vlan20

end  返回特权模式

copy running-config startup-config   保存

最新文章

  1. 移动WEB像素相关知识
  2. hg0088新2网址:已经做好了封装直接拿来就能用功能齐全
  3. 页面以base64输出图片
  4. XPath 实例
  5. 禁用站点asp运行
  6. Delphi 2 Unleashed (一) 介绍
  7. 织梦系统中出现DedeTag Engine Create File False提示原因及解决方法
  8. Js全选,插入实现
  9. Hierarchy--分层。单词意思即为分层视图。
  10. Android中实现ListView圆角效果[转]
  11. 【Android进阶学习】shape和selector的结合使用
  12. Pison geeker
  13. 日月如梭,玩转JavaScript日期
  14. java 学习资源
  15. Arcgis Engine OMD
  16. 【BZOJ3669】【Noi2014】魔法森林(Link-Cut Tree)
  17. Troubleshooting Scheduler Autotask Issues (Doc ID 1561498.1)
  18. docker-compose编排springcloud微服务
  19. tomcat与jmeter
  20. OpenCV 学习笔记03 threshold函数

热门文章

  1. php调用oracle存储
  2. 七、持久层框架(MyBatis)
  3. 搭建GitLab服务器
  4. ActiveMQ queue 分页
  5. textarea标签内的文字无缘故居中解决原因
  6. 返回JSON格式(二十五)
  7. Python Number 类型转换
  8. laravel上传文件FTP驱动配置
  9. hibernate创建构架
  10. ural1297