当前位置:网站首页>VLAN trunk实验
VLAN trunk实验
2022-07-27 06:16:00 【孤城286】
模拟器:Cisco Packet Tracer
SW1配置:
注:
Switch(config)#no ip domain-lookup(关闭域名解析,防止输错命令时域名解析)
Switch(config-if)#switch mode trunk(原来设备默认封装了dot1q协议,所以就没有再封装)
Switch>en
Switch#
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#
Switch(config)#no ip domain-lookup(关闭域名解析,防止输错命令时域名解析)
Switch(config)#
Switch(config)#vlan 10
Switch(config-vlan)#name PC1
Switch(config-vlan)#exit
Switch(config)#vlan 20
Switch(config-vlan)#name PC2
Switch(config-vlan)#exit
Switch(config)#
Switch(config)#interface f0/1
Switch(config-if)#switch mode access
Switch(config-if)#switch access vlan 10
Switch(config-if)#exit
Switch(config)#interface f0/2
Switch(config-if)#switch mode access
Switch(config-if)#switch access vlan 20
Switch(config-if)#exit
Switch(config)#do show vlan brief
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/3, Fa0/4, Fa0/5, 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
10 PC1 active Fa0/1
20 PC2 active Fa0/2
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
Switch(config)#interface f0/3
Switch(config-if)#switch mode trunk(原来设备默认封装了dot1q协议,所以就没有再封装)
Switch(config-if)#exit
Switch(config)#SW2配置:
Switch>enable
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#
Switch(config)#vlan 10
Switch(config-vlan)#name PC4
Switch(config-vlan)#exit
Switch(config)#vlan 20
Switch(config-vlan)#name pc3
Switch(config-vlan)#exit
Switch(config)#
Switch(config)#interface f0/3
Switch(config-if)#
Switch(config-if)#switch mode access
Switch(config-if)#switch access vlan 10
Switch(config-if)#exit
Switch(config)#
Switch(config)#interface f0/2
Switch(config-if)#
Switch(config-if)#switch mode access
Switch(config-if)#switch access vlan 20
Switch(config-if)#
Switch(config-if)#exit
Switch(config)#interface f0/1
Switch(config-if)#switch mode trunk
Switch(config-if)#exit
Switch(config)#do show int trunk
Port Mode Encapsulation Status Native vlan
Fa0/1 on 802.1q trunking 1
Port Vlans allowed on trunk
Fa0/1 1-1005
Port Vlans allowed and active in management domain
Fa0/1 1,10,20
Port Vlans in spanning tree forwarding state and not pruned
Fa0/1 1,10,20
Switch(config)#do show vlan brief
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/4, Fa0/5, 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
10 PC4 active Fa0/3
20 pc3 active Fa0/2
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
Switch(config)#实现各个VLAN之间PC的互通:


边栏推荐
- A Competitive Swarm Optimizer for Large Scale Optimization
- pre-commit install 时 CalledProcessError
- Esp8266 (esp-12f) third party library use -- sparkfun_ Apds9960 (gesture recognition)
- Calledprocesserror during pre commit install
- C4D动画如何提交云渲染农场快速渲染?
- 2022-07-25 顾宇佳 学习笔记
- Gbase 8C - SQL reference 6 SQL syntax (13)
- js中的数组方法与循环
- Golang encapsulates the packages involved in MySQL and the differences between sqlx and Gorm
- 用typescript实现排序-递增
猜你喜欢

Jmeter: interface automation test - BeanShell compares database data and return data

A Competitive Swarm Optimizer for Large Scale Optimization

How to implement Devops with automation tools | including low code and Devops application practice

How MySQL executes query statements

35. Search insert position

在Perl程序中暴露Prometheus指标

把Excel转换成CSV/CSV UTF-8

在mac中使用docker来搭建oracle数据库服务器

MySQL2

在kettle使用循环来处理表中的数据
随机推荐
? Experiment 7 implementation of PHP management system based on MySQL
The possibility of metauniverse from the perspective of technical principles: how Omniverse "built" Mars
内部类--看这篇就懂啦~
请问 mysql timestamp(6) 用flink-sql接过来是 null,这点有办法处理不
yhb_sysbench
指令集 x 数澜科技丨加速政企数字化转型,打造DT领域独角兽企业联盟
oracle清理含有引用分区的表的数据库磁盘空间
从技术原理看元宇宙的可能性:Omniverse如何“造”火星
Internal class -- just read this article~
线性表 -- 栈和队列
12. Integer to Roman
MySQL: 提高最大连接数
Misunderstanding of slice slice in golang
Quartus:往别人的工程添加.v文件报错
美联储SR 11-7:模型风险管理指南(Guidance on Model Risk Management)-万字收藏
在kettle使用循环来处理表中的数据
Instruction set x digital technology accelerates the digital transformation of government and enterprises, and builds Unicorn enterprise alliance in DT field
请问有人使用oracle xstream 时出现个别capture延迟很大的吗,该如何解决延迟问题呢
[Vani有约会]雨天的尾巴
简单的轮播图