华为的路由器模拟器及实验内容全解Word下载.docx

上传人:b****5 文档编号:19816957 上传时间:2023-01-10 格式:DOCX 页数:17 大小:195.03KB
下载 相关 举报
华为的路由器模拟器及实验内容全解Word下载.docx_第1页
第1页 / 共17页
华为的路由器模拟器及实验内容全解Word下载.docx_第2页
第2页 / 共17页
华为的路由器模拟器及实验内容全解Word下载.docx_第3页
第3页 / 共17页
华为的路由器模拟器及实验内容全解Word下载.docx_第4页
第4页 / 共17页
华为的路由器模拟器及实验内容全解Word下载.docx_第5页
第5页 / 共17页
点击查看更多>>
下载资源
资源描述

华为的路由器模拟器及实验内容全解Word下载.docx

《华为的路由器模拟器及实验内容全解Word下载.docx》由会员分享,可在线阅读,更多相关《华为的路由器模拟器及实验内容全解Word下载.docx(17页珍藏版)》请在冰豆网上搜索。

华为的路由器模拟器及实验内容全解Word下载.docx

华为的路由器模拟器下载地址 

(右键迅雷下载)

实验一 

基本命令实验

添加一个交换机,一个计算机,双击交换机,进入终端配置:

system

password:

[Quidway]sysnameS3026 

交换机命名

[S3026]superpassword111 

修改特权用户密码

[S3026]user-interfacevty04

[S3026-ui-vty0-4]authentication-modepassword

[S3026-ui-vty0-4]setauthentication-modepasswordsimple222

[S3026-ui-vty0-4]userprivilegelevel3

[S3026-ui-vty0-4]quit

[S3026]quit

sys

111

[S3026]displaycurrect-config

[S3026]discurr

[S3026]vlan2

[S3026-vlan2]portethernet0/2

[S3026-vlan2]porte0/4toet0/6

[S3026-vlan2]quit

[S3026]disvlan

[S3026]inte0/3

[S3026-Ethernet1]portaccessvlan2

[S3026-Ethernet1]quit

[S3026]interfacevlan1 

进入接口视图

[S3026-Vlan-interface1]ipaddress10.65.1.1255.255.0.0

[S3026-Vlan-interface1]quit

[S3026]iproute-static0.0.0.00.0.0.010.65.1.2

[S3026]ipdefault-gateway10.65.1.2

[S3026]save

双击小电脑:

login:

root

linux

[root@PCAroot]#ifconfigeth010.65.1.1netmask255.255.0.0

[root@PCAroot]#ping10.65.1.2

[root@PCAroot]#telnet10.65.1.2

实验二配置端口聚合

要求聚合的端口工作在全双工,速度一致,在同一槽口且连续,

ingress:

源MAC,both:

源和目的MAC

对于SwitchA:

[SwitchA]interfaceethernet0/1

[SwitchA-Ethernet0/1]duplexfull

[SwitchA-Ethernet0/1]speed100

[SwitchA-Ethernet0/1]inte0/2

[SwitchA-Ethernet0/2]duplexfull

[SwitchA-Ethernet0/2]speed100

对于SwitchB:

[SwitchB]interfaceethernet0/1

[SwitchB-Ethernet0/1]duplexfull

[SwitchB-Ethernet0/1]speed100

[SwitchB-Ethernet0/1]inte0/2

[SwitchB-Ethernet0/2]duplexfull

[SwitchB-Ethernet0/2]speed100

聚合操作:

[SwitchA]link-aggregationethernet0/1toethernet0/2both

[SwitchB]link-aggregationethernet0/1toethernet0/2both

[SwitchA]displaylink-aggregationethernet0/1

[SwitchA]undolink-aggregationall

实验三基本VLAN设置

[SwitchA]vlan2

[SwitchA-vlan2]porte0/3toe0/4

[SwitchA]vlan3

[SwitchA-vlan3]porte0/5toe0/6

[SwitchB]vlan2

[SwitchB-vlan2]porte0/3toe0/4

[SwitchB]vlan3

[SwitchB-vlan3]porte0/5toe0/6

设置计算机的IP为:

PCA:

10.65.1.1 

PCB:

10.65.1.2 

PCC:

10.65.1.3 

PCD:

10.65.1.4

[root@PCAroot]#ping10.65.1.1 

[root@PCAroot]#ping10.65.1.2 

不通

[root@PCAroot]#ping10.65.1.3 

[root@PCAroot]#ping10.65.1.4 

将PCA改接到SwitchAE0/2,PCC改接到SwitchBE0/2

通(这时都在vlan1)

再改回来:

[S3026A]interfaceethernet0/8

