Exchange, Routing and firewalls (6)

Source: Internet
Author: User

Enter system view, return user view withctrl+z.

[Huawei]sysname S3

[S3]vlan 20

[S3-vlan20]quit

Enter system view, return user view withctrl+z.

[Huawei]sysname S1

[S1]vlan 20

[S1-vlan20]quit

[S1]

Enter system view, return user view withctrl+z.

[Huawei]sysname S2

[S2]vlan 20

[S2-vlan20]quit

[S2]

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





This blog all content is original, if reproduced please indicate sourcehttp://blog.csdn.net/myhaspl/

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Exchange, Routing and firewalls (6)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.