首页
登录
从业资格
某公司建立局域网拓扑图如图4-1所示。公司计划使用路由器作为DHCP服务器,根据
某公司建立局域网拓扑图如图4-1所示。公司计划使用路由器作为DHCP服务器,根据
练习题库
2022-08-02
42
问题
某公司建立局域网拓扑图如图4-1所示。公司计划使用路由器作为DHCP服务器,根据需求,公司内部使用C类地址段,服务器地址段为192.168.2.0/24,S2和S3分别为公司两个部门的接入交换机,分别配置VLAN 10和VLAN 20,地址段分别使用192.168.10.0/24和192.168.20.0/24,通过DHCP服务器自动为两个部门分配IP地址,地址租约期为12小时。其中,192.168.10.1~192.168.10.10作为保留地址。
图4-1【问题1】(10分,每空1分)下面是R1的配置代码,请将下面配置代码补充完整。R1#config tR1(config)#interface FastEthernet0/0R1(config-if)#ip address(1)(2)R1(config-if)#no shutdownR1(config-if)#exitR1(config)#ip dhcp(3)depart1R1(dhcp-config)#network 192.168.10.0 255.255.255.0R1(dhcp-config)#default-router 192.168.10.254 255.255.255.0R1(dhcp-config)#dns-server(4)R1(dhcp-config)#lease 0(5)0R1(dhcp-config)#exitR1(config)#ip dhcp pool depart2R1(dhcp-config)#network(6)(7)R1(dhcp-config)#default-router 192.168.20.254 255.255.255.0R1(dhcp-config)#dns-server 192.168.2.253R1(dhcp-config)#lease 0 12 0R1(dhcp-config)#exitR1(config)#ip dhcp excluded-address(8)(9)R1(config)#ip dhcp excluded-address(10)//排除掉不能分配的IP地址R1(config)#ip dhcp excluded-address 192.168.20.254......【问题2】(5分,每空1分)下面是S1的配置代码,请将下面配置代码或解释补充完整。S1#config terminalS1(config)#interface vlan 5S1(config-if)#ip address 192.168.2.254 255.255.255.0S1(config)#interface vlan 10S1(config-if)#ip helper-address(11)∥指定DHCP服务器的地址S1(config-if)#exitS1(config)#interface vlan 20......S1(config)#interface f0/24S1(config-if)#switchport mode(12)S1(config-if)#switchport trunk(13)vlan all∥允许所有VLAN数据通过S1(config-if)#exitS1(config)#interface f0/21S1(config-if)#switchport mode accessS1(config-if)#switchport access vlan 5S1(config-if)#exitS1(config)#interface f0/22S1(config-if)#switchport mode accessS1(config-if)#switchport access(14)S1(config)#interface f0/23S1(config-if)#switchport mode accessS1(config-if)#switchport access(15)
选项
答案
解析
【问题1】(每空1分,共10分)
(1)192.168.1.2
(2)255.255.255.0
(3)pool
(4)192.168.2.253
(5)12
(6)192.168.20.0
(7)255.255.255.0
(8)192.168.10.1
(9)192.168.10.10
(10)192.168.10.254
【问题2】(每空1分,共5分)
(11)192.168.1.2
(12)trunk
(13)allowed
(14)vlan 10
(15)vlan 20
【问题1】(10分,每空1分)
下面是R1的配置代码,请将下面配置代码补充完整。
R1#config t
R1(config)#interface FastEthernet0/0
R1(config-if)#ip address 192.168.1.2 255.255.255.0//配置接口IP地址和掩码
R1(config-if)#no shutdown//激活接口
R1(config-if)#exit
R1(config)#ip dhcp pool depart1//配置DHCP地址池名字
R1(dhcp-config)#network 192.168.10.0 255.255.255.0
R1(dhcp-config)#default-router 192.168.10.254 255.255.255.0
R1(dhcp-config)#dns-server 192.168.2.253//DNS地址
R1(dhcp-config)#lease 0 12 0//租约时间12小时
R1(dhcp-config)#exit
R1(config)#ip dhcp pool depart2
R1(dhcp-config)#network 192.168.20.0 255.255.255.0//作用域范围
R1(dhcp-config)#default-router 192.168.20.254 255.255255.0
R1(dhcp-config)#dns-server 192.168.2.253
R1(dhcp-conlig)#lease 0 12 0
R1(dhcp-coniig)#exit
R1(config)#ip dhcp excluded-address 192.168.10.1 192.168.10.10
R1(config)#ip dhcp excluded-address 192.168.10.254//排除掉不能分配的IP地址
【问题2】(每空1分,共5分)
下面是S1的配置代码,请将下面配置代码或解释补充完整。
S1#config terminal
S1(config)#interface vlan 5
S1(config-if)#ip address 192.1682.254 255.255255.0
S1(config)#interface vlan 10
S1(config-if)#ip helper-address 192.168.1.2∥指定DHCP服务器的地址
S1(config-if)#exit
S1(config)#interface vlan 20
...
S1(config)#interface f0/24
S1(config-if)#switchport mode trunk
S1(config-if)#switchport trunk allowed vlan all//允许所有VLAN数据通过
S1(config-if)#exit
S1(config)#interface f0/21
S1(config-if)#switchport mode access
S1(config-if)#switchport access vlan 5
S1(config-if)#exit
S1(config)#interface f0/22
S1(config-if)#switchport mode access
S1(config-if)#switchport access vlan 10
S1(config)#interface f0/23
S1(config-if)#switchport mode access
S1(config-if)#switchport access vlan 20
转载请注明原文地址:https://tihaiku.com/congyezige/2406461.html
本试题收录于:
中级 网络工程师题库软件水平考试初中高级分类
中级 网络工程师
软件水平考试初中高级
相关试题推荐
DHCP客户端可从DHCP服务器获得()。A.DHCP服务器的地址和Web服务器
在层次化局域网模型中,下列关于核心层的描述中,正确的是()。A.为了保障安全性,
POP3协议采用()模式,客户端代理与POP3服务器通过建立(请作答此空)连接来
()不属于网络测试对象。A.服务器 B.路由器 C.网段 D.CPU
某企业最近上线了ERP系统,该系统运行的网络环境如图所示。企业信息中心目前拟对该
某企业信息中心委托系统集成单位开发了企业网站,将应用服务器、Web服务器和数据库
请根据下面叙述的场景选用适当的设计模式。若某面向对象系统中的某些类有且只有一个实
某公司欲开发一套基于Web的通用共享单车系统。该系统的主要功能如下:1.商家注册
性能测试过程中需要对数据库服务器的资源使用进行监控,()不属于应该监控的指标
造成软件测试风险的主要原因不包括()A.测试计划的不充分 B.测试方法有误
随机试题
精装书装订过程中,适用于书心造型的加工方法包括()等。A.圆背加工 B.圆角
期刊传播的本质属性是( )。A.按卷期出版 B.连续出版 C.以专题出版
A饭店要解决员工之间薪酬分配的公平性问题,必须建立科学的()。 A.薪酬调
出现产后出血应行子宫切除的是A.凝血功能障碍 B.胎盘嵌顿 C.宫缩乏力
下列关于功能性贬值的各种说法中,正确的有( )。A.如果可以直接确定设备的更新
既能发汗解肌,又能温通经脉的药物是A、桂枝 B、羌活 C、细辛 D、紫苏
按研究内容分类,证券研究报告可以分为()。 Ⅰ.宏观研究 Ⅱ.行业研究
年名义利率为12%,按月计息,则年实际利率为( )。 A.12%
企业员工绩效考评的一般程序包括()。A.确定考评指标、考评者和被考评者 B.组
从类型上划分,风险报告可分为()。A.内部报告和综合报告 B.内部报告和外部
最新回复
(
0
)