[S3026A-Ethernet0/8]portlink-typetrunk

[S3026A-Ethernet0/8]porttrunkpermitvlanall

[S3026B]interfaceethernet0/1

[S3026B-Ethernet0/1]portlink-typetrunk

[S3026B-Ethernet0/1]porttrunkpermitvlanall

[root@PCBroot]#ping10.65.1.4 

即:

PCA和PCC同在vlan2是通的。

PCB和PCD同在vlan3是通的。

PCA和PCB是不通的。

同理PCC和PCD也是不通的。

[S3026C]interfaceethernet0/1

[S3026C-Ethernet0/1]portlink-typetrunk

[S3026C-Ethernet0/1]porttrunkpermitvlanall

[S3026C]interfaceethernet0/8

[S3026C-Ethernet0/8]portlink-typetrunk

[S3026C-Ethernet0/8]porttrunkpermitvlanall

实验四 

配置primaryVLAN和secondaryVLAN

[SwitchA-vlan2]portethernet0/5toethernet0/6

[SwitchA-vlan3]portethernet0/7toethernet0/8

[SwitchA]vlan5

[SwitchA-vlan5]portethernet0/1toethernet0/4

[SwitchA-vlan5]isolate-user-vlanenable 

;

vlan5是主vlan

[SwitchA-vlan5]quit

[SwitchA]isolate-user-vlan5secondary2,3 

vlan2,3是子vlan

[SwitchB-vlan2]portethernet0/5toethernet0/6

[SwitchB-vlan3]portethernet0/7toethernet0/8

[SwitchA]vlan4

[SwitchB-vlan4]portethernet0/1toethernet0/4

[SwitchB-vlan4]isolate-user-vlanenable 

;

vlan4是主vlan

[SwitchB-vlan4]quit

[SwitchB]isolate-user-vlan4secondary2,3 

实验五其它功能

(一)设置镜像

[Quidway]monitor-porte0/8

[Quidway]portmirrore0/1

或:

[Quidway]portmirrore0/1toe0/2observing-porte0/8

(二)生成树

[Quidway]stp{enable|disable}

[Quidway]stppriority4096 

设置交换机的优先级

[Quidway]stprootprimary 

设置交换机为树根

[Quidway-Ethernet0/1]stpcost200 

设置交换机端口的花费

实验六 

路由器BootROM升级

[Quidway]reload

PressCtrl+BtoenterBootMenu…

BootMenu:

1:

Downloadapplicationprogram

2:

DownloadBootromprogram

3:

ModifyBootrompassword

4:

Exitmenu

5:

Reboot

Enteryourchoice(1-5):

1

Downloadingapplicationprogram

fromserial...(rs232)

pleasechooseyourdownloadspeed:

9600bps

19200bps

38400bps

Exitandreboot

Enteryourchoice(1-4):

2

Downloadspeedis38400bps.

Pleasechangetheterminal'

sspeedto38400bps.

AndselectXMODEM

protocol.PressENTERkeywhenready.

Downloading...CC 

(pleaseselect[File]->

[Send])

Downloadcompleted.

Writeflashauccessfully!

实验七 

直联路由

[Quidway]interfaceethernet0

[Quidway-Ethernet0]ipaddr10.65.1.2255.255.255.0

[Quidway-Ethernet0]undoshutdown

[Quidway-Ethernet0]inte1

[Quidway-Ethernet1]ipaddr10.66.1.2255.255.255.0

[Quidway-Ethernet1]undoshutdown

[root@PCBroot]#ifconfigeth010.66.1.1netmask255.255.0.0

[root@PCAroot]#ping10.65.1.2通

[root@PCAroot]#ping10.66.1.2不通,没设网关

[root@PCAroot]#routeadddefaultgw10.65.1.2

[root@PCAroot]#ping10.66.1.2通

去掉HostB与Router的连线,再ping:

[root@PCAroot]#ping10.66.1.2不通(没有接线端口会自动down掉)

再连接HostB与Router的连线,再ping:

[root@PCAroot]#ping10.66.1.2通了

实验八单臂路由

设PCA:

10.66.1.1

1.一个接口两个IP的情况

[Quidway-Ethernet1]ipaddr10.66.1.2255.255.255.0secondary

[root@PCAroot]#ping10.66.1.1通

2.划分两个子接口,对两个vlan的路由

[SwitchA-vlan2]porte0/3

[SwitchA-vlan3]porte0/6

[SwitchA]inee0/1

[SwitchA-Ethernet0/1]portlink-typetrunk

[SwitchA-Ethernet0/1]porttrunkpermitvlanall

