基本网络连接与VRP的基本操作「网络工程师之路」

「这是我参与11月更文挑战的第6天,活动详情查看:2021最后一次更文挑战」。

基本网络连接与VRP的基本操作

【实验目的】

​ 了解并掌握模拟器组网的基本使用方法
​ 了解并掌握模拟器环境下的抓包及查看方法
​ 掌握交换机的基本配置

【网络拓扑】

​ 网络拓扑连接,如图1所示。

image-20211106091948478

【配置规划】

​ PC1和PC2的IP地址分别为192.168.1.1/24和192.168.1.2/24。默认网关为192.168.1.254。

【练习任务1】

1.构建如图1的拓扑结构;

image-20211106092017998

2.将PC1、PC2的IP参数按要求进行设置。

image-20211106092031927

image-20211106092045623

3.在PC1上ping PC2,查看连通的情况;

image-20211106092054215

4.在交换机LSW1上的接口上启动抓包,然后在PC1上ping PC2,在wireshark上查看抓到的包的情况,并对通信过程进行分析。

image-20211106092102535

image-20211106092114953

先是ARP广播,谁是192.168.1.2 ,然后192.168.1.2所在的机器应答,并把MAC地址发送,然后192.168.1.1发送请求给192.168.1.2 192.168.1.2发送应答给192.168.1.1。

【练习任务2】

1. 将交换机的名称配置为SwitchA;

image-20211106092252443

2. 将控制台密码设置为123,远程登录密码设置为456,并要求特权密码在配置文件中是以加密形式保存。

image-20211106092257418

image-20211106092304698

image-20211106092308875

image-20211106092315404

3. 将交换机的当前配置保存在vrpvfg.cfg文件中。

image-20211106092325482

4. 查看saved-configuration文件和current-configuration文件的内容。

image-20211106092333976

image-20211106092341327

5. 查看在用户视图、系统视图下,列举部分可以执行的命令?

User view commands:
用户视图:

命令 含义
cd Change current directory
check Check information
clear Clear information
clock Specify the system clock
cluster Run cluster command
cluster-ftp FTP command of cluster
compare Compare function
configuration Configuration interlock
copy Copy from one file to another
debugging Enable system debugging functions
delete Delete a file
dir List files on a file system

System view commands:
系统视图:

命令 含义
aaa AAA
acl Specify ACL configuration information
alarm Enter the alarm view
anti-attack Specify anti-attack configurations
application-apperceive Set application-apperceive information
arp ARP module
arp-miss Specify arp suppress configuration information, default is disabled
authentication Authentication
autoconfig AutoConfig configuration information
bfd Specify BFD(Bidirectional Forwarding Detection configuration information
bgp Border Gateway Protocol(BGP)

6.请使用命令将将交换机与PC0相连的接口关闭。然后,再打开接口。

image-20211106092440787

image-20211106092451202

image-20211106092501410

image-20211106092506718