ImageVerifierCode 换一换
格式:DOCX , 页数:14 ,大小:70.69KB ,
资源ID:7165598      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bdocx.com/down/7165598.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(实验四 三层交换与DHCP中继.docx)为本站会员(b****5)主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(发送邮件至service@bdocx.com或直接QQ联系客服),我们立即给予删除!

实验四 三层交换与DHCP中继.docx

1、实验四 三层交换与DHCP中继一、 实验目标1、 实现企业分支局域网二层广播域vlan隔离和三层全网连通2、 实现企业分支局域网的PC使用DHCP自动获取IP地址、DNS3、 掌握vlan、trunk、二层交换机网管地址、服务器vlan、SVI接口的配置4、 分析PC1 ping Sever(RT5)的三层通信过程和二层通信过程5、 分析PC1 ping SW3网管地址的三层通信过程和二层通信过程二、 实验拓扑 三、 实验内容1、 基本信息配置SW1Switchenable/进入全局模式Switch#config terminal/进入特权模式Switch(config)#hostname S

2、W1/设置主机名SW1(config)#no ip domain lookup/禁用域名查找SW1(config)#enable password ip/设置进入特权模式密码SW1(config)#line console 0/连接到console线口 SW1(config-line)#logging synchronous/自动换行SW1(config-line)#exec-t 0/超时为0SW1(config-line)#password ip/设置进入console线口的密码SW1(config-line)#login/进入console线口是需要进行认证SW1(config-line)

3、#exit/退出console线口SW1(config)#line aux 0/进入线口SW1(config-line)#logging synchronous/自动换行SW1(config-line)#exec-t 0/超时为0SW1(config-line)#password bluefox/设置进入本线口的密码SW1(config-line)#login/设置进入线口是进行认证SW1(config-line)#exit/退出线口SW1(config)#line vty 04/进入线口SW1(config-line)#logging synchronous/自动换行SW1(config-l

4、ine)#exec-t 0/超时为0SW1(config-line)#password bluefox/设置进入密码SW1(config-line)#login/设置进入是进行认证SW1(config-line)#exit/退出线口SW3SW3enableSW3#config terminalSW3(config)#hostname SW3SW3(config)#no ip domain lookupSW3(config)#enable password ipSW3(config)#line console 0 SW3(config-line)#logging synchronousSW3(c

5、onfig-line)#exec-t 0SW3(config-line)#password ipSW3(config-line)#loginSW3(config-line)#exitSW3(config)#line aux 0SW3(config-line)#logging synchronousSW3(config-line)#exec-t 0SW3(config-line)#password bluefoxSW3(config-line)#login SW3(config-line)#exitSW3(config)#line vty 04SW3(config-line)#logging s

6、ynchronous SW3(config-line)#exec-t 0SW3(config-line)#password bluefoxSW3(config-line)#login SW3(config-line)#exitSW4Switchenable Switch#config terminalSwitch(config)#hostname SW4SW4(config)#no ip domain lookupSW4(config)#enable password ipSW4(config)#line console 0 SW4(config-line)#logging synchrono

7、usSW4(config-line)#exec-t 0SW4(config-line)#password ipSW4(config-line)#loginSW4(config-line)#exitSW4(config)#line aux 0SW4(config-line)#logging synchronousSW4(config-line)#exec-t 0SW4(config-line)#password bluefoxSW4(config-line)#login SW4(config-line)#exitSW4(config)#line vty 04SW4(config-line)#lo

8、gging synchronous SW4(config-line)#exec-t 0SW4(config-line)#password bluefoxSW4(config-line)#login SW4(config-line)#exitRT5Routerenable Router#config terminalRouter(config)#hostname RT5RT5(config)#no ip domain lookupRT5(config)#enable password ipRT5(config)#line console 0 RT5(config-line)#logging sy

9、nchronousRT5(config-line)#exec-t 0RT5(config-line)#password ipRT5(config-line)#loginRT5(config-line)#exitRT5(config)#line aux 0RT5(config-line)#logging synchronousRT5(config-line)#exec-t 0RT5(config-line)#password bluefoxRT5(config-line)#login RT5(config-line)#exitRT5(config)#line vty 04RT5(config-l

10、ine)#logging synchronous RT5(config-line)#exec-t 0RT5(config-line)#password bluefoxRT5(config-line)#login RT5(config-line)#exit2、 创建vlanSW1SW1#vlan database/进入vlan database模式SW1(vlan)#vlan 8/创建vlan8SW1(vlan)#vlan 10/创建vlan10SW1(vlan)#vlan 11/创建vlan11SW1(vlan)#vlan 12/创建vlan12SW1(vlan)#exit/退出vlan da

