阅读以下说明,回答问题。(2009年上半年试题一) [说明]某公司有一个总部和两个分部,各个部门都有自己的局域网。该公司申请了4个C类IP地址块202.112.10.0/24~202.114.13.0/24。公司各部门通过帧中继网络进行互联,网络拓扑结构如图3-15所示。
问答题
请根据图3.15完成R0路由器的配置。 R0 (confiq){}interface s0/0 (进入串口配置模式) R0(config—if)#ip address 202.114.13.1 (1) (设置IP地址和掩码) R0(confiq)#encapsulation (2) (设置串口工作模式)
【正确答案】正确答案:(1)255.255.255.0 (2)frame-relay
【答案解析】
问答题
Switch0、Switchl、Switch2和Switch3均为二层交换机。总部拥有的IP地址块为202.1 14.12.0/24。SwitchO的端口e0/24与路由器R2的端口e0/0相连,请根据图3-15完成路由器R2及Switch0的配置。 R2(config)#interface fastethernet 0/0.1 R2(config—subif)#encapsulati。n dotlq (3) R2(confiq—SUbif)#ip address 202.114.12.1 255.255.255.192 R2(conflg—subif)#no shutdc R2(config—subif)#exit R2(config)#interface fastethernet 0/0.2 R2(config—subif)#encapsulation dotlq i.(4) R2(config—subif)#ip address 202.114.12.65 255.255.255.192 R2(config—subif)#no shutdown R2(config—subif)#exit R2(config)#interface fastethernet 0/0.3 R2(config—subif)#encapsulation dotlq (5) R2(confiq—subif)#ip addresS 202.114.12.129 255.255.255.192 R2(config—subif)#no shutdown R2(config—subif)#exit R2(config)#interface fastether 0/0 R2(config—if)#no shutdown Switch0(config)#interface f0/24 Switch0(config—subif)#switchport mode (6) Switch0(config—subif)#switchport trunk encapsulation (7) Switch0(config—subif)#switchport trunk allowed all Switch0(config—subif)#exit
【正确答案】正确答案:(3)100 f4)200 (5)300 (6)trunk (7)dotlq
【答案解析】
问答题
若主机A与Switchl的端口e0/2相连,请完成Switchl的相应端口设置。 Switchl(config)#interface e0/2 Switchl(config—if)#(8) (设置端口为接入链路模式) Switchl(config-if)#(9) (把e0/2分配给VLAN100) Switchl(config—if)#exit 若主机A与主机D通信,请填写主机A与D之间的数据转发顺序。 主机A→(10)→主机D。 (10)备选答案: A.Switch1→SwitchO→R2fs0/0)→Switch0→Switch2 B.Switch1→Switch0→R2(e0/0)→Switch0→Switch2 C.Switch1→Switch0→R2(e0/0)→R2(s0/0)→R2(e0/0)→Switch0→Switch2 D.Switch1→Switch0→Switch2
【正确答案】正确答案:(8)switchport mode access (9)switchport access vlan 100 (10)B
【答案解析】
问答题
为了部门A中的用户能够访问服务器Serverl,请在R0上配置一条特定主机路由。 R0(config)#ip route 2 02.114.10.2 5 3(11) (12)
【正确答案】正确答案:(11)255.255.255.255 (12)202.114.13.2
【答案解析】