网络运维network总结知识一

网络运维network总结知识

01: 计算机网络 、 网络通信参考模型 、 交换机命令行 、 交换机命令行配置 、 数据链路层解析

02: VLAN技术及应用 、 TRUNK 、 网络层解析
03: OSPF 、 传输层 、 ACL
04: NAT 、 VRRP
05: 综合项目 、 网络升级



计算机网络 、 网络通信参考模型 、 交换机命令行 、 交换机命令行配置 、 数据链路层解析


eNSP软件与交换机命令行

问题

熟悉eNSP软件的使用 熟悉交换机的命令行视图 熟悉交换机视图间的转换

方案

在eNSP程序主窗口中,添加一台s3700交换机,进入交换机,输入相关命令进行配置和查看交换机

步骤

实现此案例需要按照如下步骤进行

一:改变命令行视图

<Huawei>system-view             //进入系统视图
[Huawei]interface Ethernet0/0/1    //进入接口视图
[Huawei-Ethernet0/0/1]quit    //返回上一视图
[Huawei]
[Huawei]interface Ethernet0/0/1    //再次进入接口视图
[Huawei-Ethernet0/0/1]return     //返回用户视图
<Huawei>

访问及配置交换机

问题

修改交换机主机名 查看交换机VRP版本 查看交换机配置 使用账户和密码登录终端 保存交换机的配置 恢复设备出厂默认值

方案

在eNSP程序主窗口中,添加一台s3700交换机,进入交换机,输入相关命令进行配置和查看交换机

步骤

实现此案例需要按照如下步骤进行

一:修改交换机主机名

进入系统视图后,使用sysname指令可以为交换机设置主机名。例如,以下操作可以将主机名设置为SW1

<Huawei>system-view 
[Huawei]sysname SW1
[SW1]

二:显示VRP版本

[Huawei]display version 
Huawei Versatile Routing Platform Software
VRP (R) software, Version 5.110 (S3700 V200R001C00)
Copyright (c) 2000-2011 HUAWEI TECH CO., LTD
Quidway S3700-26C-HI Routing Switch uptime is 0 week, 0 day, 0 hour, 17 minutes

三:查看交换机配置

查看ios名称及版本信息

[Huawei]display current-configuration 
#
sysname Huawei
#
cluster enable
ntdp enable
ndp enable
#
drop illegal-mac alarm
#
diffserv domain default
#
drop-profile default
#

四:使用账户和密码登录终端

<Huawei>system-view 
[Huawei]aaa                    //进入aaa认证
[Huawei-aaa]local-user admin01 password cipher 123    //创建账户叫admin01,密码123       
[Huawei-aaa]quit
[Huawei]user-interface console 0        
[Huawei-ui-console0]authentication-mode aaa        //激活配置

五:保存交换机的配置

<Huawei>save        
The current configuration will be written to the device.
Are you sure to continue?[Y/N]y                    //这里按y确认
Info: Please input the file name ( *.cfg, *.zip ) [vrpcfg.zip]:
Mar 12 2019 19:12:18-08:00 Huawei %%01CFM/4/SAVE(l)[0]:The user chose Y when dec
iding whether to save the configuration to the device.
Now saving the current configuration to the slot 0.
Save the configuration successfully.

六:恢复设备出厂默认值

<Huawei>reset saved-configuration     //重置配置文件
Warning: The action will delete the saved configuration in the device.
The configuration will be erased to reconfigure. Continue? [Y/N]:y    //是否擦除,回答y
Warning: Now clearing the configuration in the device.
Mar 12 2019 19:13:50-08:00 Huawei %%01CFM/4/RST_CFG(l)[1]:The user chose Y when 
deciding whether to reset the saved configuration.
Info: Succeeded in clearing the configuration in the device.
<Huawei>reboot        //重启设备
Info: The system is now comparing the configuration, please wait.
Warning: All the configuration will be saved to the configuration file for the n
ext startup:, Continue?[Y/N]:n            //提示是否再次保存,选择n
Info: If want to reboot with saving diagnostic information, input 'N' and then e
xecute 'reboot save diagnostic-information'.
System will reboot! Continue?[Y/N]:y    //是否重启,选择y

验证交换机工作原理

问题

通过2台交换机以及4台pc设备分析交换机工作原理

方案

实现此目的需要先搭建拓扑,如图-1所示
在这里插入图片描述

步骤

一:pc设备配置

为不同pc设置ip地址与子网掩码,分别是192.168.0.1/24~192.168.0.4/24,配置完毕点击右下角应用,如图-2所示

>

二:通过pc设备的命令行界面使用ping命令对其他设备发起访问

如图-3所示

在这里插入图片描述

三:在交换机中查看MAC地址表

[Huawei]display mac-address
MAC address table of slot 0:
-------------------------------------------------------------------------------
MAC Address    VLAN/       PEVLAN CEVLAN Port            Type      LSP/LSR-ID  
               VSI/SI                                              MAC-Tunnel  
-------------------------------------------------------------------------------
5489-987d-68c4 1           -      -      Eth0/0/1        dynamic   0/-         
5489-9806-61a2 1           -      -      Eth0/0/2        dynamic   0/-         
5489-98d8-3d5d 1           -      -      Eth0/0/3        dynamic   0/-         
5489-98d3-6953 1           -      -      Eth0/0/3        dynamic   0/-         
-------------------------------------------------------------------------------
---

重要的事情说三遍

作为一个为linux奉献一生的码员,很是荣幸和骄傲,这里我总结了一些linux的精华,也就是速成文章,后面还会继续更新,望大家关注,绝对有用!

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值