首页 > 系统服务 > 详细

Cisco Packet Tracert 之 三层交换机DHCP服务

时间:2015-04-09 20:09:08      阅读:352      评论:0      收藏:0      [点我收藏+]

实验环境:

技术分享

 

实验目的:

1、在三层交换机划分VLAN100\VLAN200,并且把FA0/1 和FA0/2分别划分到VLAN100 \VLAN200上。

2、在三层交换机上创建各VLAN的IP地址池,并创建网关的相应信息。

3、在客户端查看是否获取了相应的IP的信息。

实验步骤:

1、在三层交换机划分VLAN100\VLAN200,并且把FA0/1 和FA0/2分别划分到VLAN100 \VLAN200上。

Switch>enable

Switch#conf t

Enter configuration commands, one per line.  End with CNTL/Z.

Switch(config)#vlan 100

Switch(config-vlan)#exit

Switch(config)#vlan 200

Switch(config-vlan)#exit

Switch(config)#int vlan100

Switch(config-if)#

%LINK-5-CHANGED: Interface Vlan100, changed state to up

Switch(config-if)#ip add 192.168.100.254 255.255.255.0

Switch(config-if)#exit

Switch(config)#int vlan 200

Switch(config-if)#

%LINK-5-CHANGED: Interface Vlan200, changed state to up

Switch(config-if)#ip add 192.168.200.254 255.255.255.0

Switch(config-if)#exit

Switch(config)#int fa0/1

Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 100

Switch(config-if)#

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan100, changed state to up

Switch(config-if)#exit

Switch(config)#int fa0/2

Switch(config-if)#switchport mode access

Switch(config-if)#switchport access vlan 200

2、在三层交换机上创建各VLAN的IP地址池,并创建网关的相应信息。

Switch(config)#ip dhcp pool vlan100

Switch(dhcp-config)#network 192.168.100.0 255.255.255.0

Switch(dhcp-config)#default-router 192.168.100.254

Switch(dhcp-config)#exit

Switch(config)#ip dhcp pool vlan200

Switch(dhcp-config)#network 192.168.200.0 255.255.255.0

Switch(dhcp-config)#default-router 192.168.200.254

Switch(dhcp-config)#exit

3、在客户端查看是否获取了相应的IP的信息。

技术分享


Cisco Packet Tracert 之 三层交换机DHCP服务

原文:http://mingkang.blog.51cto.com/9678221/1630588

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!