简析校园网中IP地址的动态分配网络毕业(2)
       2014-04-25 01:27
      
	  导读:(1)DHCP部分 enable bootprelay configure bootprelay add 10.10.0.251 configure vlan Default add port 8:46 untagged (2)VLAN设置部分 configure vlan jmx tag 1600 configure vlan xzl-K401 IPaddress 219
	  
        
  (1)DHCP部分 
  enable bootprelay 
  configure bootprelay add 10.10.0.251 
  configure vlan "Default" add port 8:46 untagged 
  (2)VLAN设置部分 
  configure vlan "jmx" tag 1600 
  configure vlan "xzl-K401" IPaddress 219.222.162.62 255.255.255.192 
  configure vlan "xzl-K401" add port 1:2 tagged 
  2.二层交换机的基本配置 
  switch(config)#hostname jmx 
  jmx(config) #vlan 1600 
  jmx(config-vlan)#exit 
  jmx(config)#interface range fastEthernet 0/1-48 
  jmx(config-if)#switchport access vlan 1600 
  jmx(config-if-range)#exit 
  jmx(config)#exit 
  jmx#write 
  3.客户端基本配置 
  DHCP服务需要客户端的配合才能工作。在默认情况下,Windows本身就设置为“自动获得IP地址”方式。如果以前为手动指定IP地址,可以通过如下方式更改设置: 
  右击“网上邻居”,在弹出的菜单中点击“属性”,弹出网络属性设置窗口,找到“Internet协议(TCP/IP)”一项并选中,再点击“属性”,即可以看到“TCP/IP”的属性。如果设置成“指定IP地址”,将其更改为“自动获取IP地址”即可。对于Windos2000/2003 Server系统,还需要将“DHCP CLIENT”服务启动,否则在Windos2000/2003 Serve中将不能自动获得IP地址。 
  这样最后插在s2150交换机48口任一端口的pc机的IP地址为219.222.162.1~219.222.162.61 
  四、结束语 
  本文对IP地址的动态分配牵涉到各方面知识做了简单介绍,并对实现校园网实施IP地址动态分配做了逐步简单的实验说明。实际中还应多查资料多实践,这样才能更好的发现问题、解决问题。 
   
  参考文献: 
  [1]夏雪风.在多个逻辑子网中实现DHCP 服务[N].中国电脑教育报.2004,G05版.  
(科教作文网http://zw.ΝsΕAc.com发布)
 
  [2]丁荣辉.谈子网划分之技巧[J].计算机与网络.2009,(32):239-241. 
  [3]刘阳.实现跨VLAN的DHCP服务配置方案[J].青岛职业技术学院学报,2007,20(6):61-65.