阅读以下说明,回答问题1至问题3,将解答填入解答栏内。 【说明】 某公司租用了一段C类地址203.12.11.0/24~203.12.14.0/24,如下图所示。其网间地址是172.11.5.14/24。要求网内所有PC都能上网。

admin2009-01-10  29

问题 阅读以下说明,回答问题1至问题3,将解答填入解答栏内。
【说明】
   某公司租用了一段C类地址203.12.11.0/24~203.12.14.0/24,如下图所示。其网间地址是172.11.5.14/24。要求网内所有PC都能上网。

选项

答案(1)设置端口为中继(或Trunk)模式 (2)设置Trunk采用802.1q格式(或dotlq) (3)创建vlanll,并命名为lab01 (4)switchport mode access (5)switchport access vlan11

解析 由题目要求可知,Switch1的端口24为trunk口,其余各口属于vlan11,故Switch1的配置及解释如下。
   Switch1# config terminal
   Switch1(config) #interface f0/24               (进入端口24配置模式)
   Switch1(config-if)# switchport mode trunk       设置端口为中继模式
   Switch1(cOnfig-if)# switchport trunk encapsulation dotlq设置Trunk采用 802.1q格式
   Switch1(config-if)# switchport trunk allowed all(允许所有VLAN从该端口交换数据)
   Switch1(config- if)#exit
   Switch1(config)#exit
   Switchl# vlan database
   Switch1(vlan) # vlan11 name lab01               创建vlan11,并命名为lab01
   Switch1(vlan)#exit
   Switch1#config terminal
   Switch1(config)# interface f0/9                 (进入f0/9的配置模式)
   Switch1(config- if)# switchport mode access      (设置端口为接入链路模式)
   Switch1(config- if)# switchport access vlan11    (把f0/9分配给VLAN11)
   Switch1(config-if)#exit
   Switch1(config)#exit
转载请注明原文地址:https://kaotiyun.com/show/9XPZ777K
0

相关试题推荐
最新回复(0)