实验003企业分支局域网.docx
- 文档编号:5522010
- 上传时间:2023-05-08
- 格式:DOCX
- 页数:25
- 大小:170.32KB
实验003企业分支局域网.docx
《实验003企业分支局域网.docx》由会员分享,可在线阅读,更多相关《实验003企业分支局域网.docx(25页珍藏版)》请在冰点文库上搜索。
实验003企业分支局域网
实验三
实验名称:
dhcp实验学员:
李彬倩
实验目的:
熟悉dhcp服务器配置和dhcp中继配置
实验拓扑图:
实验配置:
Sw1的基本配置:
sw1#vland
sw1(vlan)#vlan8
sw1(vlan)#vlan10
sw1(vlan)#vlan11
sw1(vlan)#vlan12
w1(config)#intvlan8
sw1(config-if)#ipaddress192.168.2.129255.255.255.128
sw1(config)#intvlan10
sw1(config-if)#ipaddress192.168.10.1255.255.255.0
sw1(config)#intvlan11
sw1(config-if)#ipaddress192.168.11.1255.255.255.0
sw1(config)#intvlan12
sw1(config-if)#ipaddress192.168.12.1255.255.255.0
sw1(config)#intf0/12
sw1(config-if)#switchportaccessvlan12
sw1(config)#iprouting///启动三层功能
sw1(config)#servicedhcp//配置为dhcp服务器
sw1(config)#ipdhcppoollz//定义地址池
sw1(dhcp-config)#network192.168.10.0255.255.255.0
sw1(dhcp-config)#default-router192.168.10.1//默认网关
sw1(dhcp-config)#dns-server202.202.1.1//dns服务器地址
sw1(config)#ipdhcppoollbq
sw1(dhcp-config)#network192.168.11.0255.255.255.0
sw1(dhcp-config)#default-router192.168.11.1
ssw1(dhcp-config)#dns-server202.202.1.1
sw1(config)#ipdhcpexcluded-address192.168.10.100192.168.10.254//出去不能分配的地址
sw1(config)#ipdhcpexcluded-address192.168.11.100
sw1(config)#servicedhcp
sw1(config)#ipdhcprelayinformationoption//启动中继
sw1(config)#intvlan10
sw1(config-if)#iphelper-address192.168.12.200//配置服务器的地址
sw1(config)#intvlan11
sw1(config-if)#iphelper-address192.168.12.200//配置服务器的地址
Sw3的基本配置:
sw3(config)#intf0/1
sw3(config-if)#switchportted
sw3(config-if)#swmt
sw3#vland
sw3(vlan)#vlan8
sw3(vlan)#vlan10
sw3(vlan)#vlan11
sw3(vlan)#vlan12
sw3(config)#intf0/10
sw3(config-if)#switchportaccvla10
sw3(config)#intf0/11
sw3(config-if)#swaccvlan11
sw3(config)#intvlan8
sw3(config-if)#ipaddress192.168.8.130255.255.255.128
sw3(config)#ipdefault-gateway192.168.2.129
Sw4的基本配置:
sw4#vland
sw4(vlan)#vlan8
sw4(vlan)#vlan10
sw4(vlan)#vlan11
sw4(vlan)#vlan12
sw4(config)#intf0/10
sw4(config-if)#switchportaccvlan10
sw4(config)#intf0/11
sw4(config-if)#swaccvlan11
sw4(config)#intf0/1
sw4(config-if)#switchportted
sw4(config-if)#swmt
sw4(config)#intvlan8
sw4(config-if)#ipaddress192.168.8.131255.255.255.128
sw4(config)#ipdefault-g192.168.8.129
rt5的基本配置:
rt5(config)#inte0/0
rt5(config-if)#ipaddress192.168.12.200255.255.255.0
rt5(config-if)#noshu
rt5(config-if)#duplexfull
rt5(config)#iproute0.0.0.00.0.0.0192.168.12.1
rt5(config)#servicedhcp//配置服务器
rt5(config)#ipdhcppoolaa//配置地址池
rt5(dhcp-config)#network192.168.10.0255.255.255.0
rt5(dhcp-config)#default-router192.168.10.1
rt5(dhcp-config)#dns-server202.202.202.1
rt5(config)#ipdhcppool11
rt5(dhcp-config)#network192.168.11.0255.255.255.0
rt5(dhcp-config)#default-router192.168.11.1
rt5(dhcp-config)#dns-server202.202.202.1
rt5(config)#ipdhcpexcluded-address192.168.11.1192.168.11.150//除去不能用地址
rt5(config)#ipdhcpexcluded-address192.168.10.1192.168.10.150
实验测试:
Rt5的路由表:
Gatewayoflastresortis192.168.12.1tonetwork0.0.0.0
C192.168.12.0/24isdirectlyconnected,Ethernet0/0
S*0.0.0.0/0[1/0]via192.168.12.1//缺省路由
Sw1做服务器时Pc2的自动获取的地址:
VPCS2>dhcp
DDORA,IP192.168.11.2/24GW192.168.11.1
Sw1做服务器时Pc3的自动获取的地址:
VPCS3>dhcp
DDORA,IP192.168.10.2/24GW192.168.10.1
Sw1做中继,rt5做服务器时Pc2的自动获取的地址:
VPCS2>dhcp
DDORA,IP192.168.11.151/24GW192.168.11.1
Sw1做中继,rt5做服务器时Pc2的自动获取的地址:
VPCS3>dhcp
DDORA,IP192.168.10.151/24GW192.168.10.1
测试与各网段的连通性:
VPCS2>ping192.168.11.100
192.168.11.100icmp_seq=1time=31.000ms
192.168.11.100icmp_seq=2time=47.000ms
192.168.11.100icmp_seq=3time=31.000ms
192.168.11.100icmp_seq=4time=47.000ms
192.168.11.100icmp_seq=5time=47.000ms
VPCS2>ping192.168.10.100
192.168.10.100icmp_seq=1time=62.000ms
192.168.10.100icmp_seq=2time=78.000ms
192.168.10.100icmp_seq=3time=94.000ms
192.168.10.100icmp_seq=4time=78.000ms
192.168.10.100icmp_seq=5time=125.000ms
VPCS2>ping192.168.10.2
192.168.10.2icmp_seq=1time=79.000ms
192.168.10.2icmp_seq=2time=78.000ms
192.168.10.2icmp_seq=3time=78.000ms
192.168.10.2icmp_seq=4time=94.000ms
192.168.10.2icmp_seq=5time=62.000ms
VPCS2>
VPCS2>ping192.168.8.129
192.168.8.129icmp_seq=1time=93.000ms
192.168.8.129icmp_seq=2time=47.000ms
192.168.8.129icmp_seq=3time=62.000ms
192.168.8.129icmp_seq=4time=78.000ms
192.168.8.129icmp_seq=5time=47.000ms
实验showrun:
sw1#showrun
Buildingconfiguration...
Currentconfiguration:
1380bytes
!
version12.3
servicetimestampsdebugdatetimemsec
servicetimestampslogdatetimemsec
noservicepassword-encryption
!
hostnamesw1
!
boot-start-marker
boot-end-marker
!
!
noaaanew-model
!
resourcepolicy
!
memory-sizeiomem5
ipsubnet-zero
!
!
ipcef
ipdhcprelayinformationoption
noipdhcpusevrfconnected
!
!
noipdomainlookup
noftp-serverwrite-enable
!
!
!
!
interfaceFastEthernet0/0
!
interfaceFastEthernet0/1
switchportmodetrunk
!
interfaceFastEthernet0/2
switchportmodetrunk
!
interfaceFastEthernet0/3
!
interfaceFastEthernet0/4
!
interfaceFastEthernet0/5
!
interfaceFastEthernet0/6
!
interfaceFastEthernet0/7
!
interfaceFastEthernet0/8
!
interfaceFastEthernet0/9
!
interfaceFastEthernet0/10
!
interfaceFastEthernet0/11
!
interfaceFastEthernet0/12
switchportaccessvlan12
!
interfaceFastEthernet0/13
!
interfaceFastEthernet0/14
!
interfaceFastEthernet0/15
!
interfaceVlan1
noipaddress
!
interfaceVlan8
ipaddress192.168.8.129255.255.255.128
!
interfaceVlan10
ipaddress192.168.10.1255.255.255.0
iphelper-address192.168.12.200
!
interfaceVlan11
ipaddress192.168.11.1255.255.255.0
iphelper-address192.168.12.200
!
interfaceVlan12
ipaddress192.168.12.1255.255.255.0
!
iphttpserver
ipclassless
!
!
!
!
!
control-plane
!
!
linecon0
exec-timeout00
loggingsynchronous
lineaux0
linevty04
!
End
sw3#showrun
Buildingconfiguration...
Currentconfiguration:
1142bytes
!
version12.3
servicetimestampsdebugdatetimemsec
servicetimestampslogdatetimemsec
noservicepassword-encryption
!
hostnamesw3
!
boot-start-marker
boot-end-marker
!
!
noaaanew-model
!
resourcepolicy
!
memory-sizeiomem5
ipsubnet-zero
!
!
ipcef
noipdhcpusevrfconnected
sw3#
sw3#
sw3#
sw3#
sw3#showrun
Buildingconfiguration...
Currentconfiguration:
1142bytes
!
version12.3
servicetimestampsdebugdatetimemsec
servicetimestampslogdatetimemsec
noservicepassword-encryption
!
hostnamesw3
!
boot-start-marker
boot-end-marker
!
!
noaaanew-model
!
resourcepolicy
!
memory-sizeiomem5
ipsubnet-zero
!
!
ipcef
noipdhcpusevrfconnected
!
!
noipdomainlookup
noftp-serverwrite-enable
!
!
!
!
interfaceFastEthernet0/0
!
interfaceFastEthernet0/1
switchportmodetrunk
!
interfaceFastEthernet0/2
!
interfaceFastEthernet0/3
!
interfaceFastEthernet0/4
!
interfaceFastEthernet0/5
!
interfaceFastEthernet0/6
!
interfaceFastEthernet0/7
!
interfaceFastEthernet0/8
!
interfaceFastEthernet0/9
!
interfaceFastEthernet0/10
switchportaccessvlan10
!
interfaceFastEthernet0/11
switchportaccessvlan11
!
interfaceFastEthernet0/12
!
interfaceFastEthernet0/13
!
interfaceFastEthernet0/14
!
interfaceFastEthernet0/15
!
interfaceVlan1
noipaddress
!
interfaceVlan8
ipaddress192.168.8.130255.255.255.128
!
ipdefault-gateway192.168.2.129
iphttpserver
ipclassless
!
!
!
!
!
control-plane
!
!
linecon0
exec-timeout00
loggingsynchronous
lineaux0
linevty04
!
End
sw4#showrun
Buildingconfiguration...
Currentconfiguration:
1142bytes
!
version12.3
servicetimestampsdebugdatetimemsec
servicetimestampslogdatetimemsec
noservicepassword-encryption
!
hostnamesw4
!
boot-start-marker
boot-end-marker
!
!
noaaanew-model
!
resourcepolicy
!
memory-sizeiomem5
ipsubnet-zero
!
!
ipcef
noipdhcpusevrfconnected
!
!
noipdomainlookup
noftp-serverwrite-enable
!
!
!
!
interfaceFastEthernet0/0
!
interfaceFastEthernet0/1
switchportmodetrunk
!
interfaceFastEthernet0/2
!
interfaceFastEthernet0/3
!
interfaceFastEthernet0/4
!
interfaceFastEthernet0/5
!
interfaceFastEthernet0/6
!
interfaceFastEthernet0/7
!
interfaceFastEthernet0/8
!
interfaceFastEthernet0/9
!
interfaceFastEthernet0/10
switchportaccessvlan10
!
interfaceFastEthernet0/11
switchportaccessvlan11
!
interfaceFastEthernet0/12
!
interfaceFastEthernet0/13
!
interfaceFastEthernet0/14
!
interfaceFastEthernet0/15
!
interfaceVlan1
noipaddress
!
interfaceVlan8
ipaddress192.168.8.131255.255.255.128
!
ipdefault-gateway192.168.8.129
iphttpserver
ipclassless
!
!
!
!
!
control-plane
!
!
linecon0
exec-timeout00
loggingsynchronous
lineaux0
linevty04
!
end
sw4#showrun
Buildingconfiguration...
Currentconfiguration:
1142bytes
!
version12.3
servicetimestampsdebugdatetimemsec
servicetimestampslogdatetimemsec
noservicepassword-encryption
!
hostnamesw4
!
boot-start-marker
boot-end-marker
!
!
noaaanew-model
!
resourcepolicy
!
memory-sizeiomem5
ipsubnet-zero
!
!
ipcef
noipdhcpusevrfconnected
!
!
noipdomainlookup
noftp-serverwrite-enable
!
!
!
!
interfaceFastEthernet0/0
!
interfaceFastEthernet0/1
switchportmodetrunk
!
interfaceFastEthernet0/2
!
interfaceFastEthernet0/3
!
interfaceFastEthernet0/4
!
interfaceFastEthernet0/5
!
interfaceFastEthernet0/6
!
interfaceFastEthernet0/7
!
interfaceFastEthernet0/8
!
interfaceFastEthernet0/9
!
interfaceFastEthernet0/10
switchportaccessvlan10
!
interfaceFastEthernet0/11
switchportaccessvlan11
!
interfaceFastEthernet0/12
!
interfaceFastEthernet0/13
!
interfaceFastEthernet0/14
!
int
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 实验 003 企业 分支 局域网