[feiq]局域网络技术(答案)
- 格式:doc
- 大小:260.50 KB
- 文档页数:15
实验一:交换机基本配置1、分别配制交换机的安全密码Security为ccie、管理密码Manager为ccnp、监控密码Monitor为ccna;2、通过自己的配置,允许交换机互相TELNET访问;第一步r1(config)#enable password ccie第二步r1(config)#line vty 0 4r1(config-line)#Password 0 ccnp第三步r1(config)#line con 0r1(config-line)Password 0 ccna查看:sw#show running-config第四步;swA#conf tswA(config)#int f0/1(两个交换机相连的接口)swA(config-if)#switchport mode trunkswB#conf tswB(config)#int f0/1(两个交换机相连的接口)swB(config-if)#switchport mode trunkSWA; swA(config)#int vlan 1swA(config-if)#Ip add 10.1.1.1 255.255.255.0swA(config-if)#No shSWB: swA(config)#int vlan 1swA(config-if)#Ip add 10.1.1.2 255.255.255.0swA(config-if)#No sh连接在SWB的主机上pingSWA,ping10.1.1.1 通后telnet 10.1.1.1 ,实验二;基本VLAN配置1、公司财务部拥有四台电脑,分别接在交换机端口1、2、3、4;公司行政部有四台电脑分别接在5、6、7、8。
请你为两个部门划分两个VLAN。
分别编号为vlan10,vlan11答;第一步;Switch(vlan)#vlan 10 name VLAN10VLAN 10 added:Name: VLAN10Switch(vlan)#vlan 11 name vlan11VLAN 11 added:Name: vlan11Switch(vlan)#Switch(vlan)#exitswA(config) #Int rang f0/1 – 4swA(config-if)#Switchport access vlan 10swA(config) #Int rang f0/5 – 8swA(config-if)#Switchport access vlan 11实验三:RIPV2基本配置1、请按图将三个路由器配置通,注意,所有IP地址必须严格一致;第一步:IP地址自己配置:Router>enRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.r2(config)#ho r1r1(config)#int loor1(config)#int loopback 0%LINK-5-CHANGED: Interface Loopback0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, changed state to upr1(config-if)#ip add 172.16.12.1 255.255.255.0r1(config-if)#no shr1(config-if)#int loopback 1%LINK-5-CHANGED: Interface Loopback1, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback1, changed state to upr1(config-if)#ip add 172.16.13.1 255.255.255.0r1(config-if)#no shr1(config-if)#exitr1(config)#int loopback 2%LINK-5-CHANGED: Interface Loopback2, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback2, changed state to upr1(config-if)#ip add 172.16.14.1 255.255.255.0r1(config-if)#no shr1(config-if)#int loopback 3%LINK-5-CHANGED: Interface Loopback3, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback3, changed state to upr1(config-if)#ip add 172.16.15.1 255.255.255.0r1(config-if)#no shr1(config-if)#exitr1(config)#int s2/0r1(config-if)#ip add 192.168.121.1 255.255.255.252r1(config-if)#clock rate 64000r1(config-if)#no shr1(config)#router ripr1(config-router)#version 2r1(config-router)#r1(config-router)#net 172.16.12.0r1(config-router)#net 172.16.13.0r1(config-router)#net 172.16.14.0r1(config-router)#net 172.16.15.0r1(config-router)#net 192.168.121.0%LINK-5-CHANGED: Interface Serial2/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to upr1(config-if)#end%SYS-5-CONFIG_I: Configured from console by consoler1#ping 172.17.12.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 172.17.12.1, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 50/60/63 ms第二个路由器Router>enRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#ho r2r2(config)#int s2/0r2(config-if)#ip add 192.168.121.2 255.255.255.252r2(config-if)#no sh%LINK-5-CHANGED: Interface Serial2/0, changed state to upr2(config-if)#%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to up r2(config-if)#int s3/0r2(config-if)#ip add 192.168.121.5 255.255.255.252r2(config-if)#no sh%LINK-5-CHANGED: Interface Serial3/0, changed state to downr2(config-if)#clock rate 64000r2(config-if)#exitr2(config)#router ripr2(config-router)#net 192.168.121.0r2(config-router)#net 192.168.121.4r2(config-router)#version 2%LINK-5-CHANGED: Interface Serial3/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial3/0, changed state to up r2(config-router)#exi第三个路由器Router>enRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#ho r3r3(config)#int s2/0r3(config-if)#ip add 192.168.121.6 255.255.255.252r3(config-if)#no sh%LINK-5-CHANGED: Interface Serial2/0, changed state to upr3(config-if)#%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to up r3(config-if)#r3(config-if)#int lo 0%LINK-5-CHANGED: Interface Loopback0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, changed state to up r3(config-if)#ip add 172.17.12.1 255.255.255.0r3(config-if)#no shr3(config-if)#exitr3(config)#router ripr3(config-router)#verr3(config-router)#version 2r3(config-router)#net 192.168.121.4r3(config-router)#net 172.17.12.0r3(config-router)#exit检查:在路由器上互相ping 通即可实验四:访问控制列表1、按照图将三个路由器配置通。