1. 程式人生 > >華為trunk附案例(so easy)

華為trunk附案例(so easy)

-type 思路 ble -s word ans all adding round

實驗環境:華為模擬器

1. 配置pc機ip(192.168.10.1 192.168.20.1 192.168.10.2 192.168.20.2),子掩:255.255.255.0

2,給交換機添加vlan10,VLAN20,

vlan 10

quit

Vlan 20

Quit

Interface g0/0/1

Port link-type access

Port default vlan 10

Quit

Interface g0/0/2

Port link-type access

Port access vlan 20

配置交換機2

vlan 10

Quit

Vlan 20

Quit

interface g0/0/1

Port link-type access

Port default vlan 10

Quit

Intface g0/0/2

Port link-type access

Port default vlan 20

Quit

3,配置trunk 鏈路

在交換機2上,

Interface g0/0/24

Port link-type trunk

Port trunk allow-pass vlan all

在交換機1上

Interface g0/0/24

Port link-type trunk

Port trunk allow-paas vlan

4,驗證:ping192.168.10.2

配置 Trunk鏈路思路:(華為)
1、配置端口的鏈路類型
interface(端口)
port link-type trunk
2、設置 Trunk 鏈路上允許通過的 VLAN
interface (端口)
port trunk allow-pass vlan all
3、查看
display port vlan


華為trunk附案例(so easy)