路由器交换机配置实作题答案.docx
《路由器交换机配置实作题答案.docx》由会员分享,可在线阅读,更多相关《路由器交换机配置实作题答案.docx(25页珍藏版)》请在冰点文库上搜索。
![路由器交换机配置实作题答案.docx](https://file1.bingdoc.com/fileroot1/2023-5/22/2e5c2dd5-b932-4b47-a09d-a17f9827f3c5/2e5c2dd5-b932-4b47-a09d-a17f9827f3c51.gif)
路由器交换机配置实作题答案
技术培训实验手册(路由器28-31,交换机3900(3层),3026(2层))
1.
答案:
[RouterA]superpasswordsimpleh3c//设置SUPER密码以明文格式
[RouterA]superpasswordcipherh3c1//设置SUPER密码以密文格式
2.
[RouterA]user-interfacevty04
[RouterA-ui-vty0-4]authentication-modepassword//设置TELNET认证方式为密码认证
[RouterA-ui-vty0-4]setauthenticationpasswordcipherh3c//设置TELNET登陆得密码
[RouterA-ui-vty0-4]userprivilegelevel1//设置TELNET登陆后得权限
3.
[RouterA]user-interfacevty04
[RouterA-ui-vty0-4]authentication-modepassword//设置TELNET认证方式为密码认证
[RouterA-ui-vty0-4]setauthenticationpasswordcipherh3c//设置TELNET登陆得密码
[RouterA-ui-vty0-4]userprivilegelevel2//设置TELNET登陆后得权限
4.
[RouterA]user-interfacevty04
[RouterA-ui-vty0-4]authentication-modepassword//设置TELNET认证方式为密码认证
[RouterA-ui-vty0-4]setauthenticationpasswordcipherh3c//设置TELNET登陆得密码
[RouterA-ui-vty0-4]userprivilegelevel3//设置TELNET登陆后得权限
5.
[Router]displaycurrent-configuration查看当前设备配置信息
[Router]sysnamecqdl修改设备名称为cqdl
save保存配置文档
[RouterA]displaysaved-configuration查看Flash中的配置
[RouterA]resetsaved-configuration删除FLASH中的配置信息(重置设备配置)
6.
答案:
[Quidway]mac-addressstatic0003-47b7-c378interfaceethernet0/1vlan1
7.
答案:
[Quidway]mac-addressstatic0003-5757-c378interfaceethernet0/11vlan1
8.
答案:
[Quidway]mac-addressstatic0003-FFFF-c378interfaceethernet0/10vlan1
9.
答案:
[Quidway]mac-addressstatic0003-47b7-FEE8interfaceethernet0/24vlan1
10.
答案:
[Quidway]mac-addressstatic0003-4EE7-c378interfaceethernet0/12vlan1
11.
答案:
[SwitchA]interfaceEthernet0/1
[SwitchA-Ethernet0/1]portlink-typetrunk
[SwitchA-Ethernet0/1]porttrunkpermetvlanall
交换机2配置相同
12.
答案:
[H3C]vlan10
[H3C-vlan10]porte0/1
[H3C]vlan20
[H3C-vlan20]porte0/2
[H3C]interfacevlan-interface10
[H3C-interface-vlan10]ipaddress192.168.1.124
[H3C]interfacevlan-interface20
[H3C-interface-vlan20]ipaddress192.168.2.124
13.
[Router]interfacee1/0
[Router-e1/0]ipadd192.168.1.124
[Router]interfacee1/1
[Router-e1/1]ipadd1.1.1.130
[Router2]interfacee1/0
[Router2-e1/0]ipadd1.1.1.230
[Router2]interfacee1/1
[Router2-e1/1]ipadd192.168.2.124
[Router1]iproute-static192.168.2.0255.255.255.01.1.1.2
[Router2]iproute-static192.168.1.0255.255.255.01.1.1.1
14.
答案:
[Router]interfacee1/0
[Router-e1/0]ipadd192.168.10.124
[Router]interfacee1/1
[Router-e1/1]ipadd2.2.2.130
[Router2]interfacee1/0
[Router2-e1/0]ipadd2.2.2.230
[Router2]interfacee1/1
[Router2-e1/1]ipadd192.168.20.124
[Router1]iproute-static192.168.20.0255.255.255.02.2.2.2
[Router2]iproute-static192.168.10.0255.255.255.02.2.2.1
15.
答案:
[Router]interfacee1/0
[Router-e1/0]ipadd192.168.100.124
[Router]interfacee1/1
[Router-e1/1]ipadd3.3.3.130
[Router2]interfacee1/0
[Router2-e1/0]ipadd3.3.3.230
[Router2]interfacee1/1
[Router2-e1/1]ipadd192.168.200.124
[Router1]iproute-static192.168.200.0255.255.255.03.3.3.2
[Router2]iproute-static192.168.100.0255.255.255.03.3.3.1
16.
答案:
[Router]interfacee1/0
[Router-e1/0]ipadd172.16.1.124
[Router]interfacee1/1
[Router-e1/1]ipadd1.1.1.130
[Router2]interfacee1/0
[Router2-e1/0]ipadd1.1.1.230
[Router2]interfacee1/1
[Router2-e1/1]ipadd172.16.2.124
[Router1]iproute-static172.16.2.0255.255.255.01.1.1.2
[Router2]iproute-static172.16.1.0255.255.255.01.1.1.1
17.
答案:
[Router]interfacee1/0
[Router-e1/0]ipadd172.16.10.124
[Router]interfacee1/1
[Router-e1/1]ipadd2.2.2.130
[Router2]interfacee1/0
[Router2-e1/0]ipadd2.2.2.230
[Router2]interfacee1/1
[Router2-e1/1]ipadd172.16.20.124
[Router1]iproute-static172.16.20.0255.255.255.02.2.2.2
[Router2]iproute-static172.16.10.0255.255.255.02.2.2.1
18.
[Router]interfacee1/0
[Router-e1/0]ipadd172.16.100.124
[Router]interfacee1/1
[Router-e1/1]ipadd3.3.3.130
[Router2]interfacee1/0
[Router2-e1/0]ipadd3.3.3.230
[Router2]interfacee1/1
[Router2-e1/1]ipadd172.16.200.124
[Router1]iproute-static172.16.200.0255.255.255.03.3.3.2
[Router2]iproute-static172.16.100.0255.255.255.03.3.3.1
19.
[Router]interfacee1/0
[Router-e1/0]ipadd192.168.1.124
[Router]interfacee1/1
[Router-e1/1]ipadd1.1.1.130
[Router2]interfacee1/0
[Router2-e1/0]ipadd1.1.1.230
[Router2]interfacee1/1
[Router2-e1/1]ipadd192.168.2.124
[Router1]ospf1router-id1.1.1.1
[Router1-ospf1]area0
[Router1-ospf1-area0]network192.168.1.10.0.0.255
[Router1-ospf1-area0]network1.1.1.10.0.0.3
[Router2]ospf1router-id1.1.1.1
[Router2-ospf1]area0
[Router2-ospf1-area0]network192.168.2.10.0.0.255
[Router2-ospf1-area0]network1.1.1.20.0.0.3
20.
[Router]interfacee1/0
[Router-e1/0]ipadd192.168.10.124
[Router]interfacee1/1
[Router-e1/1]ipadd2.2.2.130
[Router2]interfacee1/0
[Router2-e1/0]ipadd2.2.2.230
[Router2]interfacee1/1
[Router2-e1/1]ipadd192.168.20.124
[Router1]ospf1router-id1.1.1.1
[Router1-ospf1]area0
[Router1-ospf1-area0]network192.168.10.10.0.0.255
[Router1-ospf1-area0]network2.2.2.10.0.0.3
[Router2]ospf1router-id1.1.1.1
[Router2-ospf1]area0
[Router2-ospf1-area0]network192.168.20.10.0.0.255
[Router2-ospf1-area0]network2.2.2.20.0.0.3
21.
[Router]interfacee1/0
[Router-e1/0]ipadd192.168.100.124
[Router]interfacee1/1
[Router-e1/1]ipadd3.3.3.130
[Router2]interfacee1/0
[Router2-e1/0]ipadd3.3.3.230
[Router2]interfacee1/1
[Router2-e1/1]ipadd192.168.200.124
[Router1]ospf1router-id1.1.1.1
[Router1-ospf1]area0
[Router1-ospf1-area0]network192.168.100.10.0.0.255
[Router1-ospf1-area0]network3.3.3.10.0.0.3
[Router2]ospf1router-id1.1.1.1
[Router2-ospf1]area0
[Router2-ospf1-area0]network192.168.200.10.0.0.255
[Router2-ospf1-area0]network3.3.3.20.0.0.3
22.
答案:
[RouterA]user-interfaceaux04
[RouterA-ui-aux0-4]authentication-modepassword[RouterA-ui-aux0-4]setauthenticationpasswordsimpleh3c[RouterA-ui-aux0-4]userprivilegelevel3
23
答案:
[H3C]vlan10
[H3C-vlan10]porte0/1toe0/5
[H3C]vlan20
[H3C-vlan20]porte0/6toe0/7
[H3C]vlan30
[H3C-vlan30]porte0/8
save
24
[H3C]vlan101
[H3C-vlan10]porte0/1toe0/5
[H3C]vlan102
[H3C-vlan20]porte0/6toe0/7
[H3C]vlan103
[H3C-vlan30]porte0/8
save
25
[H3C]vlan1000
[H3C-vlan10]porte0/1toe0/5
[H3C]vlan2000
[H3C-vlan20]porte0/6toe0/7
[H3C]vlan3000
[H3C-vlan30]porte0/8
save
26
[H3C]vlan10
[H3C-vlan10]porte0/1toe0/15
[H3C]vlan20
[H3C-vlan20]porte0/16toe0/17
[H3C]vlan30
[H3C-vlan30]porte0/24
save
27
[H3C]vlan10
[H3C-vlan10]porte0/1toe0/12
[H3C]vlan20
[H3C-vlan20]porte0/13toe0/17
[H3C]vlan30
[H3C-vlan30]porte0/18toe0/24
save
28
[H3C]vlan2
[H3C-vlan10]porte0/1toe0/10
[H3C]vlan3
[H3C-vlan20]porte0/11toe0/12
[H3C]vlan4
[H3C-vlan30]porte0/13
save
29
[H3C]vlan100
[H3C-vlan10]porte0/1toe0/6
[H3C]vlan200
[H3C-vlan20]porte0/7toe0/10
[H3C]vlan300
[H3C-vlan30]porte0/11
save
30
[H3C]vlan2
[H3C-vlan10]porte0/1toe0/12
[H3C]vlan3
[H3C-vlan20]porte0/13toe0/24
save
31
[H3C]vlan100
[H3C-vlan100]porte0/1toe0/10
[H3C]vlan200
[H3C-vlan200]porte0/11toe0/24
save
32.
[H3C]vlan1
[H3C]vlan2
[H3C-vlan2]porte0/2toe0/10
[H3C]interfacevlan-interface1
[H3C-interface-vlan1]ipaddress192.168.1.124
[H3C]interfacevlan-interface2
[H3C-interface-vlan2]ipaddress192.168.2.124
33.
[H3C]vlan1
[H3C]vlan2
[H3C-vlan2]porte0/2toe0/10
[H3C]interfacevlan-interface1
[H3C-interface-vlan1]ipaddress192.168.10.124
[H3C]interfacevlan-interface2
[H3C-interface-vlan2]ipaddress192.168.20.124
34
[H3C]vlan1
[H3C]vlan2
[H3C-vlan2]porte0/2toe0/24
[H3C]interfacevlan-interface1
[H3C-interface-vlan1]ipaddress192.168.1.124
[H3C]interfacevlan-interface2
[H3C-interface-vlan2]ipaddress192.168.2.124
35
[H3C]vlan1
[H3C]vlan2
[H3C-vlan2]porte0/2toe0/10
[H3C]interfacevlan-interface1
[H3C-interface-vlan1]ipaddress192.168.1.124
[H3C]interfacevlan-interface2
[H3C-interface-vlan2]ipaddress192.168.2.124
36
答案:
配置过程
注释
SwitchA交换机配置:
[SwitchA]vlan100
[SwitchA-vlan100]portEthernet0/10toEthernet0/20
[SwitchA]interfaceVlan-interface100
[SwitchA-Vlan-interface100]ipaddress10.10.10.1255.255.255.0
[SwitchA]vlan10
[SwitchA-vlan10]portEthernet0/1
[SwitchA]interfaceVlan-interface10
[SwitchA-Vlan-interface10]ipaddress192.168.0.1255.255.255.0
[SwitchA]user-interfacevty04
[SwitchA-ui-vty0-4]
[SwitchA-ui-vty0-4]authentication-modepassword
[SwitchA-ui-vty0-4]setauthenticationpasswordsimpleHuawei
[SwitchA-ui-vty0-4]userprivilegelevel3
[SwitchA-ui-vty0-4]acl1inbound
[SwitchA]aclnumber1
[SwitchA-acl-basic-1]
[SwitchA-acl-basic-1]rulepermitsource10.10.10.00.0.0.255
SwitchB交换机配置:
[SwitchA]vlan100
[SwitchA-vlan100]portEthernet0/24
[SwitchB]interfaceVlan-interface100
[SwitchB-Vlan-interface100]ipaddress192.168.0.2255.255.255.0
[SwitchB]user-interfacevty04
[SwitchB-ui-vty0-4]
[SwitchB-ui-vty0-4]authentication-modepassword
[SwitchB-ui-vty0-4]setauthenticationpasswordsimpleHuawei
[SwitchB-ui-vty0-4]userprivilegelevel3
[SwitchB]iproute-static0.0.0.00.0.0.0192.168.0.1
#配置管理vlan100
#配置与SwitchB互连的vlan10
#设置telnet登录为密码验证方式。
telnet登录缺省为密码验证方式
#如果配置telnet登录为密码验证方式或使用缺省验证方式,必须配置登录密码,如果不配置密码,系统不允许登录。
#系统默认VTY登录方式用户级别为0,设置为3才能进入系统视图
#设置只允许10.10.10.0网段地址能够访问交换机SwitchA
#允许其它任意网段的地址能够访问交换机需要启动路由协议或者加一条静态默认路由
37
答案:
配置过程
注释
SwitchA交换机配置:
[SwitchA]vlan10
[SwitchA-vlan10]portEthernet0/1
[SwitchA]vlan20
[SwitchA-vlan20]portEthernet0/2
[SwitchA-Ethernet0/3]portlink-typetrunk
[SwitchA-Ethernet0/3]porttrunkpermitvlanall
#创建VLAN10
#端口e0/1加入VLAN10
#创建