4.某企业的网络结构如图4-1所示。
图4-1
【问题1】(6分)
根据4-1所示,完成交换机的基本配置,请根据描述,将以下配置代码补充完整。
<HUAWEI>(1)
[HUAWEI](2)Switch
[Switch]vlan(3)10 20 30 100 200
[Switch](4)gigabitethernet0/0/1
[Switch-GigabitEthernet0/0/1]port link-type(5)
[Switch-GigabitEthernet0/0/1]port trunk allow-pass vlan(6)
[Switch-GigabitEthernet0/0/1]quit
[Switch]interface vlanif 10
[Switch-Vlanif10]ip address 10.10.1.1.255.255.255.0
[Switch-Vlanif10]quit
......
VLAN 20 30 100 200配置略
......
【问题2】(9分)
按照公司规定,禁止市场部和研发部工作日每天8:00~18:00访问公司视频服务器,其他部门和用户不受此限制。请根据描述,将以下配置代码补充完整。
......
[Switch](7)satime 8:00 to 18:00 working-day
[Switch]acl 3002
[Switch-acl-adv-3002]rule deny ip source 10.10.2.0.0.0.0.255 destination 10.10.20.1 0.0.0.0 timc-range satime
[Switch-acl-adv-3002]quit
[Switch]acl 3003
[Switch-acl-adv-3003]rule deny ip source 10.10.3.0.0.0.0.255 destination 10.10.20.10.0.0.0 time-range satime
[Switch-acl-adv-3003]quit
[Switch]traffic classifier c_market//(8)
[Switch-classifier-c_market](9)acl 3002//将ACL与流分类关联
[Switch-classifier-c_market]quit
[Switch]traffic classifier c_rd
[Switch-classifier-c_rd]if-match acl 3003//将ACL与流分类关联
[Switch-classifier-c_rd]quit
[Switch](10)b_market//创建流行为
[Switch-behavior-b_market](11)//配置流行为动作为拒绝报文通过
[Switch-behavior-b market]quit
[Switch]traffic behavior b_rd
[Switch-behavior-b_rd]deny
[Switch-behavior-b_rd]quit
[Switch](12)p_market//创建流策略
[Switch-trafficpolicy-p_market]classifier c_market behavior b_market
[Switch-trafficpolicy-p_market]quit
[Switch]traffic policy p_rd//创建流策略
[Switch-trafficpolicy-p_rd]classifier c_rd behavior b_rd
[Switch-trafficpolicy-p_rd]quit
[Switch]interface(13)
[Switch-GigabitEthernet0/0/2]traffic-policy p_market(14)
[Switch-GigabitEthernet0/0/2]quit
[Switch]interface gigabitethernet 0/0/3
[Switch-GigabitEthernet0/0/3]traffic-policy(15)inbound
[Switch-GigabitEthernet0/0/3]quit