服务器重定向功能配置实例 <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

校园内,教务处、校长室和服务器分别划分在VLAN2VLAN3VLAN4,分别通过端口Ethernet 1/0/1Ethernet1/0/2Ethernet1/0/3接入交换机。VLAN2VLAN3VLAN4的网段分别为10.15.17.1/2410.15.18.1/24SERVERIP地址为10.15.20.2MAC地址为00e0-fc01-0101,所属的VLANVLAN 4。交换机的端口Ethernet1/0/4SERVER相连。要求启动服务器重定向功能,对教务处、校长室的HTTP流量都进行重定向。

1. 组网图

 

<?xml:namespace prefix = v ns = "urn:schemas-microsoft-com:vml" />
Internet

 

Inrourouter

ternet
I
Server
(2)
三层交换机
(4)
<?xml:namespace prefix = w ns = "urn:schemas-microsoft-com:office:word" />  

 

 

1 ): VLAN 2 ,教务处

(2) VLAN 3 ,校长室

(3) VLAN 4: 服务器 SEVER 所在 VLAN

 

2. 配置步骤

# 在交换机上配置教务处VLAN

[Quidway] vlan 2

[Quidway-vlan10] port Ethernet 1/0/1

[Quidway-vlan10] quit

[Quidway] interface vlan 2

[Quidway-vlan-interface10] ip address 10.15.17.1 255.255.255.0

# 在交换机上配置校长室VLAN

[Quidway] vlan 3

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

[Quidway-vlan20] quit

[Quidway] interface vlan 3

[Quidway-vlan-interface20] ip address 10.15.18.1 255.255.255.0

# 在交换机上配置Web CacheVLAN

[Quidway] vlan 4

[Quidway-vlan40] port Ethernet 1/0/3

[Quidway-vlan40] quit

[Quidway] interface vlan 4

[Quidway-vlan-interface40] ip address 10.15.20.1 255.255.255.0

# 在交换机上配置Webcache重定向功能。

[Quidway] webcache address 10.15.20.2 mac 00e0-fc01-0101 vlan 40 port Ethernet1/0/4

[Quidway] webcache redirect-vlan 2

[Quidway] webcache redirect-vlan 3