<Huawei>system-view
Enter system view, return user view withCtrl+Z.
[Huawei]sysname s3
[s3]vlan 20
[s3-vlan20]quit
<Huawei>system-view
Enter system view, return user view withCtrl+Z.
[Huawei]sysname s1
[s1]vlan 20
[s1-vlan20]quit
[s1]
<Huawei>system-view
Enter system view, return user view withCtrl+Z.
[Huawei]sysname s2
[s2]vlan 20
[s2-vlan20]quit
[s2]
<Huawei>system-view
Enter system view, return user view withCtrl+Z.
[Huawei]sysname s4
[s4]
[s1]interface GigabitEthernet 0/0/2
[s1-GigabitEthernet0/0/2]port link-typeaccess
[s1-GigabitEthernet0/0/2]port default vlan20
[s1-GigabitEthernet0/0/2]quit
[s1]interface GigabitEthernet 0/0/2
[s1-GigabitEthernet0/0/2]disp this
#
interface GigabitEthernet0/0/2
portlink-type access
portdefault vlan 20
#
return
[s1]interface GigabitEthernet 0/0/1
[s1-GigabitEthernet0/0/1]port link-typeaccess
[s1-GigabitEthernet0/0/1]port default vlan20
[s1-GigabitEthernet0/0/1]quit
[s1]vlan 30
[s1-vlan30]quit
[s1]interface GigabitEthernet 0/0/4
[s1-GigabitEthernet0/0/4]port link-typeaccess
[s1-GigabitEthernet0/0/4]port default vlan30
[s1-GigabitEthernet0/0/4]quit
[s1]interface GigabitEthernet 0/0/3
[s1-GigabitEthernet0/0/3]port link-typetrunk
[s1-GigabitEthernet0/0/3]port trunkallow-pass vlan 20 30
[s1-GigabitEthernet0/0/3]disp this
#
interface GigabitEthernet0/0/3
portlink-type trunk
porttrunk allow-pass vlan 20 30
#
Return
<s2>system-view
Enter system view, return user view withCtrl+Z.
[s2]vlan 30
[s2-vlan30]quit
[s2]interface GigabitEthernet 0/0/2
[s2-GigabitEthernet0/0/2]port link-typetrunk
[s2-GigabitEthernet0/0/2]port trunkallow-pass vlan 20 30
[s2-GigabitEthernet0/0/2]
#
interface GigabitEthernet0/0/2
portlink-type trunk
porttrunk allow-pass vlan 20 30
#
return
[s2]interface GigabitEthernet 0/0/1
[s2-GigabitEthernet0/0/1]port link-typetrunk
[s2-GigabitEthernet0/0/1]port trunkallow-pass vlan 20 30
[s2-GigabitEthernet0/0/1]disp this
#
interface GigabitEthernet0/0/1
portlink-type trunk
porttrunk allow-pass vlan 20 30
#
return
[s2]interface GigabitEthernet 0/0/3
[s2-GigabitEthernet0/0/3]port link-typeaccess
[s2-GigabitEthernet0/0/3]port default vlan30
[s2-GigabitEthernet0/0/3]disp this
#
interface GigabitEthernet0/0/3
portlink-type access
portdefault vlan 30
#
[s2]interface GigabitEthernet 0/0/4
[s2-GigabitEthernet0/0/4]port link-typeaccess
[s2-GigabitEthernet0/0/4]port default vlan20
[s2-GigabitEthernet0/0/4]disp this
#
interface GigabitEthernet0/0/4
portlink-type access
portdefault vlan 20
#
return
[s2]interface GigabitEthernet 0/0/5
[s2-GigabitEthernet0/0/5]port link-typetrunk
[s2-port-group-trunk]port trunk allow-passvlan 20 30
<s3>system-view
Enter system view, return user view withCtrl+Z.
[s3]interface GigabitEthernet 0/0/3
[s3-GigabitEthernet0/0/3]port link-typeaccess
[s3-GigabitEthernet0/0/3]port default vlan30
[s3-GigabitEthernet0/0/3]disp this
#
interface GigabitEthernet0/0/3
portlink-type access
#
return
[s3]interface GigabitEthernet 0/0/1
[s3-GigabitEthernet0/0/1]port link-typeaccess
[s3-GigabitEthernet0/0/1]port default vlan20
[s3-GigabitEthernet0/0/1]disp this
#
interface GigabitEthernet0/0/1
portlink-type access
portdefault vlan 20
#
Return
[s3]interface GigabitEthernet 0/0/2
[s3-GigabitEthernet0/0/2]port link-typeaccess
[s3-GigabitEthernet0/0/2]port default vlan20
[s3-GigabitEthernet0/0/2]disp this
#
interface GigabitEthernet0/0/2
portlink-type access
portdefault vlan 20
#
return
[s4]interface GigabitEthernet 0/0/1
[s4-GigabitEthernet0/0/1]port link-typehybrid
[s4-GigabitEthernet0/0/1]port hybrid taggedvlan 30
[s4-GigabitEthernet0/0/1]port hybriduntagged vlan 20
[s4-GigabitEthernet0/0/1]inter gig 0/0/2
[s4-GigabitEthernet0/0/2]port hybriduntagged vlan 20
版权声明:本文为博主原创文章,未经博主允许不得转载。
原文地址:http://blog.csdn.net/myhaspl/article/details/49300791