1、华为路由模拟软件常用计算机交换机路由器实验内容实验一:基本命令实验实验二:配置端口聚合实验三:基本VLAN设置实验四:配置primary VLAN和secondary VLAN实验五:其它功能实验六:路由器BootROM升级实验七:直联路由实验八:单臂路由实验九:静态路由实验实验十:动态路由实验实验十一:访问控制列表实验十二:地址转换配置实验一 基本命令实验添加一个交换机,一个计算机,双击交换机,进入终端配置:systempassword:Quidwaysysname S3026 交换机命名S3026super password 111 修改特权用户密码S3026user-interface
2、vty 0 4S3026-ui-vty0-4authentication-mode passwordS3026-ui-vty0-4set authentication-mode password simple 222S3026-ui-vty0-4user privilege level 3S3026-ui-vty0-4quitS3026quitsyspassword:111S3026display currect-configS3026dis currS3026vlan 2S3026-vlan2port ethernet0/2S3026-vlan2port e0/4 to et0/6S3026
3、-vlan2quitS3026dis vlanS3026int e0/3S3026-Ethernet1port access vlan 2S3026-Ethernet1quitS3026dis vlanS3026dis currS3026interface vlan 1 进入接口视图S3026-Vlan-interface1ip address 10.65.1.1 255.255.0.0S3026-Vlan-interface1quitS3026ip route-static 0.0.0.0 0.0.0.0 10.65.1.2S3026ip default-gateway 10.65.1.2S
4、3026dis currS3026save双击小电脑:login:rootpassword:linuxrootPCA root#ifconfig eth0 10.65.1.1 netmask 255.255.0.0rootPCA root#ping 10.65.1.2rootPCA root#telnet 10.65.1.2实验二 配置端口聚合要求聚合的端口工作在全双工,速度一致,在同一槽口且连续,ingress:源MAC, both:源和目的MAC对于SwitchA:SwitchAinterface ethernet0/1SwitchA-Ethernet0/1duplex fullSwitc
5、hA-Ethernet0/1speed 100SwitchA-Ethernet0/1int e0/2SwitchA-Ethernet0/2duplex fullSwitchA-Ethernet0/2speed 100对于SwitchB:SwitchBinterface ethernet0/1SwitchB-Ethernet0/1duplex fullSwitchB-Ethernet0/1speed 100SwitchB-Ethernet0/1int e0/2SwitchB-Ethernet0/2duplex fullSwitchB-Ethernet0/2speed 100聚合操作:Switch
6、Alink-aggregation ethernet0/1 to ethernet0/2 bothSwitchBlink-aggregation ethernet0/1 to ethernet0/2 bothSwitchAdisplay link-aggregation ethernet0/1SwitchAundo link-aggregation all实验三 基本VLAN设置SwitchAvlan 2SwitchA-vlan2port e0/3 to e0/4 SwitchAvlan 3SwitchA-vlan3port e0/5 to e0/6 SwitchBvlan 2SwitchB-
7、vlan2port e0/3 to e0/4 SwitchBvlan 3SwitchB-vlan3port e0/5 to e0/6 设置计算机的IP为:PCA:10.65.1.1 PCB:10.65.1.2 PCC:10.65.1.3 PCD:10.65.1.4rootPCA root#ping 10.65.1.1 通rootPCA root#ping 10.65.1.2 不通rootPCA root#ping 10.65.1.3 不通rootPCA root#ping 10.65.1.4 不通将PCA改接到SwitchA E0/2, PCC改接到SwitchB E0/2rootPCA ro
8、ot#ping 10.65.1.3 通(这时都在vlan 1)再改回来:S3026Ainterface ethernet 0/8S3026A-Ethernet0/8port link-type trunkS3026A-Ethernet0/8port trunk permit vlan allS3026Binterface ethernet 0/1S3026B-Ethernet0/1port link-type trunkS3026B-Ethernet0/1port trunk permit vlan allrootPCA root#ping 10.65.1.3 通rootPCA root#pi
9、ng 10.65.1.4 不通rootPCB root#ping 10.65.1.4 通即:PCA和PCC同在vlan 2 是通的。PCB和PCD同在vlan 3是通的。PCA和PCB是不通的。同理PCC和PCD也是不通的。S3026Cinterface ethernet 0/1S3026C-Ethernet0/1port link-type trunkS3026C-Ethernet0/1port trunk permit vlan allS3026Cinterface ethernet 0/8S3026C-Ethernet0/8port link-type trunkS3026C-Ether
10、net0/8port trunk permit vlan allrootPCA root#ping 10.65.1.3 通rootPCA root#ping 10.65.1.4 不通实验四 配置primary VLAN和secondary VLANSwitchAvlan 2SwitchA-vlan2port ethernet 0/5 to ethernet 0/6 SwitchAvlan 3SwitchA-vlan3port ethernet 0/7 to ethernet 0/8 SwitchAvlan 5SwitchA-vlan5port ethernet 0/1 to ethernet
11、0/4 SwitchA-vlan5isolate-user-vlan enable ;vlan5是主vlanSwitchA-vlan5quitSwitchAisolate-user-vlan 5 secondary 2,3 ;vlan2,3是子vlanSwitchBvlan 2SwitchB-vlan2port ethernet 0/5 to ethernet 0/6SwitchBvlan 3SwitchB-vlan3port ethernet 0/7 to ethernet 0/8SwitchAvlan 4SwitchB-vlan4port ethernet 0/1 to ethernet
12、0/4SwitchB-vlan4isolate-user-vlan enable ;vlan4是主vlanSwitchB-vlan4quitSwitchBisolate-user-vlan 4 secondary 2,3 ;vlan2,3是子vlan实验五 其它功能(一) 设置镜像Quidwaymonitor-port e0/8Quidwayport mirror e0/1或:Quidwayport mirror e0/1 to e0/2 observing-port e0/8(二) 生成树Quidwaystp enable|disableQuidwaystp priority 4096 设置
13、交换机的优先级Quidwaystp root primary 设置交换机为树根Quidway-Ethernet0/1stp cost 200 设置交换机端口的花费实验六 路由器BootROM升级systemQuidwayreloadPress Ctrl+B to enter Boot Menu Boot Menu:1:Download application program2:Download Bootrom program3:Modify Bootrom password4:Exit menu5:Reboot Enter your choice(1-5):1Downloading appli
14、cation program from serial . (rs232)please choose your download speed:1:9600bps2:19200bps3:38400bps4:Exit and reboot Enter your choice(1-4):2Download speed is 38400bps. Please change the terminals speed to 38400bps. And select XMODEM protocol. Press ENTER key when ready.Downloading .CC (please selec
15、t File-Send)Download completed.Write flash auccessfully!实验七 直联路由systempassword:Quidwayinterface ethernet0Quidway-Ethernet0ip addr 10.65.1.2 255.255.255.0Quidway-Ethernet0undo shutdownQuidway-Ethernet0int e1Quidway-Ethernet1ip addr 10.66.1.2 255.255.255.0Quidway-Ethernet1undo shutdownrootPCA root#ifc
16、onfig eth0 10.65.1.1 netmask 255.255.0.0rootPCB root#ifconfig eth0 10.66.1.1 netmask 255.255.0.0rootPCA root#ping 10.65.1.2 通rootPCA root#ping 10.66.1.2 不通,没设网关rootPCA root#route add default gw 10.65.1.2rootPCA root#ping 10.66.1.2 通去掉Host B与Router的连线,再ping:rootPCA root#ping 10.66.1.2 不通(没有接线端口会自动dow
17、n掉)再连接Host B与Router的连线,再ping:rootPCA root#ping 10.66.1.2 通了 实验八 单臂路由设PCA:10.65.1.1 PCB:10.66.1.11.一个接口两个IP的情况systempassword:Quidwayinterface ethernet0Quidway-Ethernet0ip addr 10.65.1.2 255.255.255.0Quidway-Ethernet1ip addr 10.66.1.2 255.255.255.0 secondaryQuidway-Ethernet1undo shutdownrootPCA root#p
18、ing 10.66.1.1 通2划分两个子接口,对两个vlan的路由SwitchAvlan 2SwitchA-vlan2port e0/3SwitchAvlan 3SwitchA-vlan3port e0/6 SwitchAine e0/1SwitchA-Ethernet0/1port link-type trunkSwitchA-Ethernet0/1port trunk permit vlan allSwitchA-Ethernet0/1port trunk encap dot1qSwitchAdis currQuidwayint e0SwitchA-Ethernet0int e0.1Sw
19、itchA-Ethernet0.1encapsulation dot1q 2SwitchA-Ethernet0.1ip addr 10.65.1.2 255.255.255.0SwitchA-Ethernet0.1nudo shutSwitchA-Ethernet0.1int e0.2SwitchA-Ethernet0.2encapsulation dot1q 2SwitchA-Ethernet0.2ip addr 10.66.1.2 255.255.255.0SwitchA-Ethernet0.2nudo shutSwitchAdis currrootPCA root#ping 10.66.
20、1.1 通实验九 静态路由实验PCA:10.65.1.1 PCB:10.66.1.1 PCC:10.68.1.1 PCD:10.69.1.1RouterAinterface ethernet0RouterA-Ethernet0ip addrress 10.65.1.2 255.255.0.0RouterA-Ethernet0undo shutdownRouterA-Ethernet0int e1RouterA-Ethernet1ip addrress 10.66.1.2 255.255.0.0RouterA-Ethernet1undo shutdownRouterA-Ethernet1int
21、s1RouterA-Serial1ip addrress 10.67.1.2 255.255.0.0RouterA-Serial1undo shutdownRouterA-Serial1clock rate 64000RouterA-Serial1quitRouterAip routingRouterAdis currRouterBinterface ethernet0RouterB-Ethernet0ip addrress 10.68.1.2 255.255.0.0RouterB-Ethernet0undo shutdownRouterB-Ethernet0int e1RouterB-Eth
22、ernet1ip addrress 10.69.1.2 255.255.0.0RouterB-Ethernet1undo shutdownRouterB-Ethernet1int s0RouterB-Serial0ip addrress 10.67.1.1 255.255.0.0RouterB-Serial0undo shutdownRouterB-Serial0quitRouterBip routingRouterBdis currrootPCA root#ifconfig eth0 10.65.1.1 netmask 255.255.0.0rootPCA root#route add de
23、fault gw 10.65.1.2rootPCA root#ping 10.65.1.2 通rootPCA root#ping 10.66.1.2 通rootPCA root#ping 10.67.1.2 通rootPCA root#ping 10.68.1.2 不通rootPCA root#ping 10.69.1.2 不通RouterAip route-static 10.69.0.0 255.255.0.0 10.67.1.1rootPCA root#ping 10.69.1.1 通下面再加入一个路由器Router C:RouterB-Serial0undo ip addrress 1
24、0.67.1.1 255.255.0.0RouterB-Serial0ip addrress 10.70.1.1 255.255.0.0RouterCinterface serial0RouterC-Serial0ip addrress 10.67.1.1 255.255.0.0RouterC-Serial0undo shutdownRouterC-Serial0clock rate 64000RouterC-Serial0int s1RouterC-Serial1ip addrress 10.70.1.1 255.255.0.0RouterC-Serial1undo shutdownRout
25、erC-Serial1quitRouterCip route-static 10.69.0.0 255.255.0.0 10.70.1.1RouterCdis currrootPCA root#ping 10.69.1.1 通rootPCA root#ping 10.68.1.1 不通实验十 动态路由实验RouterArip version 2 multicastRouterA-ripnetwork 10.0.0.0 ;可以allRouterA-ripip routingRouterBrip version 2 multicastRouterB-ripnetwork 10.0.0.0Route
26、rB-ripip routingRouterCrip version 2 multicastRouterC-ripnetwork 10.0.0.0 RouterC-ripip routingRouterCdis ip routerootPCA root#ping 10.68.1.1 通rootPCA root#ping 10.69.1.1 通RouterA-rippeer 10.67.1.1 ;指明交换点RouterA-ripsummary ;聚合RouterA-Serial0rip split-horizon ;水平分隔RouterArip workRouterArip inputRoute
27、rArip outputQuidwayrouter id A.B.C.D ;配置路由器的IDQuidwayospf enable ;启动OSPF协议Quidway-ospfimport-route direct ;引入直联路由Quidway-Serial0ospf enable area 0 ;配置OSPF区域Quidway-Serial0link-protocol ppp实验十一 访问控制列表实验1基本访问列表RouterCfirewall enableRouterCfirewall default permitRouterCacl 10RouterC-acl-10rule normal d
28、eny source 10.65.1.1RouterC-acl-10rule normal permit source anyRouterCint s0RouterC-Serial0firewall packet-filter 10 inboundRouterC-Serial0quitRouterCdisplay aclrootPCA root#ping 10.68.1.1 不通rootPCB root#ping 10.68.1.1 通RouterCundo acl 10RouterCdisplay aclrootPCA root#ping 10.68.1.1 通rootPCB root#pi
29、ng 10.68.1.1 通RouterCacl 11RouterC-acl-11rule normal deny source 10.65.1.1 0.0.0.255RouterC-acl-11rule normal permit source anyRouterCint s0RouterC-Serial0firewall packet-filter 11 inboundRouterCdisplay aclrootPCA root#ping 10.68.1.1 不通rootPCB root#ping 10.68.1.1 不通RouterCundo acl2扩展访问控制列表RouterCfirewall enableRouterCfirewall d
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1