拓扑一  结果: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. 命令“copy /V 已退出,代码为 1

    这个错误出现在vs生成事件里的命令行里. 第一种:简单粗暴直接清空命令行 第二种:通过输出的打印结果来分析: 比如我的出现这个原因一般有两种情况: 第一种:是可能我引用的共享盘Z盘无法连接: 第二种: ...

  2. js将手机号中间四位变成*号

    方法一.利用数组splice,split,join方法 var tel = 18810399133; tel = "" + tel; var ary = tel.split(&qu ...

  3. PROJ.4学习——坐标系转换

    PROJ.4学习——坐标系转换 前言 PROJ可以做任从最简单的投影到许多参考数据非常复杂的转换.PROJ最初是作为地图投影工具开发的,但随着时间的推移,它已经发展成为一个强大的通用坐标转换引擎,可以 ...

  4. day1 登录

    #!/usr/bin/env python #Author:windtalker import os, getpass import sqlite3 from time import ctime pr ...

  5. java字符串截取指定下标位置的字符串

    public class A { public static void main(String[] args) { //定义的字符串 String s = "Hello World" ...

  6. Kali Linux搭建Go语言环境

     准备: (1)Kali Linux系统(此实验为VMware环境) (2)Go语言安装包 具体过程: (1)到官网下载Go语言安装包,如图示操作(官网可能需要梯子,没有的可以从国内相关网站下载) ( ...

  7. [HNOI2019]校园旅行

    题意 https://www.luogu.org/problemnew/show/P5292 思考 最朴素的想法,从可行的二元组(u,v)向外拓展,及u的出边所指的颜色与v的出边所指的颜色若相同,继续 ...

  8. elk的一些零碎知识

    1.elasticsearch检查是否健康 http://12.20.511.141:9200/_cat/health?v 绿色表示一切正常, 黄色表示所有的数据可用但是部分副本还没有分配,红色表示部 ...

  9. 【Java集合系列四】HashSet和LinkedHashSet解析

    2017-07-29 16:58:13 一.简介 1.Set概念 Set可以理解为集合,非常类似数据概念中的集合,集合三大特征:1.确定性:2.互异性:3.无序性,因此Set实现类也有类似的特征. 2 ...

  10. 第三周博客之二---Oracle中的sql语句

    一.用户及权限(DBA有最高系统权限) 1.数据库的安全性:系统的安全性.数据的安全性 2.权限分类: 2.1系统权限:获得后可访问数据库 常用的有create table,create user,c ...