1.【问答题】
某公司新购一批交换机对网络进行升级改造,网络工程师计划对交换机进行配置,配置内容如下:
①配置交换机的基本信息,包括日期、时间、时区及名称,以方便管理。
②配置Console用户界面的认证方式为AAA,实现通过Console口登录交换机时需要本地认证的功能。
③配置VLAN 10作为管理VLAN,管理地址为172.16.100.1,接口GigabitEthernet0/0/24为管理接口。
④开启交换机Telnet功能,认证方式为AAA,便于对交换机进行远程维护。
⑤创建管理员用户Adminxyz,设置用户登录口令xyz@789#。
【问题1】(15分)
对交换机进行初始配置时,需使用PC机的(1)接口连接交换机的(2)接口,使用终端仿真软件,设置其(3)、流控方式、停止位、数据位等参数登录到交换机。设置日期、时间、时区及名称时,应在(4)视图下,使用(5)命令配置日期,使用clock timezone命令配置其时区和时间。
请根据配置内容,补齐以下配置片段:
[Switch] vlan 10
[Switeh-v1an10)(6)
//配置管理vlan
[Switch-vlan10] quit
[Switch] interface vlanif 10
[Switch-vlanif10] ip address(7)24
[Switch-vlanif10] quit
[Switch] interface GigabitEthernet0/0/24
[Switeh-GigabitEthernet0/0/24] port link-type(8)
[Switch-GigabitEthernet0/0/24] port default(9)
[Switch-GigabitEthernet0/0/24] quit
[Switch] telnet server(10)
[Switch] user-interface(11) 04 //进入VTY0~VTY4用户界面视图
[Switch-ui-vty0-4] protocol inbound telnet
[Switch-ui-vty0-4] user privilege level 15
[Switch-ui-vty0-4]authentication-mode(12)
[Switch-ui-vty0-4] quit
[Switch] aaa
[Switch-aaa] local-user(13)password irreversible-cipher xyz@789#
[Switch-aaa] local-user adminxyz privilege level 15 // (14)
Warning: This operation may affect online users, are you sure to change the user privilege level ?[Y/N]y
[Switch-aaa] local-user adminxyz service-type(15)
[Switch-aaa] quit