[SwitchA-Ethernet0/1]porttrunkencapdot1q

[SwitchA]discurr

[Quidway]inte0

[SwitchA-Ethernet0]inte0.1

[SwitchA-Ethernet0.1]encapsulationdot1q2

[SwitchA-Ethernet0.1]ipaddr10.65.1.2255.255.255.0

[SwitchA-Ethernet0.1]nudoshut

[SwitchA-Ethernet0.1]inte0.2

[SwitchA-Ethernet0.2]encapsulationdot1q2

[SwitchA-Ethernet0.2]ipaddr10.66.1.2255.255.255.0

[SwitchA-Ethernet0.2]nudoshut

实验九静态路由实验

10.66.1.1 

10.68.1.1 

10.69.1.1

[RouterA]interfaceethernet0

[RouterA-Ethernet0]ipaddrress10.65.1.2255.255.0.0

[RouterA-Ethernet0]undoshutdown

[RouterA-Ethernet0]inte1

[RouterA-Ethernet1]ipaddrress10.66.1.2255.255.0.0

[RouterA-Ethernet1]undoshutdown

[RouterA-Ethernet1]ints1

[RouterA-Serial1]ipaddrress10.67.1.2255.255.0.0

[RouterA-Serial1]undoshutdown

[RouterA-Serial1]clockrate64000

[RouterA-Serial1]quit

[RouterA]iprouting

[RouterA]discurr

[RouterB]interfaceethernet0

[RouterB-Ethernet0]ipaddrress10.68.1.2255.255.0.0

[RouterB-Ethernet0]undoshutdown

[RouterB-Ethernet0]inte1

[RouterB-Ethernet1]ipaddrress10.69.1.2255.255.0.0

[RouterB-Ethernet1]undoshutdown

[RouterB-Ethernet1]ints0

[RouterB-Serial0]ipaddrress10.67.1.1255.255.0.0

[RouterB-Serial0]undoshutdown

[RouterB-Serial0]quit

[RouterB]iprouting

[RouterB]discurr

[root@PCAroot]#ping10.67.1.2通

[root@PCAroot]#ping10.68.1.2不通

[root@PCAroot]#ping10.69.1.2不通

[RouterA]iproute-static10.69.0.0255.255.0.010.67.1.1

[root@PCAroot]#ping10.69.1.1通

下面再加入一个路由器RouterC:

[RouterB-Serial0]undoipaddrress10.67.1.1255.255.0.0

[RouterB-Serial0]ipaddrress10.70.1.1255.255.0.0

[RouterC]interfaceserial0

[RouterC-Serial0]ipaddrress10.67.1.1255.255.0.0

[RouterC-Serial0]undoshutdown

[RouterC-Serial0]clockrate64000

[RouterC-Serial0]ints1

[RouterC-Serial1]ipaddrress10.70.1.1255.255.0.0

[RouterC-Serial1]undoshutdown

[RouterC-Serial1]quit

[RouterC]iproute-static10.69.0.0255.255.0.010.70.1.1

[RouterC]discurr

[root@PCAroot]#ping10.68.1.1不通

实验十 

动态路由实验

[RouterA]ripversion2multicast

[RouterA-rip]network10.0.0.0 

可以all

[RouterA-rip]iprouting

[RouterB]ripversion2multicast

[RouterB-rip]network10.0.0.0

[RouterB-rip]iprouting

[RouterC]ripversion2multicast

[RouterC-rip]network10.0.0.0

[RouterC-rip]iprouting

[RouterC]disiproute

[root@PCAroot]#ping10.68.1.1通

[RouterA-rip]peer10.67.1.1 

指明交换点

[RouterA-rip]summary 

聚合

[RouterA-Serial0]ripsplit-horizon 

水平分隔

[RouterA]ripwork

[RouterA]ripinput

[RouterA]ripoutput

[Quidway]routeridA.B.C.D 

配置路由器的ID

[Quidway]ospfenable 

启动OSPF协议

[Quidway-ospf]import-routedirect 

引入直联路由

[Quidway-Serial0]ospfenablearea0 

配置OSPF区域

[Quidway-Serial0]link-protocolppp

实验十一 

访问控制列表实验

1.基本访问列表

[RouterC]firewallenable

[RouterC]firewalldefaultpermit

[RouterC]acl10

[RouterC-acl-10]rulenormaldenysource10.65.1.1

[RouterC-acl-10]rulenormalpermitsourceany

[RouterC]ints0

[RouterC-Serial0]firewallpacket-filter10inbound

[RouterC-Serial0]quit

[RouterC]displayacl

[root@PCBroot]#pi

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 法律文书 > 调解书

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1