华为交换机access与trunk接口互通实验_Tony
SW1<Huawei>
<Huawei>
<Huawei>sy
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
u t m
sy
sysname Sw1
v
vlan 10
q
int
interface ethe
interface Ethernet 0/0/1
port l
port link-t
port link-type a
port link-type access
por
port de
port default v
port default vlan 10
dis this
#
interface Ethernet0/0/1
port link-type access
port default vlan 10
#
return
q
int
interface g
interface GigabitEthernet 0/0/1
por
port l
port link-t
port link-type t
port link-type trunk
port t
port trunk a
port trunk allow-pass v
port trunk allow-pass vlan 10
dis this
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 10
#
return
q
q
<Sw1>
<Sw1>
<Sw1>
<Sw1>
<Sw1>
<Sw1>
<Sw1>dis por
<Sw1>dis port v
<Sw1>dis port vlan
Port Link Type PVIDTrunk VLAN List
-------------------------------------------------------------------------------
Ethernet0/0/1 access 10 -
Ethernet0/0/2 hybrid 1 -
Ethernet0/0/3 hybrid 1 -
Ethernet0/0/4 hybrid 1 -
Ethernet0/0/5 hybrid 1 -
Ethernet0/0/6 hybrid 1 -
Ethernet0/0/7 hybrid 1 -
Ethernet0/0/8 hybrid 1 -
Ethernet0/0/9 hybrid 1 -
Ethernet0/0/10 hybrid 1 -
Ethernet0/0/11 hybrid 1 -
Ethernet0/0/12 hybrid 1 -
Ethernet0/0/13 hybrid 1 -
Ethernet0/0/14 hybrid 1 -
Ethernet0/0/15 hybrid 1 -
Ethernet0/0/16 hybrid 1 -
Ethernet0/0/17 hybrid 1 -
Ethernet0/0/18 hybrid 1 -
Ethernet0/0/19 hybrid 1 -
Ethernet0/0/20 hybrid 1 -
Ethernet0/0/21 hybrid 1 -
Ethernet0/0/22 hybrid 1 -
GigabitEthernet0/0/1 trunk 1 1 10
GigabitEthernet0/0/2 hybrid 1 -
<Sw1> User interface con0 is available
Please Press ENTER.
<Sw1>
<Sw1>
<Sw1>
<Sw1>
<Sw1>sa
The current configuration will be written to the device.
Are you sure to continue?y
Info: Please input the file name ( *.cfg, *.zip ) :
Mar 14 2017 22:19:18-08:00 Sw1 %%01CFM/4/SAVE(l):The user chose Y when decidi
ng whether to save the configuration to the device.
<Sw1>
User interface con0 is available
Please Press ENTER.
--------------------------------------------------------------------
--------------------------------------------------------------------
SW2
<Huawei>
<Huawei>sy
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
sy
sysname Sw2
v
vlan 10
q
int
interface g
interface GigabitEthernet 0/0/1
port
port l
port link-t
port link-type t
port link-type trunk
por
port t
port trunk a
port trunk allow-pass v
port trunk allow-pass vlan a
port trunk allow-pass vlan all
dis this
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2 to 4094
#
return
q
int
interface ethe
interface Ethernet 0/0/1
por
port l
port link-t
port link-type t
port link-type trunk
por
port t
port trunk p?
pvid
port trunk pvid v
port trunk pvid vlan 10
port trunk allow-pass v
port trunk allow-pass vlan 10
dis this
#
interface Ethernet0/0/1
port link-type trunk
port trunk pvid vlan 10
port trunk allow-pass vlan 10
#
return
q
q
<Sw2>dis p
<Sw2>dis por
<Sw2>dis port v
<Sw2>dis port vlan
Port Link Type PVIDTrunk VLAN List
-------------------------------------------------------------------------------
Ethernet0/0/1 trunk 10 1 10
Ethernet0/0/2 hybrid 1 -
Ethernet0/0/3 hybrid 1 -
Ethernet0/0/4 hybrid 1 -
Ethernet0/0/5 hybrid 1 -
Ethernet0/0/6 hybrid 1 -
Ethernet0/0/7 hybrid 1 -
Ethernet0/0/8 hybrid 1 -
Ethernet0/0/9 hybrid 1 -
Ethernet0/0/10 hybrid 1 -
Ethernet0/0/11 hybrid 1 -
Ethernet0/0/12 hybrid 1 -
Ethernet0/0/13 hybrid 1 -
Ethernet0/0/14 hybrid 1 -
Ethernet0/0/15 hybrid 1 -
Ethernet0/0/16 hybrid 1 -
Ethernet0/0/17 hybrid 1 -
Ethernet0/0/18 hybrid 1 -
Ethernet0/0/19 hybrid 1 -
Ethernet0/0/20 hybrid 1 -
Ethernet0/0/21 hybrid 1 -
Ethernet0/0/22 hybrid 1 -
GigabitEthernet0/0/1 trunk 1 1-4094
GigabitEthernet0/0/2 hybrid 1 -
<Sw2>
<Sw2>
<Sw2>
<Sw2>
<Sw2>sa
The current configuration will be written to the device.
Are you sure to continue?y
Now saving the current configuration to the slot 0.
Save the configuration successfully.
<Sw2>
可以啊兄弟 666666666
页:
[1]