11、tabase模式 SW3SW3#vlan datbase SW3(vlan)#vlan 8SW3(vlan)#vlan 10SW3(vlan)#vlan 11SW4SW4#vlan database SW4(vlan)#vlan 8SW4(vlan)#vlan 10SW4(vlan)#vlan 113、二层接口配置SW1SW1(config)#interface range fastethernet0/1 -2/进入以太网接口1和2,此处为批量设置加上range命令SW1(config-if-range)#switchport trunk encapsulation dot1q /配置trun

12、k封装协议SW1(config-if-range)#switchport mode trunk/配置接口为trunk接口SW1(config-if-range)#switchport trunk allowde vlan all/配置trunk接口允许所有vlan通过SW1(config-if-range)#exit/退出接口SW1(config)#inter fastethernet0/12/进入口SW1(config-if)#switchport mode access/配置为access接口SW1(config-if)#switchport access vlan 12/将接口划分到vl

13、an12SW1(config-if)#exit/退出接口SW3SW3(vlan)#exit SW3(config)#interface fastethernet0/10SW3(config-if)#switchport mode accessSW3(config-if)#switchport access vlan 10SW3(config-if)#exit SW3(config)#interface fastethernet0/11SW3(config-if)#switchport mode access SW3(config-if)#switchport access vlan 11SW3

14、(config-if)#exit SW3(config)#interface fastethernet0/1SW3(config-if)#switchport trunk encapsulation dot1q SW3(config-if)#switchport mode trunk SW3(config-if)#switchport trunk allowde vlan all SW3(config-if)#exit SW4SW4(config)#interface fastethernet0/10SW4(config-if)#switchport mode access SW4(confi

15、g-if)#switchport access vlan 10SW4(config-if)#exit SW4(config)#interface fastethernet0/11SW4(config-if)#switchport mode access SW4(config-if)#switchport access vlan 11SW4(config-if)#exit SW4(config)#interface fastethernet0/1SW4(config-if)#switchport trunk encapsulation dot1q SW4(config-if)#switchpor

16、t mode trunk SW4(config-if)#switchport trunk allowed vlan all SW4(config-if)#exit4、二层设备网管地址配置SW3SW3(config)#interface vlan 8/为SW3配置网管地址SW3(config-if)#ip address 192.168.8.130 255.255.255.128/配置ip地址SW3(config-if)#no shutdown/启用SW3(config-if)#exit/退出SW3(config)#ip default-gateway 192.168.8.129/配置默认网关地

17、址SW4SW4(config)#interface vlan 8SW4(config-if)#ip address 192.168.8.131 255.255.255.128SW4(config-if)#no shutdownSW4(config-if)#exit SW4(config)#ip default-gateway 192.168.8.1295、三层接口配置SW1SW1(config)#interface vlan 8/配置vlan8的路由点SW1(config-if)#ip address 192.168.8.129 255.255.255.128/配置ip地址SW1(config

18、-if)#no shutdown/启用SW1(config-if)#exit/退出SW1(config)#interface vlan 10/配置vlan10的路由点SW1(config-if)#ip address 192.168.10.1 255.255.255.0/配置ip地址SW1(config-if)#no shutdown/启用SW1(config-if)#exit/退出SW1(config)#interface vlan 11/配置vlan11的路由点SW1(config-if)#ip address 192.168.11.1 255.255.255.0/配置ipSW1(conf

19、ig-if)#no shutdown/启用SW1(config-if)#exit/退出SW1(config)#interface vlan 12/配置vlan12的路由点SW1(config-if)#ip address 192.168.12.1 255.255.255.0/配置ip地址SW1(config-if)#no shutdown/启用SW1(config-if)#exit/退出SW1(config)#ip routing /启用SW1的三层路由功能SW3(config)#ip routing /关闭SW3的三层路由功能,只当二层交换机使用SW4(config)#ip routing

20、/关闭SW4的三层路由功能,只当二层交换机使用RT5RT5(config)#interface ethernet 0/0 RT5(config-if)#ip add 192.168.12.200 255.255.255.0RT5(config-if)#no shutdownRT5(config-if)#exit6、缺省路由配置RT5(config)#ip router 0.0.0.0 0.0.0.0 192.168.12.1/全网段地址的下一跳都是192.168.12.17、全网连通性测试 部分ping结果:VPCS 1 ping 192.168.8.131192.168.8.131 icmp

21、_seq=1 time=27.000 ms192.168.8.131 icmp_seq=2 time=14.000 ms192.168.8.131 icmp_seq=3 time=16.000 ms192.168.8.131 icmp_seq=4 time=12.000 ms192.168.8.131 icmp_seq=5 time=15.000 msVPCS 4 ping 192.168.10.100192.168.10.100 icmp_seq=1 timeout192.168.10.100 icmp_seq=2 time=17.000 ms192.168.10.100 icmp_seq=

