trunk

实现跨交换机的相同vlan与Trunk的互通

匿名 (未验证) 提交于 2019-12-02 23:32:01
问题: 参照如下网络拓扑实现跨交换机的相同vlan的通信。 1.使用eNSP搭建实验环境 2.搭建好以后,分配为每台PC机配置IP地址及子网掩码 如上图所示,分别把 PC1的IP地址配置为:192.168.1.1,子网掩码为255.255.255.0 PC2的IP地址配置为:192.168.1.2,子网掩码为255.255.255.0 PC3的IP地址配置为:192.168.1.3,子网掩码为255.255.255.0 PC4的IP地址配置为:192.168.1.4,子网掩码为255.255.255.0 3.配好IP地址之后开始咱们的交换机1/2进行相关配置。 [sw1]-vlan batch 5 10 创建多个不连续的vlan 5 和10 [sw1]-interface Ethernet0/0/1 进入0/0/1接口配置模式 [sw1]-Ethernet0/0/1]port link-type access 设置0/0/1端口为接入模式 [sw1]-Ethernet0/0/1]port default vlan 5 把端口加入vlan5 [sw1]-interface Ethernet0/0/2 进入0/0/2接口配置模式 [sw1]-Ethernet0/0/2]port link-type access 设置0/0/2端口为接入模式 [sw1]-Ethernet0/0/2

Vlan与trunk配置

