欢迎来到天天文库
浏览记录
ID:48827304
大小:492.50 KB
页数:22页
时间:2020-01-30
《华为路由器的配置(实训).ppt》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、实训二十一、华为路由器的配置重点内容华为路由器的基本配置命令;掌握华为路由器的配置;实训一、华为路由器的基本配置Console线10.65.1.210.66.1.2图21-1华为路由器的基本配置一、路由器的基本配置system-view//从用户视图进入特权视图password://输入口令[Quidway]sysnameR2621//更改路由器名称为R2621[R2621]superpassword123//设置进入系统视图口令为123[R2621]user-interfacevty04//进入用户界面视图配置虚拟终端[R2621-ui-vty0-4]aut
2、hentication-modepassword//设置验证方式为口令方式[R2621-ui-vty0-4]setauthentication-modepasswordsimple222//设置口令为222[R2621-ui-vty0-4]userprivilegelevel3//设置用户级别为3[R2621-ui-vty0-4]quit//退回上一级模式[R2621]interfaceethernet0//进入e0端口[R2621-Ethernet0]ipaddr10.65.1.1255.255.255.0//配置该端口的IP地址[R2621-Ethernet0]undosh
3、utdown//激活该端口[R2621-Ethernet0]quit//退回上一级模式[R2621]inte1[R2621-Ethernet1]ipaddr10.66.1.1255.255.255.0[R2621-Ethernet1]undoshutdown[R2621-Ethernet1]quit[R2621]二、配置PC机的IP地址HostA:IP:10.65.1.2Sub-mask:255.255.0.0gateway:10.65.1.1HostB:IP:10.66.1.2Sub-mask:255.255.0.0gateway:10.66.1.1三、测试连通性HostA#
4、ping10.65.1.1(通);HostA#ping10.66.1.1(通)HostA#ping10.66.1.2(通);HostB#ping10.66.1.1(通)HostB#ping10.65.1.1(通);HostB#ping10.65.1.2(通)实训二、单臂路由的配置10.65.1.210.66.1.2图21-2单臂路由的配置一、配置PC机的IP地址HostA:Ip:10.65.1.2/24gateway:10.65.1.1HostB:Ip:10.66.1.2/24gateway:10.66.1.1二、配置路由器接口IP地址system-viewp
5、assword:[Quidway]interfaceethernet0//进入路由器e0端口[Quidway–Ethernet0]ipaddr10.0.0.1255.255.255.0//配置IP地址[Quidway–Ethernet0]inte0.1//进入e0端口的子接口[Quidway–Ethernet0.1]ipaddr10.65.1.1255.255.255.0//配置子接口IP地址[Quidway–Ethernet0.1]encapsulationdot1q1//对子接口封装协议[Quidway-Ethernet0.1]undoshut//激活端口[Quidway-
6、Ethernet0.1]inte0.2//进入e0端口的子接口[Quidway-Ethernet0.2]ipaddr10.66.1.1255.255.255.0[Quidway-Ethernet0.2]encapsulationdot1q2//对接口封装协议[Quidway-Ethernet0.2]undoshut[Quidway]discurr三、配置交换机system-viewpassword:[Quidway]sysnames3026//更改交换机名称为s3026[s3026]vlan2//创建vlan2[s3026-vlan2]porte0/3//将交
7、换机e0/3端口划分为vlan2[s3026]vlan3//创建vlan3[s3026-vlan3]porte0/6//将交换机e0/6端口划分为vlan3[s3026]inte0/1[s3026-Ethernet0/1]portlink-typetrunk//设置e0/1端口为trunk模式[s3026-Ethernet0/1]porttrunkpermitvlanall//允许该端口所有Vlan信息通过[s3026-Ethernet0/1]porttrunkencapdot1q//设置该
此文档下载收益归作者所有