第一步:在SW一、SW二、SW3上面配置基本网络。
SW1配置
sysname SW1
vlan batch 10 20 30
port-group 1
group-member Ethernet 0/0/1 Ethernet 0/0/2
port link-type trunk
port trunk allow-pass vlan all
quit
interface Ethernet0/0/10
port link-type access
port default vlan 10
quit
SW2配置
sysname SW2
vlan batch 10 20 30
port-group 1
group-member Ethernet 0/0/1 Ethernet 0/0/2
port link-type trunk
port trunk allow-pass vlan all
quit
interface Ethernet0/0/10
port link-type access
port default vlan 20
quit
SW3配置
sysname SW3
vlan batch 10 20 30
port-group 1
group-member Ethernet 0/0/1 Ethernet 0/0/2
port link-type trunk
port trunk allow-pass vlan all
quit
interface Ethernet0/0/10
port link-type access
port default vlan 30
quit网络
第二步:配置MSTP
SW1配置
stp region-configuration
region-name ntd
instance 10 vlan 10
instance 20 vlan 20
instance 30 vlan 30
active region-configuration
quit
SW2配置
stp region-configuration
region-name ntd
instance 10 vlan 10
instance 20 vlan 20
instance 30 vlan 30
active region-configuration
quit
SW3配置
stp region-configuration
region-name ntd
instance 10 vlan 10
instance 20 vlan 20
instance 30 vlan 30
active region-configuration
quit负载均衡
第三步:配置流量负载均衡且流量最优。
SW1配置
stp instance 10 root primary
SW2配置
stp instance 20 root primary
SW3配置
stp instance 30 root primaryide
第四步:配置网关
interface Vlanif 10
ip address 192.168.10.254 24
interface Vlanif 20
ip address 192.168.20.254 24
interface Vlanif 30
ip address 192.168.30.254 24
quit学习
第五步:Server1配置以下图
Client一、Client2访问Server1的ftp服务以下图:ui
第六步,抓包验证,抓取SW3的0/0/1接口数据包
以下图,能够抓取到Client1访问Server1时来回的数据包:
至此,实验配置完毕!!!!
。
。
。
。
。
。3d