思科模拟器——DHCP服务器中继实验
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
2017-7-9
基于思科模拟器
ZKY正品体育
思科模拟器DHCP服务器中继实验【DHCP服务器中继案例1】只有一个网段的DHCP中继
其中路由器作为DHCP服务器,交换机作为中继
一、交换机配置过程
Switch>
Switch>en
Switch#conf
Switch(config)#vlan 10 创建VLAN 10
Switch(config-vlan)#exit
Switch(config)#int vlan 10
Switch(config-if)#ip address 192.168.10.254 255.255.255.0 为VLAN 10配置地址Switch(config-if)#no shut 开启虚拟接口
Switch(config-if)#exit
Switch(config)#int fa0/1
Switch(config-if)#switchport access vlan 10 将fa0/1加入vlan 10
Switch(config-if)#exit
Switch(config)#int fa0/24
Switch(config-if)#no switchport 将交换口转换为路由口
Switch(config-if)#ip ad
Switch(config-if)#ip address 172.16.1.1 255.255.255.0
Switch(config-if)#no shut
Switch(config-if)#ex
Switch(config)#ip route 0.0.0.0 0.0.0.0 172.16.1.2
Switch(config-if)#
Switch(config-if)#exit
Switch(config)#int vlan 10
Switch(config-if)#ip ?
access-group Specify access control for packets
address Set the IP address of an interface
hello-interval Configures IP-EIGRP hello interval
helper-address Specify a destination address for UDP broadcasts nat NAT interface commands
ospf OSPF interface commands
proxy-arp Enable proxy ARP
split-horizon Perform split horizon
summary-address Perform address summarization
Switch(config-if)#ip help
Switch(config-if)#ip helper-address 172.16.1.2
Switch(config-if)#end
Switch#
%SYS-5-CONFIG_I: Configured from console by console
Switch#sh ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is 172.16.1.2 to network 0.0.0.0
172.16.0.0/24 is subnetted, 1 subnets
C 172.16.1.0 is directly connected, FastEthernet0/24
C 192.168.10.0/24 is directly connected, Vlan10
S* 0.0.0.0/0 [1/0] via 172.16.1.2
Switch#conf
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#ip routing
Switch(config)#end
Switch#
%SYS-5-CONFIG_I: Configured from console by console
Switch#wr
Building configuration...