22、3 time=12.000 ms192.168.10.100 icmp_seq=4 time=14.000 ms192.168.10.100 icmp_seq=5 time=11.000 msVPCS 4 ping 192.168.8.130192.168.8.130 icmp_seq=1 timeout192.168.8.130 icmp_seq=2 timeout192.168.8.130 icmp_seq=3 time=17.000 ms192.168.8.130 icmp_seq=4 time=15.000 ms192.168.8.130 icmp_seq=5 time=18.000

23、ms8、在SW1上部署DHCP服务器 SW1(config)#service dhcp /启用DHCP服务SW1(config)#ip dhcp pool vlan10/配置名为vlan10的DHCP地址池SW1(dhcp-config)#network 192.168.10.0 255.255.255.0/该地址池的地址网段SW1(dhcp-config)#default-router 192.168.10.1/分给PC的网关SW1(dhcp-config)#dns-server 202.103.96.68/分给PC的DNSSW1(dhcp-config)#exit/退出SW1(config

24、)#ip dhcp pool vlan11/创建名为vlan11的DHCP地址池SW1(dhcp-config)#network 192.168.11.0 255.255.255.0地址池的网段SW1(dhcp-config)#default-router 192.168.11.1/分给PC的网关SW1(dhcp-config)#dns-server 202.103.96.68/分给PC的DNSSW1(dhcp-config)#exit/退出SW1(config)#ip dhcp excluded-address 192.168.10.100 192.168.10.254/配置vlan10中不

25、允许分配给PC的地址SW1(config)#ip dhcp excluded-address 192.168.11.100 192.168.11.254/配置vlan11中不允许分配给PC的地址9、DHCP测试VPCS 2 dhcpDDORA, IP 192.168.11.2/24 GW 192.168.11.1VPCS 2 3VPCS 3 dhcpDDORA, IP 192.168.10.2/24 GW 192.168.10.1注:由于实验是在模拟器上进行,此步骤是在虚拟PC上获取,敲入dhcp命令获取成功,以上信息在虚拟机上复制。10、删除SW1上DHCP服务、在RT5上创建DHCP服务器

26、、启用SW1的DHCP中继功能SW1(config)#no ip dhcp pool vlan10/删除地址池vlan10SW1(config)#no ip dhcp pool vlan11/删除地址池vlan11SW1(config)#no ip dhcp excluded-address 192.168.10.100 192.168.10.254/删除DHCP排除地址SW1(config)#no ip dhcp excluded-address 192.168.11.100 192.168.11.254/删除DHCP排除地址SW1(config)#service dhcp/启用DHCP服务

27、SW1(config)#ip dhcp relay information option/配置DHCP中继支持DHCP option 82SW1(config)#interface vlan 10/在int vlan10 上启用DHCP中继SW1(config-if)#ip helper-address 192.168.12.200/配置vlan10DHCP信息去往下一跳地址为192.168.12.200SW1(config-if)#exit/退出SW1(config)#interface vlan 11/在int vlan11上启用DHCP中继SW1(config-if)#ip helper

28、-address 192.168.12.200/配置vlan11DHCP信息去往下一跳地址为192.168.12.200SW1(config-if)#exit/退出RT5部署DHCP服务器RT5(config)#service dhcp/启用DHCP服务RT5(config)#ip dhcp pool vlan10/创建名为vlan10的DHCP地址池RT5(dhcp-config)#network 192.168.10.0 255.255.255.0/分配给PC的地址段RT5(dhcp-config)#default-router 192.168.10.1/分配给PC的网关RT5(dhcp-

29、config)#dns-server 202.103.96.68/分配给PC的DNSRT5(dhcp-config)#exit/退出RT5(config)#ip dhcp pool vlan11/创建名为vlan11的DHCP地址池RT5(dhcp-config)#network 192.168.11.0 255.255.255.0/分配给PC的地址段RT5(dhcp-config)#default-router 192.168.11.1/分配给PC的网关RT5(dhcp-config)#dns-server 202.103.96.68/分配给PC的DNSRT5(dhcp-config)#ex

30、it/退出RT5(config)#ip dhcp excluded-address 192.168.10.1 192.168.10.150/不允许分配给PC的地址,是两个地址之间的所有地址都不分配。RT5(config)#ip dhcp excluded-address 192.168.11.1 192.168.11.150/不允许分配给PC的地址 11、DHCP地址获取测试VPCS 3 dhcpDDORA, IP 192.168.10.151/24 GW 192.168.10.1VPCS 2 dhcpDDORA, IP 192.168.11.152/24 GW 192.168.11.1四、 实验总结1、DHCP是一个自动为主机分配IP地址的协议,以广播形式发送消息,本实验中因为三层交换机是隔离广播域的,所以需要在三层交换机上启用DHCP中继,将广播变成单播发送给服务器(RT5)实验中将服务器设

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

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