端口聚合后,电脑1ping不通网关,电脑2可以,请问老师那里设置错误
SW1配置
#
interface Vlan-interface10
ip address 10.1.10.254 255.255.255.0
#
interface Bridge-Aggregation1
port link-type trunk
port trunk permit vlan 1 10
#
interface FortyGigE1/0/53
port link-mode bridge
port link-aggregation group 1
#
interface FortyGigE1/0/54
port link-mode bridge
port link-aggregation group 1
#
interface GigabitEthernet1/0/1
port link-mode bridge
port access vlan 10
combo enable copper
SW2配置
#
interface Bridge-Aggregation1
port link-type trunk
port trunk permit vlan 1 10
#
interface FortyGigE1/0/53
port link-mode bridge
port link-aggregation group 1
#
interface FortyGigE1/0/54
port link-mode bridge
port link-aggregation group 1
#
interface GigabitEthernet1/0/1
port link-mode bridge
port access vlan 10
combo enable copper
(0)
能通
(0)
交换机A的配置 # 进入系统视图,创建VLAN 10,并将端口GigabitEthernet1/0/4加入到该VLAN 10中。 <H3C> system-view //进入系统视图 [H3C]vlan 10 //创建vlan10 [H3C-vlan10]port gigabitethernet 1/0/4 //将g1/0/4接口加入vlan10 [H3C-vlan10]quit //退出当前视图 # 创建VLAN 20,并将端口GigabitEthernet1/0/5加入到该VLAN 20中。 [H3C] vlan 20 //创建vlan20 [H3C-vlan20] port gigabitethernet 1/0/5 //将g1/0/5接口加入vlan20 [H3C-vlan20] quit //退出当前视图 # 创建二层聚合接口1。(根据具体情况选择下面两种方式之一) l 采用静态聚合模式:创建二层聚合接口1 [H3C]interface bridge-aggregation 1 //创建二层聚合接口1 [H3C-Bridge-Aggregation1] quit //退出当前视图 l 采用动态聚合模式:创建二层聚合接口,并配置动态聚合模式 [H3C]interface bridge-aggregation 1 //创建二层聚合接口1 [H3C-Bridge-Aggregation1] link-aggregation mode dynamic //配置动态聚合模式 [H3C-Bridge-Aggregation1] quit //退出当前视图 # 分别将端口GigabitEthernet1/0/1至GigabitEthernet1/0/3加入到聚合组1中。 [H3C]interface gigabitethernet 1/0/1 //进入g1/0/1接口 [H3C-GigabitEthernet1/0/1] port link-aggregation group 1 //将接口加入聚合组1 [H3C-GigabitEthernet1/0/1] quit //退出当前视图 [H3C]interface gigabitethernet 1/0/2 //进入g1/0/2接口 [H3C-GigabitEthernet1/0/2] port link-aggregation group 1 //将接口加入聚合组1 [H3C-GigabitEthernet1/0/2] quit //退出当前视图 [H3C]interface gigabitethernet 1/0/3 //进入g1/0/3接口 [H3C-GigabitEthernet1/0/3] port link-aggregation group 1 //将接口加入聚合组1 [H3C-GigabitEthernet1/0/3] quit //退出当前视图 # 配置二层聚合接口1为Trunk端口,并允许VLAN 10和VLAN 20的报文通过。 [H3C]interface bridge-aggregation 1 //创建二层聚合接口1 [H3C-Bridge-Aggregation1] port link-type trunk //配置接口类型为trunk [H3C-Bridge-Aggregation1] port trunk permit VLAN 10 20 //允许vlan10和vlan20通过 Please wait... Done. Configuring GigabitEthernet 1/0/1... Done. Configuring GigabitEthernet 1/0/2... Done. Configuring GigabitEthernet 1/0/3... Done. [H3C-Bridge-Aggregation1] quit //退出当前视图 # 保存配置信息 [H3C]save force //保存配置
聚合是不是没配置正确
交换机A的配置 # 进入系统视图,创建VLAN 10,并将端口GigabitEthernet1/0/4加入到该VLAN 10中。 <H3C> system-view //进入系统视图 [H3C]vlan 10 //创建vlan10 [H3C-vlan10]port gigabitethernet 1/0/4 //将g1/0/4接口加入vlan10 [H3C-vlan10]quit //退出当前视图 # 创建VLAN 20,并将端口GigabitEthernet1/0/5加入到该VLAN 20中。 [H3C] vlan 20 //创建vlan20 [H3C-vlan20] port gigabitethernet 1/0/5 //将g1/0/5接口加入vlan20 [H3C-vlan20] quit //退出当前视图 # 创建二层聚合接口1。(根据具体情况选择下面两种方式之一) l 采用静态聚合模式:创建二层聚合接口1 [H3C]interface bridge-aggregation 1 //创建二层聚合接口1 [H3C-Bridge-Aggregation1] quit //退出当前视图 l 采用动态聚合模式:创建二层聚合接口,并配置动态聚合模式 [H3C]interface bridge-aggregation 1 //创建二层聚合接口1 [H3C-Bridge-Aggregation1] link-aggregation mode dynamic //配置动态聚合模式 [H3C-Bridge-Aggregation1] quit //退出当前视图 # 分别将端口GigabitEthernet1/0/1至GigabitEthernet1/0/3加入到聚合组1中。 [H3C]interface gigabitethernet 1/0/1 //进入g1/0/1接口 [H3C-GigabitEthernet1/0/1] port link-aggregation group 1 //将接口加入聚合组1 [H3C-GigabitEthernet1/0/1] quit //退出当前视图 [H3C]interface gigabitethernet 1/0/2 //进入g1/0/2接口 [H3C-GigabitEthernet1/0/2] port link-aggregation group 1 //将接口加入聚合组1 [H3C-GigabitEthernet1/0/2] quit //退出当前视图 [H3C]interface gigabitethernet 1/0/3 //进入g1/0/3接口 [H3C-GigabitEthernet1/0/3] port link-aggregation group 1 //将接口加入聚合组1 [H3C-GigabitEthernet1/0/3] quit //退出当前视图 # 配置二层聚合接口1为Trunk端口,并允许VLAN 10和VLAN 20的报文通过。 [H3C]interface bridge-aggregation 1 //创建二层聚合接口1 [H3C-Bridge-Aggregation1] port link-type trunk //配置接口类型为trunk [H3C-Bridge-Aggregation1] port trunk permit VLAN 10 20 //允许vlan10和vlan20通过 Please wait... Done. Configuring GigabitEthernet 1/0/1... Done. Configuring GigabitEthernet 1/0/2... Done. Configuring GigabitEthernet 1/0/3... Done. [H3C-Bridge-Aggregation1] quit //退出当前视图 # 保存配置信息 [H3C]save force //保存配置
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明