匿名 (未验证) 提交于 2019-12-02 23:32:01
参照如下网络拓扑实现跨交换机的相同vlan的通信。 使用eNSP搭建实验环境,如图-2所示。 实现此案例需要按照如下步骤进行。 1)配置第1台交换机 01.[SW1]vlan 5 02.[SW1]vlan 10 03.[SW1]interface Ethernet0/0/1 04.[SW1-Ethernet0/0/1]port link-type access 05.[SW1-Ethernet0/0/1]port default vlan 5 06.[SW1]interface Ethernet0/0/2 07.[SW1-Ethernet0/0/2]port link-type access 08.[SW1-Ethernet0/0/2]port default vlan 10 09.[SW1]interface Ethernet0/0/24 10[SW1-Ethernet0/0/24]port link-type trunk 11.[SW1-Ethernet0/0/24]port trunk allow-pass vlan 5 10 2)配置第2台交换机 01.[SW2]vlan 5 02.[SW2]vlan 10 03.[SW2]interface Ethernet0/0/3 04.[SW2-Ethernet0/0/3]port link-type access 05.[SW2

vlan与trunk

匿名 (未验证) 提交于 2019-12-02 23:32:01
vlan与trunk的配置: 一、搭建环境: 首先搭建好环境(Huawei),如图: 二、配置交换机: 配置第一台交换机sw1: 输入命令 1[Huawei] system-view (进入系统视图) [Huawei]sysname sw1 (将名字改为sw1) [sw1]vlan 5 (创建vlan 5) [sw1]vlan 10 (创建vlan 10)【或直接vlan batch 5 10(创建多个不连续的vlan)】 [sw1]interface Ethernet 0/0/1 (进入接口) [sw1-Ethernet0/0/1]port link-type access (设置端口为接入模式) [sw1-Ethernet0/0/1]port default vlan 5 (把端口加入vlan) [sw1-Ethernet0/0/1]interface Ethernet 0/0/2 (进入接口) [sw1-Ethernet0/0/2]port link-type access (设置端口为接入模式) [sw1-Ethernet0/0/2]port default vlan 10 (把端口加入vlan) [sw1-Ethernet0/0/2]interface Ethernet 0/0/3 (进入端口) [sw1-Ethernet0/0/3]port link-type

华为交换机VLAN与Trunk配置

匿名 (未验证) 提交于 2019-12-02 23:30:02
首先,使用ensp软件搭建好实验环境,并提取途中重要信息。 图中PC19和PC21在同一个vlan5,PC20和PC22在同一个vlan10 解题思路 (1) 首先我们需要确定我们需要用到的端口模式: Access介入模式 pc―交换机 Trunk中继链路模式: 交换机―交换机 (2) 其次在两个交换机上各创建vlan5、vlan10的端口,并把pc19与pc21的端口设置为access模式并加入vlan5,把pc20与pc22的端口设置为access模式并加入vlan10,把两个交换机相连接的端口设置为trunk中继链路模式,并把vlan端口加入到中继链路。 (3) 最后,打开计算机,使用ping命令进行查看。 Swich1: <Huawei>system-view //进入系统试图 [Huawei]vlan batch 5 10 //创建vlan端口 [Huawei]interface ethernet 0/0/1 //进入e0/0/1端口进行配置 [Huawei-Ethernet0/0/1]port link-type access //设置端口的模式为access [Huawei-Ethernet0/0/1]port default vlan 5 //把端口加入vlan 5 [Huawei-Ethernet0/0/1]interface ethernet 0/0/2 /

交换机VLAN与Trunk配置

匿名 (未验证) 提交于 2019-12-02 23:30:02
交换机VLAN与Trunk配置 1 首先配置交换机SW1 先创建vlan5与10,把与PC1相连的1端口配置为access模式,并把端口加入到vlan5 把与PC2相连的2端口配置为access模式,并把端口加入到vlan10 把与SW2相连的3端口配置为trunk模式,并允许vlan5,vlan10通过 2 配置交换机SW2 先创建vlan5与10,把与PC3相连的1端口配置为access模式,并把端口加入到vlan5 把与PC4相连的3端口配置为access模式,并把端口加入到vlan10 把与SW1相连的2端口配置为trunk模式,并允许vlan5,vlan10通过 3 测试PC机之间的连通性

VLAN与Trunk配置

匿名 (未验证) 提交于 2019-12-02 23:30:02
eNSP中VLAN与Trunk配置 参照如下网络拓扑图实现跨交换机的相同Vlan通信 步骤 1. 如图所示,配置pc1~pc4(从左至右的顺序)的IP地址和子网掩码 2.交换机SW1下的接口为0/0/1和0/0/2,交换机SW2下的接口为0/0/3和0/0/4,交换机之间的接口为0/0/24 3. 进入交换机SW1进行配置 [SW1]vlan 5 //创建一个端口为5的vlan [SW1]vlan 10 //创建一个端口为10的vlan [SW1]interface Ethernet0/0/1 //进入SW1下0/0/1接口 [SW1-Ethernet0/0/1]port link-type access //设置接口模式为access [SW1-Ethernet0/0/1port default vlan 5 //把端口0/0/1加入vlan5 [SW1]interface Ethernet0/0/2 //进去SW1下0/0/2接口 [SW1-Ethernet0/0/2]port link-type access //设置接口模式为access [SW1-Ethernet0/0/2port default vlan 10 //把端口0/0/2加入vlan10 [SW1]interface Ethernet0/0/24 //进入交换机接口 [SW1-interface

设计模式之组合实体模式

跟風遠走 提交于 2019-12-02 19:45:29
一.组合实体模式 定义:对象的组成类似于树型结构,组成了"部分-整体"的结构,组成的最小单元有相似性,在更高层次的抽象上。 结构: 1.Component(抽象组件),为叶子节点和树节点提供统一的抽象。 2.Composite(容器构建),在组合对象中表示节点对象,在叶子节点之外的都是该类型的结点。 3.Leaf(叶子构件),在组合对象中表示叶子节点。 类图为: Component类 import java.util.ArrayList; public abstract class Component { public abstract void Opertion(); //操作 public abstract void Add(Component Child);//添加子节点 public abstract void Remove(int index);//删除节点 public abstract ArrayList<Component> getChild(int index);//获取子节点 } Leaf类 import java.util.ArrayList; public class Leaf extends Component { private String leafName =null; public Leaf(String leafName) { this

Svn switch from trunk to branch

余生长醉 提交于 2019-12-02 15:21:53
I am in the root folder of an SVN-hosted project's trunk and am exploring setting up two branches. One branch will be a "snapshot" of the project at the current (stable) revision, and a second branch will be one I'll work on to apply some new code, test, and then upgrade the trunk to a new version. My goal is to keep the snapshot as insurance and a quick way to get an older, stable version of our project. The second branch, once we apply fresh code and the tests pass, will be merged back into the trunk, which we offer to the public. To set up the snapshot, I copied our trunk to a branch called

Merge branch with trunk

点点圈 提交于 2019-12-02 13:49:41
Using TortoiseSVN, I need to take changes I've done in a branch and then merge them with trunk. I am the only developer on this project, so I know trunk hasn't changed. I am learning SVN so that eventually my team can use it. Basically, I want my trunk to look exactly like the branch. In pre-svn world, I would just copy the files in my branch folder, delete the files in the trunk folder, and then copy branch into trunk. In TortoiseSVN, I've tried Reintegrate a branch , Merge a range of revisions , and Merge two different trees . Nothing seems to actually change trunk. I've also tried branching