拓扑一  结果:NO

默认auto(被动)模式

Switch>show interfaces fastEthernet / switchPort
Name: Fa0/
Switchport: Enabled
Administrative Mode: dynamic auto
Operational Mode: static access
Administrative Trunking Encapsulation: dot1q
Operational Trunking Encapsulation: native
Negotiation of Trunking: On
Access Mode VLAN: (default)
Trunking Native Mode VLAN: (default)
Voice VLAN: none
Administrative private-vlan host-association: none
Administrative private-vlan mapping: none
Administrative private-vlan trunk native VLAN: none
Administrative private-vlan trunk encapsulation: dot1q
Administrative private-vlan trunk normal VLANs: none
Administrative private-vlan trunk private VLANs: none
Operational private-vlan: none
Trunking VLANs Enabled: ALL
Pruning VLANs Enabled: -
Capture Mode Disabled
Capture VLANs Allowed: ALL
Protected: false

Switch>show interfaces trunk

Switch>

 

拓扑二   结果:YES

修改2端主动模式(desirable)

Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#interface fastEthernet / Switch(config-if)#switchport mode dynamic desirable Switch(config-if)#
%LINEPROTO--UPDOWN: Line protocol on Interface FastEthernet0/, changed state to up %LINEPROTO--UPDOWN: Line protocol on Interface FastEthernet0/, changed state to down %LINEPROTO--UPDOWN: Line protocol on Interface FastEthernet0/, changed state to up

Switch#show interfaces trunk

Port Mode Encapsulation Status Native vlan

Fa0/1 desirable n-802.1q trunking 1

Port Vlans allowed on trunk

Fa0/1 1-1005

Port Vlans allowed and active in management domain

Fa0/1 1

Port Vlans in spanning tree forwarding state and not pruned

Fa0/1 1

拓扑三  结果:YES

修改一端主动模式(desirable)

Switch>en
Switch#conf t Switch(config)#interface fastEthernet / Switch(config-if)#switchport mode dynamic desirable %LINEPROTO--UPDOWN: Line protocol on Interface FastEthernet0/, changed state to up %LINEPROTO--UPDOWN: Line protocol on Interface FastEthernet0/, changed state to down %LINEPROTO--UPDOWN: Line protocol on Interface FastEthernet0/, changed state to up

Switch#show interfaces trunk

Port Mode Encapsulation Status Native vlan

Fa0/1 desirable n-802.1q trunking 1

Port Vlans allowed on trunk

Fa0/1 1-1005

Port Vlans allowed and active in management domain

Fa0/1 1

Port Vlans in spanning tree forwarding state and not pruned

Fa0/1 1

拓扑四 结果:YES

修改一端 trunk

Switch>en
Switch#conf
Configuring from terminal, memory, or network [terminal]? conf t
?Must be "terminal", "memory" or "network"
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#interface fastEthernet / Switch(config-if)#switchport mode trunk Switch(config-if)#
%LINEPROTO--UPDOWN: Line protocol on Interface FastEthernet0/, changed state to down %LINEPROTO--UPDOWN: Line protocol on Interface FastEthernet0/, changed state to up Switch#show interfaces trunk
Port Mode Encapsulation Status Native vlan
Fa0/ on .1q trunking Port Vlans allowed on trunk
Fa0/ - Port Vlans allowed and active in management domain
Fa0/ Port Vlans in spanning tree forwarding state and not pruned
Fa0/

默认auto,修改desirable

Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#interface fastEthernet / Switch(config-if)#switchport mode dynamic desirable Switch(config-if)#
%LINEPROTO--UPDOWN: Line protocol on Interface FastEthernet0/, changed state to up Switch(config-if)#end
Switch#
%SYS--CONFIG_I: Configured from console by console Switch#show interfaces trunk
Port Mode Encapsulation Status Native vlan
Fa0/ desirable n-.1q trunking Port Vlans allowed on trunk
Fa0/ - Port Vlans allowed and active in management domain
Fa0/ Port Vlans in spanning tree forwarding state and not

拓扑五  结果:NO

修改一端 access

Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#interface fastEthernet / Switch(config-if)#switchport mode access Switch(config-if)#end %SYS--CONFIG_I: Configured from console by console
s
% Ambiguous command: "s" Switch#show interfaces trunk

默认auto,修改desirable

Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#interface fastEthernet / Switch(config-if)#switchport mode dynamic desirable Switch(config-if)#
%LINEPROTO--UPDOWN: Line protocol on Interface FastEthernet0/, changed state to up Switch(config-if)#end
Switch#
%SYS--CONFIG_I: Configured from console by console Switch#show interfaces trunk

拓扑六  结果:YES

