beautypg.com

H3C Technologies H3C S3600 Series Switches User Manual

Page 774

background image

1-5

[Sysname-Vlan-interface10] quit

# Create VLAN 20 for the R&D department, and assign an IP address 192.168.2.1 to the

VLAN-interface 20.

[Sysname] vlan 20

[Sysname-vlan20] port Ethernet 1/0/2

[Sysname-vlan20] quit

[Sysname] interface Vlan-interface 20

[Sysname-Vlan-interface20] ip address 192.168.2.1 24

[Sysname-Vlan-interface20] quit

# Create VLAN 30 for the administrative department, and assign an IP address 192.168.3.1 to the

VLAN-interface 30.

[Sysname] vlan 30

[Sysname-vlan30] port Ethernet 1/0/3

[Sysname-vlan30] quit

[Sysname] interface Vlan-interface 30

[Sysname-Vlan-interface30] ip address 192.168.3.1 24

[Sysname-Vlan-interface30] quit

# Create VLAN 40 for the WEB Cache Server, and assign an IP address 192.168.4.1 to the

VLAN-interface 40.

[Sysname] vlan 40

[Sysname-vlan40] quit

[Sysname] interface Vlan-interface 40

[Sysname-Vlan-interface40] ip address 192.168.4.1 24

[Sysname-Vlan-interface40] quit

# Create VLAN 50 for the switch to connect to the router, and assign an IP address 192.168.5.1 to

VLAN-interface 50.

[Sysname] vlan 50

[Sysname-vlan50] port Ethernet 1/0/5

[Sysname-vlan50] quit

[Sysname] interface Vlan-interface 50

[Sysname-Vlan-interface50] ip address 192.168.5.1 24

[Sysname-Vlan-interface50] quit

# Configure port Ethernet 1/0/4 (through which the switch connects to the Web Cache Server) as a

Truck port, and configure the port to allow the packets of VLAN 40 and VLAN 50 to pass through.

[Sysname] interface Ethernet 1/0/4

[Sysname-Ethernet1/0/4] port link-type trunk

[Sysname-Ethernet1/0/4] port trunk permit vlan 40 50

[Sysname-Ethernet1/0/4] quit

# Enable the WEB Cache redirection function, and redirect all the HTTP packets received on VLAN 10,

VLAN 20 and VLAN 30 to the WEB Cache Server.

[Sysname] webcache address 192.168.4.2 mac 0012-0990-2250 vlan 40 port Ethernet 1/0/4

[Sysname] webcache redirect-vlan 10

[Sysname] webcache redirect-vlan 20

[Sysname] webcache redirect-vlan 30

This manual is related to the following products: