trunk

交换机应用之端口模式(access、trunk和hybird)、是否标记(tag、untag)、端口缺省vlan(pvid、native id)

别来无恙 提交于 2019-12-04 00:24:59
一、概述 打不打标记Tag,untag以及交换机的各种端口模式是网络工程技术人员调试交换机时接触最多的概念了。标记tag就是指VLAN的标签,数据包属于哪个VLAN的。 交换机三种端口模式Access vlan、Trunk vlan和Hybrid vlan三种,即以太网端口有三种链路类型:Access、Hybrid和Trunk。在Trunk和Hybird模式下,存在端口缺省vlan的概念(pvid、native vlan id)。 二、打不打标记(Tag,untag) tag是指vlan的标签,即vlan的id,用于指名数据包属于那个vlan,untag指数据包不属于任何vlan,没有vlan标记。 untag就是普通的ethernet报文 ,普通PC机的网卡是可以识别这样的报文进行通讯; tag报文 结构的变化是在源mac地址和目的mac地址之后,加上了4bytes的vlan信息,也就是vlan tag头;一般来说这样的报文普通PC机的网卡是不能识别的。 下面说了 802.1Q封装tag报文帧结构 ISL Trunk上所有的包都是tag的( Cisco 专用); 802.1Q 设计的时候为了兼容与不支持VLAN的交换机混合部署 ,特地设计成可以不tag:但是只有一个VLAN允许不tag,这样N个VLAN,(N-1)个都tag了,不tag的包一定是来自那个特殊VLAN的

华为交换机的端口hybrid端口属性配置

梦想的初衷 提交于 2019-12-04 00:22:12
1 交换机端口链路类型介绍 交换机以太网端口共有三种链路类型: Access 、 Trunk 和 Hybrid 。 l Access 类型 的端口只能属于 1 个 VLAN ,一般用于连接计算机的端口; l Trunk 类型 的端口可以属于多个 VLAN ,可以接收和发送多个 VLAN 的报文,一般用于交换机之间连接的端口; l Hybrid 类型 的端口可以属于多个 VLAN ,可以接收和发送多个 VLAN 的报文,可以用于交换机之间连接,也可以用于连接用户的计算机。 其中, Hybrid 端口和 Trunk 端口的相同之处在于两种链路类型的端口都可以允许多个 VLAN 的报文发送时打标签; 不同之处 在于 Hybrid 端口可以允许多个 VLAN 的报文发送时 不打标签 ,而 Trunk 端口只允许缺省 VLAN 的报文发送时不打标签。 三种类型的端口可以共存在一台以太网交换机上,但 Trunk 端口和 Hybrid 端口之间 不能直接切换 ,只能先设为 Access 端口,再设置为其他类型端口。例如: Trunk 端口不能直接被设置为 Hybrid 端口,只能先设为 Access 端口,再设置为 Hybrid 端口。 2 各类型端口使用注意事项 配置 Trunk 端口或 Hybrid 端口,并利用 Trunk 端口或 Hybrid 端口发送多个 VLAN 报文时一定要注意

Merging from branch to trunk with 'Merge range of revisions'

偶尔善良 提交于 2019-12-03 13:07:35
问题 I have merged in Subversion/TortoiseSVN like this a few times: Method A: 1) I change the trunk and commit. 2) I make other changes in a branch and commit. 3) In a working copy from trunk: I merge from the branch using TortoiseSVN's 'Merge a range of revisions'. 4) Then I commit the trunk and delete the branch. However, the TortoiseSVN-manual recommends the following instead of 3) and 4): Method B: 3*) In a working copy from the branch: Merge changes from trunk using TortoiseSVN's 'Merge a

(原)Cisco三层交换机SVI(VLAN间路由)

泪湿孤枕 提交于 2019-12-03 08:37:30
PC0 和 PC1 分别处在不同 VLAN ,需通过 3 层交换机 SVI 接口实现 VLAN 间通信 2 层交换机配置 vlan 11 exit vlan 12 exit interface Vlan11 ipaddress 11.1.1.1 255.255.255.0 ! interface Vlan12 ipaddress 12.1.1.1 255.255.255.0 ! interface FastEthernet0/1 switchport mode trunk switchport trunk allowed vlan all noshutdown exit 3 层交换机配置 vlan 11 exit vlan 12 exit ! interface Vlan11 ipaddress 11.1.1.1 255.255.255.0 ! interface Vlan12 ipaddress 12.1.1.1 255.255.255.0 interface FastEthernet0/1 switchport trunk encapsulation dot1q switchport mode trunk switchport trunk allowed vlan all noshutdown exit ip routing 来源: CSDN 作者: mca_Zhenzhong

