问题 问答题

在该单位的三层交换机Switch1上,实现PC1与PC2之间的相互通信的配置如下,请将(1)~(6)空缺处的配置语句或命令解释填写完整。
Switch1 # vlan database
Switch1 (vlan) # (1) (创建一个ID号为2的VLAN,并命名为lab01)
……(此处省略创建一个ID号为3的VLAN,并命名为lab02的配置)
Switch1 (vlan) # exit
Switch1 # config terminal
Switch1 (config) # interface GigabitEthernet0/1/20 (进入GE0/1/20接口的配置子模式)
Switch1 (config-if) # (2) (设置端口为trunk模式)
Switch1 (config-if) # (3) (允许当前端口通过所有VLAN数据包)
……(此处省略将端口GE0/1/21分配给VLAN 3的配置)
Switch1(config-if) # exit
Switch1 (config) # ip routing (4)
Switch1 (config) # interface vlan 2
Switch1 (config-if)#no shutdown
Switch1 (config-if) #ip address 10.1.1.254 255.255.255.0 (5)
Switch1 (config-if) exit
Switch1 (config) # interface vlan 3
Switch1 (config-if)# no shutoown
Switch1 (config-if) # ip address 10.1.2.254 255.255.255.0
Switch1 (config-if ) # end
Switch1 # show ip route
……(此处省略部分信息)
10.1.0.0/24 is subnetted, 2subrets
C 10.1.1.0 is directly connected,Vlan 2
(6) 10.1.2.0 is directly connected, Vlan 3

答案

参考答案:C

解析:在全局配置模式下,使用命令vlan database进入VLAN配置子模式“Switch(vlan)#”,然后使用命令vlan<vlan ID>name<vlan name>创建一个新的VLAN。因此,创建一个ID号为2的VLAN,并命名lab01的配置语句为vlan 2 name lab01。
配置语句interface GigabitEthernet0/1/20使得交换机从配置模式进入到千兆以太网端口GE0/1/20的配置子模式。根据(2)空缺处所在命令行后面的解释信息“设置端口为trunk模式”可知,(2)空缺处所填写的配置语句是switchport mode trunk。
若允许当前端口GE0/1/20通过所有VLAN数据包,则(3)空缺处所填写的配置语句是switchpoft trunk allowed vlan all。
配置语句ip routing的功能是开启三层交换机Switch1的路由功能。
在VLAN接口配置子模式下,使用命令ip address 10.1.1.254 255.255.255.0定义当前VLAN接口上的地址,即PCI的网关地址。
在全局配置模式下,使用命令show ip route查看三层交换机Switch1的路由表信息。在图7-26拓扑结构中,Vlan 2、Vlan 3都属于三层交换机Switchl的直连路由。因此,(6)空缺处的应填入直连路由标识C。

阅读理解

The holidays are a time to give. These charities---and many more—are looking for volunteers and donations.

World Wildlife Fund

The World Wildlife Fund is helping to protect endangered species through the Symbolic Species Adoption program. Those who “adopt” an animal will receive an adoption certificate and a photo of their species. Anyone can support endangered species year round by buying WWF apparel(服装). worldwildlife. Org/giving

DoSomething. org

This month, Dosomething. org launched their holiday campaign, “Grandparents Gone Wired”. The goal of the campaign is to make it easier for senior citizens to keep in touch with their loved ones using the Internet. Teens can volunteer to help seniors in their community. Volunteers are able to win prizes and scholarships. dosomething. org/grandparents

Coins for Change

Disney’s Club Penguin, a virtual gaming site for kids, launched its annual Coins for Change campaign this month. From Dec. 15 to Dec. 27, Club Penguin players can donate virtual coins to real-world causes. If players reach the donation goal, Club Penguin will donate $2 million to charity projects. clubpenguin.com.

Toys for Tots

Each year, the U.S. Marine Corps Toys Program collects new, unwrapped toys for the holidays. Communities across the nation host Toys for Tots drives around the holiday season. The toys collected are given as gifts to needy children so they can experience the joy of Christmas. toyfortots.org

American Red Cross

All you need is a pen and a piece of paper. The American Red Cross Holiday Mail Heroes Program is collecting handwritten card to send to members of the U.S. Armed Forces during the holidays. The charity has also set up a Holiday Giving Catalog where you can buy personal gifts, such as babysitting lessons. redcross.org

The Warm Coats & Warm Hearts Drive

The Warm Coats & Warm Hearts Drive is a non-profit organization sponsored by ABC’s Good Morning America and Burlington Coat Factory. During the holiday season Burlington stores collect gently worn coats. The donated coats are given to people in need to keep warm during the winter. onewarmcoat.org

小题1:David, 8, is fond of playing virtual games. Which charity should he attend?

A.Coins for Change.

B.Toys for Tots.

C.DoSomething,org.

D.American Red Cross.小题2:Handwritten cards for members of the U.S. Armed Forces are collected by____.

A.Disney’s Club Penguin

B.the Warm Coats& Warm Hearts Drive

C.the U.S. Marine Corps Toys for Tots Program

D.the American Red Cross Holiday Mail for Heroes Program小题3:From the passage we can learn that______.

A.Club Penguin donates $2 million to charity projects yearly

B.old toys collected are given to needy children as gifts

C.teens can help seniors contact their family members online

D.whoever donates warm coats is likely to win scholarships

单项选择题