当前位置:网站首页>VLAN trunk experiment
VLAN trunk experiment
2022-07-27 07:23:00 【Gucheng 286】
Simulator :Cisco Packet Tracer
SW1 To configure :
notes :
Switch(config)#no ip domain-lookup( Turn off domain name resolution , Prevent domain name resolution when inputting wrong commands )
Switch(config-if)#switch mode trunk( The original device is encapsulated by default dot1q agreement , So there is no encapsulation )
Switch>en
Switch#
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#
Switch(config)#no ip domain-lookup( Turn off domain name resolution , Prevent domain name resolution when inputting wrong commands )
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( The original device is encapsulated by default dot1q agreement , So there is no encapsulation )
Switch(config-if)#exit
Switch(config)#SW2 To configure :
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)#Achieve each VLAN Between PC Interworking of :


边栏推荐
- 在kettle使用循环来处理表中的数据
- MySQL optimization SQL related (continuous supplement)
- 请教大佬们一个问题,pgsqlcdc任务运行一段时间就不能监测变化了,重启就可以了,这个该从哪方面入
- functools模块
- How does golang assign values to empty structures
- Pan Aimin, chairman of instruction set, attended the 2022 ecug con to speak for China's technical forces
- C# 常用功能整合-3
- 2022-07-25 顾宇佳 学习笔记
- 12. Integer to Roman
- Want to sink into redis hash and write in the attributes and values of the object. Do the bosses have a demo?
猜你喜欢
随机推荐
Guava的基础功能与集合
?实验 7 基于 Mysql 的 PHP 管理系统实现
Linear table -- stack and queue
Vscode creates golang development environment and debug unit test of golang
一个优先级顺序的SQL问题
Excuse me, MySQL timestamp (6) using flick SQL is null. Is there a way to deal with this
端口转发小结
A Competitive Swarm Optimizer for Large Scale Optimization
2022-07-25 顾宇佳 学习笔记
12. Integer to Roman整数转罗马数字
jjwt 生成token
ADB instruction sorting
Federal Reserve SR 11-7: Guidance on model risk management - Wanzi collection
QT连接sqlite数据库的错误及其修改办法
Generics -- learn it, and there are many benefits
Codeworks round 809 (Div. 2) (6/6) (Kruskal reconstruction tree)
DRConv-pytorch改称输出和输入一样的尺寸
临界区(critical section 每个线程中访问 临界资源 的那段代码)和互斥锁(mutex)的区别(进程间互斥量、共享内存、虚拟地址)
Relevant principles of MySQL index optimization
使用sqlplus显示中文为乱码的解决办法









