beautypg.com

Network diagram, Configuration procedure – H3C Technologies H3C S3600 Series Switches User Manual

Page 116

background image

2-6

Network diagram

Figure 2-1 Network diagram for VLAN configuration

SwitchA

SwitchB

PC1

PC2

Eth1/0/1

Eth1/0/2

Eth1/0/10

Eth1/0/11

Eth1/0/12

Eth1/0/13

Server2

Server1

Configuration procedure

z

Configure Switch A.

# Create VLAN 100, specify its descriptive string as Dept1, and add Ethernet 1/0/1 to VLAN 100.

system-view

[SwitchA] vlan 100

[SwitchA-vlan100] description Dept1

[SwitchA-vlan100] port Ethernet 1/0/1

[SwitchA-vlan100] quit

# Create VLAN 200, and specify its descriptive string as Dept2.

[SwitchA] vlan 200

[SwitchA-vlan200] description Dept2

[SwitchA-vlan200] quit

# Create VLAN-interface 100 and VLAN-interface 200, and assign IP addresses 192.168.1.1 and

192.168.2.1 to them respectively. The two VLAN-interfaces are used for forwarding packets from Host 1

to Server 2 at Layer 3.

[SwitchA] interface Vlan-interface 100

[SwitchA-Vlan-interface100] ip address 192.168.1.1 24

[SwitchA-Vlan-interface100] quit

[SwitchA] interface Vlan-interface 200

[SwitchA-Vlan-interface200] ip address 192.168.2.1 24

z

Configure Switch B.

# Create VLAN 100, specify its descriptive string as Dept1, and add Ethernet 1/0/13 to VLAN 100.

system-view

[SwitchB] vlan 100

[SwitchB-vlan100] description Dept1

[SwitchB-vlan100] port Ethernet 1/0/13

[SwitchB-vlan103] quit

# Create VLAN 200, specify its descriptive string as Dept2 and add Ethernet 1/0/11 and Ethernet 1/0/12

to VLAN 200.

This manual is related to the following products: