要在一个接上配置IP地址和子网掩码,正确的命令是哪个?()
第1题:
以下为Cisco以太网交换机Catalyst 2924(WS-C2924XL-A,拥有24个10/100 M自适应端口)的VLAN划分命令,请解释【7】~【11】处的标有下划线部分配置命令的含义。
switch>en ∥进入特权执行态
switch#config term ∥进入通用配置状态
switch(config)# 【7】 ∥配置vlan l(ID为l的Vlan)
switch(config-if)#ip address 202.112.111.23 255.255.255.0
switch(config-if)#management
switch(config-if)#exit ∥退出对vlan的配置状态
switch(config)#interface fa0/1 ∥配置第一模块的第二个端口
switch(config-if)# 【8】 ∥设置VLAN模式为access
switch(config-if)# 【9】 ∥将该端口加入VLAN
switch(config.if)#exit ∥退出对端口的配置状态
…
switch(config)#interface fa0/2 ∥配置第一模块的第三个端口,
switch(config-if)# 【10】 ∥设置该端口VLAN模式为multi
switch (config-if)# 【11】 ∥加入2、3号VLAN
switch(config-if)#exit//退出对端口的配置状态
第2题:
A.ip address 192.168.1.1 255.255.255.253
B.ip address 192.168.1.1 255.255.255.250
C.ip address 192.168.1.1 255.255.255.240
D.ip address 192.168.1.1 255.255.255.0
第3题:
A.Switch(config)#ip address 192.168.1.1
B.Switch(config-if)#ip address 192.168.1.1
C.Switch(config-if)#ip address 192.168.1.1 255.255.255.0
D.Switch(config-if)#ip address 192.168.1.1 netmask 255.255.255.0
第4题:
某局域网通过两台路由器划分为3个子网,拓扑结构和地址分配如图1-7所示。
以下是图1-7所示的拓扑结构中,路由器R2的部分配置命令列表,请为(35)、(36)空缺处选择合适的命令/参数,实现R2的正确配置。
R2(config)#int e0
R2(config-if)#(35)
R2(config-if)# no shutdown
R2(config-if)#exit
R2(config)# ip routing
R2(config)#(36)
A.ip address 192.168.2.1 255.255.255.0
B.ip address 192.168.2.2 255.255.255.0
C.ip address 192.168.3.1 255.255.255.0
D.ip address 192.168.1.2 255.255.255.0
第5题:
阅读以下说明,回答问题1~3,将答案填入对应的解答栏内。
随着越来越多的机构为任务关键型通信寻求经济利益,高可靠性变得日益关键。网络通信注意力集中在提供一种7×24小时都可用的网络架构上。可是,最大的挑战之一不是来自于网络架构,而是来自于用户级的工作站和网络设备。
热备份路由选择协议(HSRP)为IP碉络提供了容错和增强的路由选择功能。如图5-1就是一个典型的HSRP网络的实现。
两台多层交换机的配置如下,解析配置文件中部分语句的意义。
***Switch1的交换引擎的配置***
Switch1>(enable)set vtp mode server (1)
Switch1>(enable)set vtp domain Core Net //设置VTP域名
Switch1>(enable)set vlan 10 name CaiWuBu //创建VLAN 10
Switch1>(enable)set vlan 20 name XingZheng //创建VLAN 20
Switch1>(enable)set trunk 1/1 on dotlq 1-1005 (2)
Switch1 (2) (enable)set spantree root 1-40 dia 4 (3)
Switch1 (3) (enable)set spantree portfast 1/1-2 enable (4)
Switch1 (4) (enable)set spantree uplinkfast enable (5)
……(略)
***Switch1的路由引擎的配置***
Switch1(config)enable secret test //设定登录口令
Switch1(config)line vty 0 4 //进入VTY模式
Switch1(config-line)login
Switch1(config-line)password test //设用户级口令
……(略)
Switch1(config-if)interface vlan 10 //进入虚接HVLAN 10
Switch1(config-if)ip address 192.168.180.60 255.255.255.192
//设定IP地址
Switch1(config-if)no shutdown //开启端口
Switch1(config-if)standby 10 ip 192.168.180.62 (6)
Switch1(config-if)standby 10 priority 110 (7)
Switch1(config-if)standby 10 preempt (8)
Switch1(config-if)interfacevlan 20 //进入虚接口VLAN 20
Switch1(config-if)ip address 192.168.180.124 255.255.255.192
//设定IP地址
Switch1(config-if)no shutdown //开启端口
Switch1(config-if)standby 20 ip 192.168.180.126
Switch1(config-if)standby 20 priority 110
Switch1(config-if)standby 20 preempt
……(略)
***Switch2的交换引擎的配置***
Switch2>(enable)set vtp mode server
Switch2>(enable)set vtp domain Core_Net //设置VTP域名
Switch2>(enable)set vlan 10 name CaiWuBu //创建VLAN 10
Switch2>(enable)set vlan 20 name XingZheng //创建VLAN 20
Switch2>(enable)set trunk 1/1 on dotlq 1-1005
Switch2>(enable)set spantree secondary root 1-40 dia 4
……(略)
***Switch2的路由引擎的配置**+
Switch2(config)enable secret test //设定登录口令
……(略)
Switch2(config-if)interface vlan 10 //进入虚接口VLAN 10
Switch2(config-if)ip address 192.168.180.61 255.255.255.192
//设定IP地址
Switch2(config-if)no shutdown //开启端口
Switch2(config-if)standby 10 ip 192.168.180.62
Switch2(config-if)standby 10 priority 100
Switch2(config-if)standby 10 preempt
Switch2(config-if)interface vlan 20 //进入虚接口VLAN 20
Switch2(config-if)ip address 192.168.180.125 255.255.255.192
Switch2(config-if)no shutdown
Switch2(config-if)standby 20 ip 192.168.180.126
Switch2(config-if)standby 20 priority 100
Switch2(config-if)standby 20 preempt
……(略)
第6题:
Cisco 3548交换机采用telnet远程管理方式进行配置,其设备管理地址是222.38.12.23/24,缺省路由是222.38.12.1。下列对交换机预先进行的配置,正确的是
A)Switch-3548(config)#interface vlan1
Switch-3548(config-if)#ip address 222.38.12.23 255.255.255.0
Switch-3548(config-if)#ip default-gateway 222.38.12.1
Switch-3548(config-if)#exit
Switch-3548(config)#line vty 0 4
Switch-3548(config-line)#password 7 ccc
Switch-3548(config-line)#exit
B)Switch-3548(config)#interface vlan1
Switch-3548(config-if)#ip address 222.38.12.23 255.255.255.0
Switch-3548(config-if)#exit
Switch-3548(config)#ip default-gateway 222.38.12.1
Switch-3548(config)#line vty 0 4
Switch-3548(config-line)#password 7 ccc
Switch-3548(config-line)#exit
C)Switch-3548(config)#interface vlan1
Switch-3548(config-if)#ip address 222.38.12.23 255.255.255.0
Switch-3548(config-if)#exit
Switch-3548(config)#ip default-route 222.38.12.1
Switch-3548(config)#line vty 0 4
Switch-3548(config-line)#password 7 ccc
Switch-3548(config-line)#exit
D)Switch-3548(config)#interface vlan1
Switch-3548(config-if)#ip address 222.38.12.23 255.255.255.0
Switch-3548(config-if)#exit
Switch-3548(config)#ip default-gateway 222.38.12.1
Switch-3548(config)#line aux 0 4
Switch-3548(config-line)#password 7 ccc
Switch-3548(config-line)#exit
第7题:
Switch1的f0/24口接在Switch 0的f0/2口上,请根据本题的示意图完成或解释以下 Switch0的配置命令。
Switch0(config) interface(8)(进入虚子接口)
Switch0(config-if) ip address 203.12.12.1 255.255.255.0(加IP地址)
Switch0(config-if) no shutdown(9)
Switch0(config-if) standby 1 ip 203.12.12.253(建HSRP组并设虚IP地址)
Switch0(config-if) standby 1 priority 110(10)
Switch0(config-if) standby 1 preempt(11)
第8题:
Which command on router EzonexamA will assign the last usable IP address from the 192.168.32.128/28 subnetwork to a router interface?
A. EzonexamA(config-if) ip address 192.168.32.142 255.255.255.240
B. EzonexamA(config-if) ip address 192.168.32.143 255.255.255.240
C. EzonexamA(config-if) ip address 192.168.32.158 255.255.255.240
D. EzonexamA(config-if) ip address 192.168.32.145 255.255.255.240
E. EzonexamA(config-if) ip address 192.168.32.144 255.255.255.240
F. EzonexamA(config-if) ip address 192.168.32.158 255.255.255.240
G. None of the above
第9题:
下表是该系统中路由器的IP地址分配表。
请根据上图完成以下R3路由器的配置:
R3(config)interface e0/1(进入接口e0/1配置模式)
R3(coafig-if) ip address 202.115.13.254(4)(设置IP地址和掩码)
R3(config) interface s0/0(进入串口配置模式)
R3(config-if) ip address(5)<255.255.255.0(设置IP地址和掩码)
R3(config) interface s0/1
R3(config-if)ip address(6)255.255.255.0
R3(config) interface s0/2
R3(eonfig-if)ip address(7)255.255.255.0
R3(config) interface s0/3
R3(eonfig-if)ip address(8)255.255.255.0
R3(config) interface s0/4
R3(config-if)ip address(9)255.255.255.0
R3(config) interface s0/5
R3(config-if) ip address(10)255.255.255.0
第10题:
【问题2】(3分)
根据图4-1的配置,补充完成下面路由器的配置命令:
Router(config)# interface (3)
Router(config-if)#ip address 10.10.1.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)# interface (4)
Router(config-if)# ip address 192.168.1.1 255.255.255.0
Router(config)# interface (5)
Router(config-if)# ip address 10.10.2.1 255.255.255.0
【问题2】(3分)
(3)ethernet 0/0 (e0/0)
(4)ethernet 0/l (e0/1)
(5)serial0/0 (s0/0)