vlan间的路由

坚强是说给别人听的谎言 提交于 2019-12-03 08:37:18
vlan间的路由可以通过二层交换机搭配路由器来实现也可以通过三层交换机来实现 单臂路由:将交换机和路由器之间的链路配置为trunk链路,并且在路由器上创建子接口以支持VLAN路由 单臂路由的配置步骤如下: (1)交换机上的配置命令: vlan batch 2 3 在交换机上创建两个vlan 交换机与路由器相互连接端口设置为trunk并允许vlan通过 port link-type trunk port trunk allow-pass vlan all (2)路由器上的配置命令: 在路由器与交换机连接的接口设置子接口用来充当不同vlan的网关 interface GigabitEthernet0/0/1.1 进入子接口 ip address XXXX 设置网关地址 dot1q termination vid X 让子接口能接收相应的vlan标记并在转发时能打上相应的tag arp broadcast enable 开启arp广播 为了解决单臂路由带来的问题而引入了三层交换机从而更加方便有效地实现vlan间的互访。三层交换机具有路由功能 通过创建vlanif来充当一个网段的下一跳地址,从而实现到达一个网段的路由功能。三层交换机的互连接口要设置成trunk模式,这样才能是实现两个三层交换机之间的通讯。创建vlanif的前提是要先创建相对于的vlan

Merging from branch to trunk with 'Merge range of revisions'

帅比萌擦擦* 提交于 2019-12-03 03:25:20
I have merged in Subversion/TortoiseSVN like this a few times: Method A: 1) I change the trunk and commit. 2) I make other changes in a branch and commit. 3) In a working copy from trunk: I merge from the branch using TortoiseSVN's 'Merge a range of revisions'. 4) Then I commit the trunk and delete the branch. However, the TortoiseSVN-manual recommends the following instead of 3) and 4): Method B: 3*) In a working copy from the branch: Merge changes from trunk using TortoiseSVN's 'Merge a range of revisions'. 4*) Commit the branch including trunk changes. 5*) In a working copy from the trunk:

Ubuntu 12.04下编译Openwrt教程

拟墨画扇 提交于 2019-12-03 03:23:58
1、搭建Ubuntu环境、自己解决、我用的是VirtualBox 感觉不错 2、打开“终端”。首先输入 sudo –sH 大小写注意!建议直接复制粘贴。然后输入装系统时设置的用户密码,就能切换到root(提示:输入密码的时候不会有*****之类的显示的,是完全不显示,部分人不必惊慌)。切换到root是为了安装或升级部分必要的组件,有些组件需要root权限。 3、依次输入如下命令(还是复制粘贴吧) apt-get install g++ apt-get install libncurses5-dev apt-get install zlib1g-dev apt-get install bison apt-get install flex apt-get install unzip apt-get install autoconf apt-get install gawk apt-get install make apt-get install gettext apt-get install gcc apt-get install git apt-get install binutils apt-get install patch apt-get install bzip2 apt-get install libz-dev apt-get install asciidoc apt

WebRTC building for arm

匿名 (未验证) 提交于 2019-12-03 02:52:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I want to build webrtc for my small machine with arm926ej-s processor. After I install depot_tools, I did following steps: gclient config http://webrtc.googlecode.com/svn/trunk gclient sync --force cd trunk ninja -C out/Debug All working fine and I can run some binary files, which I get after compiling. Now, I want to compile for my arm machine. I do following: rm -rf out export GYP_CROSSCOMPILE=1 export GYP_DEFINES="target_arch=arm arm_float_abi=hard" export CC=/path/to/my/gcc export CXX=/path/to/my/g++ export AR=/path/to/my/ar export CC

WebRTC : ninja build not working

匿名 (未验证) 提交于 2019-12-03 02:02:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Steps I followed for build of webRTC in UBUNTU env. Check out the code: gclient config https://webrtc.googlecode.com/svn/trunk echo "target_os = ['android', 'unix']" >> .gclient gclient sync --nohooks Generate ninja makefiles: cd trunk $./build/install-build-deps-android.sh $. build/android/envsetup.sh Defaulting GYP_GENERATORS to ninja $gclient runhooks $android_gyp result of android_gyp: GYP_GENERATORS set to 'ninja' Updating projects from gyp files... gyp: /home/user/webRTC/trunk/chrome/chrome_resources.gyp not found (cwd: /home/user

Svn switch from trunk to branch

一个人想着一个人 提交于 2019-12-03 01:50:33
问题 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