37.4. 聚合端口

简介:
trunk 1
 ethernet 1 to 2

vlan 2
 untagged ethernet 1 to 2
 router-interface ve 2

interface ve 2
 ip address 172.16.0.20 255.255.255.0
		

交换机端简单配置

interface Port-channel4

interface GigabitEthernet1/0/3
 channel-group 4 mode on
 spanning-tree portfast
!
interface GigabitEthernet1/0/4
 channel-group 4 mode on
 spanning-tree portfast
!
		

华为交换机

undo port-group A10
undo port-group A102
45 47;46 48 聚合成一个端口
interface eth-trunk 1
port link-type trunk
port trunk allow-pass vlan all
bpdu enable
ntdp enable
ndp enable
quit

interface gi 0/0/45
undo port link-type
undo port default vlan
bpdu disable
undo ntdp enable
undo ndp enable
undo port trunk allow-pass vlan all
eth-trunk 1

interface gi 0/0/47
undo port link-type
undo port default vlan
bpdu disable
undo ntdp enable
undo ndp enable
undo port trunk allow-pass vlan all
eth-trunk 1
		

思科交换机

gz-c3560-1-s61-11f-11#show run inter port-channel 37 Building configuration...

Current configuration : 132 bytes
!
interface Port-channel37
 switchport trunk encapsulation dot1q
 switchport trunk allowed vlan 2,45,75
 switchport mode trunk
end

gz-c3560-1-s61-11f-11#show run inter g0/37
Building configuration...

Current configuration : 180 bytes
!
interface GigabitEthernet0/37
 description A10
 switchport trunk encapsulation dot1q
 switchport trunk allowed vlan 2,45,75
 switchport mode trunk
 channel-group 37 mode on
end

gz-c3560-1-s61-11f-11#



ct-c4506-1-s96-2f-i8-n397#show run inter port-channel 4
Building configuration...

Current configuration : 159 bytes
!
interface Port-channel4
 description AX2100-1
 switchport
 switchport trunk allowed vlan 1
 switchport trunk encapsulation dot1q
 switchport mode trunk
end

ct-c4506-1-s96-2f-i8-n397#show run inter g6/3
Building configuration...

Current configuration : 181 bytes
!
interface GigabitEthernet6/3
 description AX2100-1-e10
 switchport trunk encapsulation dot1q
 switchport trunk allowed vlan 1
 switchport mode trunk
 channel-group 4 mode on
end

ct-c4506-1-s96-2f-i8-n397#show run inter g6/4
Building configuration...

Current configuration : 181 bytes
!
interface GigabitEthernet6/4
 description AX2100-1-e11
 switchport trunk encapsulation dot1q
 switchport trunk allowed vlan 1
 switchport mode trunk
 channel-group 4 mode on
end

ct-c4506-1-s96-2f-i8-n397#show run inter g6/5
Building configuration...

Current configuration : 155 bytes
!
interface GigabitEthernet6/5
 switchport trunk encapsulation dot1q
 switchport trunk allowed vlan 1
 switchport mode trunk
 channel-group 4 mode on
end





原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。

目录
相关文章
|
1月前
|
安全 网络安全 数据安全/隐私保护
Cisco-交换机配置聚合端口
Cisco-交换机配置聚合端口
ensp 三层交换机、链路聚合和指定端口选举
ensp 三层交换机、链路聚合和指定端口选举
260 0
ensp 三层交换机、链路聚合和指定端口选举
|
4月前
|
弹性计算 应用服务中间件 Linux
阿里云服务器开放端口完整图文教程
笔者近期开发完成的服务端程序部署在阿里云的ECS云服务器上面,一些应用程序配置文件需要设置监听的端口(如Tomcat的8080、443端口等),虽然通过CentOs 7系统的的「防火墙」开放了对应的端口号,任然无法访问端口号对应的应用程序,后面了解到原来还需要设置云服务器的「安全组规则」,开放相应的端口权限,服务端的接口才能真正开放。
689 1
阿里云服务器开放端口完整图文教程
|
4月前
|
弹性计算 运维 数据安全/隐私保护
云服务器 ECS产品使用问题之如何更改服务器的IP地址或端口号
云服务器ECS(Elastic Compute Service)是各大云服务商阿里云提供的一种基础云计算服务,它允许用户租用云端计算资源来部署和运行各种应用程序。以下是一个关于如何使用ECS产品的综合指南。