H3C s5024p Switch VLAN experiment

Source: Internet
Author: User

h3c s5024p switch for the second time VLAN Experiment

Experiment 1

PC1 and PC2 connected to the switch ports G0/1 and G0/2 belong to VLAN 1, G0/3 and G0/4 that are connected to PC3 and PC4 belong to VLAN 2,PC1, PC2, PC3, PC4 on the same network segment. Requirements PC1, PC2 can communicate with each other, PC3, PC4 can communicate with each other, PC1, PC2 and PC3, PC4 can not communicate

Wiring diagram

So-called in the same network segment, is the IP address of the network part is the same, which is determined by the subnet mask, subnet mask and IP address to calculate the network part, the same thing called the same network segment.

1. Clear the configuration of the switch and reconfigure the switch's basic information

Quidway>reboot

[quidway] sysname SWITCH2

?

Sw1-vlan1]display VLAN 1

VLAN state:802.1q VLAN

VLAN id:1

VLAN type:static

Route interface:configured

IP address:10.0.0.2

Subnet mask:255.0.0.0

Tagged Ports:none

untagged Ports:

GIGABITETHERNET0/1 GIGABITETHERNET0/2 GIGABITETHERNET0/3

GIGABITETHERNET0/4 GIGABITETHERNET0/5 GIGABITETHERNET0/6

GIGABITETHERNET0/7 GIGABITETHERNET0/8 GIGABITETHERNET0/9

GIGABITETHERNET0/10 GIGABITETHERNET0/11 GIGABITETHERNET0/12

GIGABITETHERNET0/13 GIGABITETHERNET0/14 GIGABITETHERNET0/15

GIGABITETHERNET0/16 GIGABITETHERNET0/17 GIGABITETHERNET0/18

GIGABITETHERNET0/19 GIGABITETHERNET0/20 GIGABITETHERNET0/21

GIGABITETHERNET0/22 GIGABITETHERNET0/23 gigabitethernet0/24

?

<Quidway> SYS????????????

[quidway] sysname Switch1

[Switch1] Interface Vlan-interface 1

[Switch1-vlan-interface] IP addr 192.168.10.1 255.255.255.0

?

2. Configure VLANs

[Switch2-vlan1]vlan 2

[Switch2-vlan2]port G0/3

[Switch2-vlan2]port G0/4

[Switch2-vlan2]display VLAN 2

?

VLAN state:802.1q VLAN

VLAN Id:2

VLAN type:static

Route Interface:not configured

Tagged Ports:none

untagged Ports:

GIGABITETHERNET0/3 GIGABITETHERNET0/4

?

3. Start the Ping

I'm in 192.168.10.3 Miles

Ping vlan2 the same network can pass ping 192.168.10.5 is not through

?

?

Experiment 2

PC1,PC2 respectively with the G0/10 and G0/20 ports of the switch Switch1 (G0/10 belongs to VLAN3, G0/20 belongs to VLAN2), PC3 and PC4 ports (SWITCH2 and G0/11 g0/21 G0/11, VLAN2 21 belong to VLAN3) connected, PC1, PC2, PC3, PC4 are all in the same network segment. Requirements PC1 and PC4 can communicate with each other, PC3 and PC2 can communicate with each other, please design 2 kinds of connection methods and configuration.

?

Method 1 Trunk Method Wiring Diagram

?

1. Remove the port of experiment 1 from vlan2 to rejoin the correct port

<switch2>vlan 2

^

% unrecognized command found at ' ^ ' position.

<switch2>sys

Enter system view, return to user view with Ctrl + Z.

[Switch2]vlan 2

[Switch2-vlan2]undo Port G0/3

[Switch2-vlan2]undo Port G0/4

[Switch2-vlan2]port G0/11

[Switch2-vlan2]vlan 3

[Switch2-vlan3]port G0/21

?

[Switch2-vlan3]display VLAN 3

VLAN state:802.1q VLAN

VLAN Id:3

VLAN type:static

Route Interface:not configured

Tagged Ports:none

untagged Ports:

Gigabitethernet0/21

?

[Switch2-vlan3]display VLAN 2

VLAN state:802.1q VLAN

VLAN Id:2

VLAN type:static

Route Interface:not configured

Tagged Ports:none

untagged Ports:

Gigabitethernet0/11

?

2. Configure the port as a trunk port

The first step is to enter the Ethernet port view

[Switch2-vlan3]interface G0/22

[Switch2-gigabitethernet0/22]port Link-type Trunk

[Switch2-gigabitethernet0/22]port trunk pvid VLAN 100

[Switch2-gigabitethernet0/22]port trunk Permit VLAN 2 to 3 allows 2 and 3vlan frames through

[SWITCH2-GIGABITETHERNET0/22]

?

<switch2>sys

Enter system view, return to user view with Ctrl + Z.

[Switch2]display VLAN 2

VLAN state:802.1q VLAN

VLAN Id:2

VLAN type:static

Route Interface:not configured

Tagged Ports:

Gigabitethernet0/22

untagged Ports:

Gigabitethernet0/11

[Switch2]display VLAN 3

VLAN state:802.1q VLAN

VLAN Id:3

VLAN type:static

Route Interface:not configured

Tagged Ports:

Gigabitethernet0/22

untagged Ports:

Gigabitethernet0/21

?

can be found to be configured as Trunk Port belong to two VLANs at the same time

?

The same configuration is also done for switch1

3. Start the Ping

Can be found in the same VLAN of the computer can ping each other, and different VLANs can not ping through

?

Method 22 Network cable method wiring diagram

?

1. Re-add the vlan2 and 3 computers

[Switch2]vlan 2

[Switch2-vlan2]port G0/14

[Switch2-vlan2]vlan 3

[Switch2-vlan3]port g0/24

?

[Switch2-vlan3]display VLAN 3

VLAN state:802.1q VLAN

VLAN Id:3

VLAN type:static

Route Interface:not configured

Tagged Ports:

Gigabitethernet0/22

untagged Ports:

GIGABITETHERNET0/21 gigabitethernet0/24

?

[Switch2-vlan3]display VLAN 2

VLAN state:802.1q VLAN

VLAN Id:2

VLAN type:static

Route Interface:not configured

Tagged Ports:

Gigabitethernet0/22

untagged Ports:

GIGABITETHERNET0/11 GIGABITETHERNET0/14

?

The same configuration is done for switch1.

2. Start the ping

I ping in 192.168.10.3

7 and I can ping through the VLAN3, 6 and I do not ping in a VLAN does not pass.

?

?

H3C s5024p Switch VLAN experiment

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.