HCL配置(一)–PCping通路由器及HostTelnet路由器
一、任务
- 命名R、2S为自己姓名首字母
- 给设备配置时间
- PC能够Ping通R
- Host能telnet路由器
二、配置
1、新建工程并添加设备
单机图示图标,新建工程,自己命名选择路径保存
从左边选择设备,拖入操作区,使用GE线缆将设备连接起来,连接Host的时候注意选择有线网卡
2、查看Host的IP并配好PC、Host相关参数
在真机环境中打开命令提示符,输入ipconfig
获得刚刚新建的网卡IP
图示显示169…未分配地址,打开网络管理界面,右击Vbox…网卡
属性–找到Internet协议版本4(TCP/IPv4),双击后配置静态IP
禁用-启用该网卡,再次输入ipconfig
查看IP地址
启动所有设备
右击PC,选择配置,输入相关参数,启用接口
3、路由器配置
Ctrl+C退出自动配置,按enter继续
(1)修改名称
<H3C>system-view |
(2)配置接口
- G0/0 192.168.11.1
- G0/1 192.168.10.1
[LWR]int g0/0 |
(3)开启telnet服务
[LWR]telnet server enable |
真机到控制面板中选择程序,启用服务,勾选Telnet Client,确定,开启telnet功能
4、交换机配置
S1:
Ctrl+C enter
<H3C>sys |
S2:
Ctrl+C enter
<H3C>sys |
5、测试
(1)PCping路由器地址
(2)Host(真机)pingR并telnet
6、时间配置
System View: return to User View with Ctrl+Z.
[LWR]clock p
[LWR]clock protocol none
[LWR]quit
7、保存
The current configuration will be written to the device. Are you sure? [Y/N]:y
Please input the file name(*.cfg)[flash:/startup.cfg]
(To leave the existing filename unchanged, press the enter key):
Validating file. Please wait…
Configuration is saved to device successfully.