VLAN及交换机级联(华三交换机)


VLAN及交换机级联






IP配置
设备名称IP地址网关
PCA10.1.1.1/2410.1.1.254
PCB10.1.2.1/2410.1.2.254
PCC10.1.1.2/2410.1.1.254
PCD10.1.2.2/2410.1.2.254

 

<H3C>display interfaceGigabitEthernet 1/0/1    查看端口信息

在交换机上划分VLAN(实现VLAN隔离,PCA--PCCping不通)

[SWA]vlan 10

[SWA -vlan10]port GigabitEthernet 1/0/1

[SWA]vlan 20

[SWA -vlan20]port GigabitEthernet 1/0/2

[SWB]vlan 10

[SWB]vlan 20

[SWB]interface GigabitEthernet 1/0/1

[SWB -GigabitEthernet1/0/1]port access vlan10

[SWB]interface GigabitEthernet 1/0/2

[SWB -GigabitEthernet1/0/2]port access vlan20

配置TRUNK端口(实现跨交换机互通)(同VLAN能ping通)

[SWA]interface GigabitEthernet 1/0/24

[SWA-GigabitEthernet1/0/24]port link-typetrunk

[SWA-GigabitEthernet1/0/24]port trunkpermit vlan 10 20

[SWB]interface GigabitEthernet 1/0/24

[SWB-GigabitEthernet1/0/24]port link-typetrunk

[SWB-GigabitEthernet1/0/24]port trunkpermit vlan 10 20

[SWC]vlan 10

[SWC]vlan 20

[SWC]interface GigabitEthernet 1/0/23

[SWC-GigabitEthernet1/0/23]port link-typetrunk

[SWC-GigabitEthernet1/0/23]port trunkpermit vlan 10 20

[SWC]interface GigabitEthernet 1/0/24

[SWC-GigabitEthernet1/0/24]port link-typetrunk

[SWC-GigabitEthernet1/0/24]port trunkpermit vlan 10 20

配置三层交换机实现VLAN间路由(各台PC之间能够ping通)

[SWC]interface Vlan-interface 10

[SWC-Vlan-interface10]ip address 10.1.1.254255.255.255.0

[SWC]interface Vlan-interface 20

[SWC-Vlan-interface20]ip address 10.1.2.254255.255.255.0

IP地址

网关

IP地址

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值