结合以太通道的VLAN配置
实验要求:建立一条以太通道,并划分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 保存
最新文章
- 移动WEB像素相关知识
- hg0088新2网址:已经做好了封装直接拿来就能用功能齐全
- 页面以base64输出图片
- XPath 实例
- 禁用站点asp运行
- Delphi 2 Unleashed (一) 介绍
- 织梦系统中出现DedeTag Engine Create File False提示原因及解决方法
- Js全选,插入实现
- Hierarchy--分层。单词意思即为分层视图。
- Android中实现ListView圆角效果[转]
- 【Android进阶学习】shape和selector的结合使用
- Pison geeker
- 日月如梭,玩转JavaScript日期
- java 学习资源
- Arcgis Engine OMD
- 【BZOJ3669】【Noi2014】魔法森林(Link-Cut Tree)
- Troubleshooting Scheduler Autotask Issues (Doc ID 1561498.1)
- docker-compose编排springcloud微服务
- tomcat与jmeter
- OpenCV 学习笔记03 threshold函数