配置DTP的更多相关文章

  1. DTP模型之二:(XA协议之二)JTA集成JOTM或Atomikos配置分布式事务(Tomcat应用服务器)

    jotm只能用的xapool数据源,而且很少更新. 一.以下介绍Spring中直接集成JOTM提供JTA事务管理.将JOTM集成到Tomcat中. (经过测试JOTM在批量持久化时有BUG需要修改源码 ...

  2. Python黑帽编程 3.5 DTP攻击

    Python黑帽编程 3.5 DTP攻击 在上一节,<Python黑帽编程 3.4 跨越VLAN>中,我们讨论了一般的VLAN中实施攻击的方法,这一节属于扩展内容,简单演示下Cisco特有 ...

  3. Vsftp精解之安装配置及原理(一)

    简介 Vsftp(Very Secure FTP)是一个基于GPL发布的类Unix系统上使用的FTP服务器软件,是一款小巧而又易用FTP服务器程序,Vsftpd 在安全性.高性能及稳定性三个方面有很好 ...

  4. Hibernate配置文档详解

    Hibernate配置文档有框架总部署文档hibernate.cfg.xml 和映射类的配置文档 ***.hbm.xml hibernate.cfg.xml(文件位置直接放在src源文件夹即可) (在 ...

  5. Hadoop简单安装配置

    Hadoop开始设计以Linux平台为运行目标,所以这里推荐在Linux发行版比如Ubuntu进行安装,目前已经有Hadoop for Windows出来,大家自行搜下文章. Hadoop运行模式分为 ...

  6. 配置Server Side TAF

    实验环境:Oracle 11.2.0.4 RAC 参考MOS文档: How To Configure Server Side Transparent Application Failover (文档 ...

  7. Cisco 的基本配置实例之六----常排错命令--关闭提示

    TEST#terminal monitor # 排除网络故障以前,请打开这一命令以便实时的接收到交换机的提示信息. TEST# TEST#sh run #显示所有的配置清单,可将这些配置保存成文本作为 ...

  8. DTP协议攻击

    DTP协议 动态中继协议DTP(Dynamic Trunking Protocol)是一种Cisco私有协议.DTP用于两台交换机的直连二层端口探测对端的配置,自动协商出二层端口的链路类型和以太网封装 ...

  9. oracle11g在没DNS情况下failover的配置方法

    1.Oracle 11g引入scan ip ,可在没有DNS的情况下,客户端连接RAC配置failover时,很多情况还是使用oracle10g方式.即在客户端tnsname.ora中配置failov ...

随机推荐

  1. C#中,子类构造函数调用父类父类构造函数的正确方式

    正确调用的方式是:

  2. JSP页面传值出现中文乱码的问题

    在接收值的jsp页面代码的body里添加: <%request.setCharacterEncoding("utf-8"); %>  //这里是设置utf-8为jsp页 ...

  3. python,pip环境变量设置

    安装好python后,配置环境变量. 安装pygame需要先配置两个环境变量. 第一个是python的.先打开计算机,然后点击‘系统属性’然后点击‘高级系统设置’然后点击‘环境变量’在系统变量中找到p ...

  4. 小白的python之路11/15 awk 77-78

    awk -F指定分隔符  eg下图指定 : 为分隔符,$1 $4 NF表示以分隔符为表准,该行分了几段    $NF表示取最后一段 正则表达式 表示打印第一个开头的用户名awk -F: '/nolog ...

  5. SSE技术详解:使用 HTTP 做服务端数据推送应用的技术

    SSE ( Server-sent Events )是 WebSocket 的一种轻量代替方案,使用 HTTP 协议. 严格地说,HTTP 协议是没有办法做服务器推送的,但是当服务器向客户端声明接下来 ...

  6. day43-python消息队列二-queue模块

    Python提供了Queue模块来专门实现消息队列Queue对象 Queue对象实现一个fifo队列(其他的还有lifo.priority队列,这里不再介绍).queue只有maxsize一个构造参数 ...

  7. 用git提交源代码

    码云账号 markliuning      作业已经上传 题目要求:定义一个包含有10个整数的数组a并初始化,定义一个指针变量p,p指向数组a,定义函数fun,在fun内部访问数组,并打印出数组中各元 ...

  8. vs2017 无法提交到tfs的 git存储库

    tfs 是2018版本 使用git 工具是可以提交成功. 使用vs2017的 就会一直提示 授权失败 也可以使用新安装的git https://blog.csdn.net/Meteor_s/artic ...

  9. web前端的前景

    随着时代的发展,现在从事IT方向的人有很多,所以励志要成为前端开发工程师的人有很多.当然也有很多人在犹豫不知道该从事哪个方向,我今天就是来给大家分析一下Web前端开发的前景.包括工作内容,发展前景和薪 ...

  10. readme 语法

    README =========================== 该文件用来测试和展示书写README的各种markdown语法.GitHub的markdown语法在标准的markdown语法基础 ...