自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

DHCP server應(yīng)用場(chǎng)景分析

網(wǎng)絡(luò) 網(wǎng)絡(luò)管理
下面針對(duì)DHCP server的內(nèi)容我們進(jìn)行了講解。首先我們需要對(duì)所發(fā)生的問(wèn)題有所了解,那么那個(gè)交換機(jī)上的ip help-address 的IP 是什么呢?是router 上哪個(gè)口的IP 呢?

DHCP服務(wù)器的使用我們是比較了解的,所涉及兩個(gè)方面的內(nèi)容,一個(gè)是客戶(hù)端一個(gè)是服務(wù)器端。這里我們提出一個(gè)關(guān)于DHCP server的問(wèn)題。我的問(wèn)題就是如何給每個(gè)VLAN 指定各自的DHCP 域。比如vlan 2 對(duì)應(yīng)dhcp test2 vlan3 對(duì)應(yīng)dhcp test3. 假如:

情況1: 現(xiàn)在有一個(gè)router 上做了多個(gè)DHCP 域.

然后在switch 上劃VLAN 。那么那個(gè)交換機(jī)上的ip help-address 的IP 是什么呢?是router 上哪個(gè)口的IP 呢? 如:在router 上的配制:

  1. ip dhcp excluded-address 10.0.199.200 10.0.199.254 ! ip dhcp pool test 1 network 10.0.199.0 255.255.255.0 default-router 10.0.199.1 dns-server 10.0.199.252 lease 0 0 5  
  2.  
  3. ip dhcp pool test 2 network 10.0.200.0 255.255.255.0 default-router 10.0.200.1 dns-server 10.0.199.252 lease 0 0 5 

在交換機(jī)上:

  1. interface Vlan199 ip address 10.0.199.1 255.255.255.0 ip helper-address ???????????????  
  2. int vlan 200  
  3. ip address 10.0.200.1 255.255.255.0 ip helper-address ???????????  

這時(shí)在這里指定的helper-address 是什么呢?才能把vlan199 和vlan200 里的電腦取得相應(yīng)DHCP scope???

第二種情況:利用局域網(wǎng)中的win2000’s DHCP server 假如dhcp server 的ip 192.168.10.1 在DHCP 上劃分兩個(gè)scope.***個(gè)scope 192.168.10.10 -----192.168.10.255 第二個(gè)scope 192.16.20.10 ------192.16.20.255.

交換機(jī)劃分VLAN 之后,如何保證DHCP 服務(wù)器使用仍然在其它區(qū)域起作用。即VLAN10 里的機(jī)器取得***個(gè)scope 里的ip: 即從192.168.10.10 -----192.168.10.255 同樣,vlan20 取得相應(yīng)第二個(gè)scope 里的IP. 這時(shí)在這里指定的helper-address 是什么呢? 才能把vlan199 和vlan200 里的電腦取得相應(yīng)DHCP scope???

第三種情況:假如在一個(gè)3550emi 上劃分多個(gè)DHCP 域。由于它本身就可路由。并能劃VLAN。那么這時(shí)在這里指定的helper-address 是什么呢?才能把vlan199 和vlan200 里的電腦取得相應(yīng)DHCP scope???

  1. FW:ip dhcp pool valn x  
  2. network x.x.x.x x.x.x.x  
  3. default-router x.x.x.x 

其中vlan x 這個(gè)pool 是全局pool 的子集

  1. interface vlan x  
  2. ip helper-address x.x.x.x  
  3. The helper address can be a specific DHCP server address, or it can be the network address  
  4. if other DHCP servers are on the destination network segment. Using the network address enables other servers to respond to DHCP requests.  
  5. If you have multiple servers, you can configure one helper address for each server. 

DHCP relay:

http://www.cisco.com/en/US/products...00800c6ed2.html

FW: 以一個(gè)配置案例來(lái)做總結(jié)吧:

router1 的int fa0/0 上接有dhcp server 。和router2 通過(guò)s0/0 連接IP 地址方案如下:

  1. route1:  
  2. int fa0/0 10.1.1.254/24 int fa0/1 10.1.2.254/24 int s0/0 192.168.0.1/30 route2:  
  3. int fa0/0 10.2.1.254/24 int fa0/1 10.2.2.254/24 int s0/0 192.168.0.2/30 dhcp server adderss:10.1.1.1 

配置:

  1. router1: ! ip forward-protocol udp  
  2. ! int fa0/0 ip addr 10.1.1.254 255.255.255.0  
  3. no shutdown ! int fa0/1 ip addr 10.1.2.254 255.255.255.0  
  4. ip helper-address 10.1.1.1 no shut !  
  5. int s0/0 ip addr 192.168.0.1 255.255.255.252 no shut  
  6. encap ppp  
  7. !  
  8. ip route 10.2.0.0 255.255.0.0 192.168.0.2     
  9. ! router2: !  
  10. ip forward-protocol udp ! int fa0/0 ip addr 10.2.1.254 255.255.255.0  
  11. ip helper-address 10.1.1.1 no shutdown !  
  12. int fa0/1 ip addr 10.2.2.254 255.255.255.0 ip helper-address 10.1.1.1 no shut  
  13. ! int s0/0 ip addr 192.168.0.2 255.255.255.252  
  14. no shut encap ppp ! ip route 10.1.0.0 255.255.0.0 192.168.0.1 ! dhcp server: scope 11: router:10.1.1.254  
  15. scope 12: router:10.1.2.254 scope 21: router:10.2.1.254  
  16. scope 22:  
  17. router:10.2.2.254 

使用VLAN 的情況配置與此相同。只不過(guò)把int fa 換成int vlan 而已。你只需要將VLAN 當(dāng)做是第N 個(gè)SCOPE 的ROUTE 選項(xiàng)就行了。在你的交換機(jī)上按常規(guī)劃分好VLAN:

假設(shè)有:VLAN20 和VLAN30, 你先在交換機(jī)上劃分好(這步應(yīng)該都會(huì)做), 然后在路由器上設(shè)置VLAN 網(wǎng)關(guān)(假設(shè)是FA0/0.1:192.168.20.254/24 和FA0/0.2:192.168.30.254/24), 在VLAN20 接口和VLAN30 接口下分別設(shè)置ip help-address DHCP_SERVER_ADD,IP FORWARD UDP 等,其實(shí)DHCP_SERVER 接在哪里無(wú)所謂,只要能夠ROUTE 通,就行。關(guān)鍵是DHCP_SERVER 上設(shè)置SCOPE 時(shí),你分兩個(gè),其中一個(gè)為192.168.20.0 網(wǎng)段的,它的相應(yīng)ROUTE 選項(xiàng)為192.168.20.254, 另一個(gè)SCOPE 為192.168.30.0 網(wǎng)段的,它的相應(yīng)ROUTE 選項(xiàng)為192.168.30.254 。上述設(shè)置完成后,記得在兩個(gè)網(wǎng)段都要能和DHCP_SERVER 通。

責(zé)任編輯:佟健 來(lái)源: TechTarget中國(guó)
相關(guān)推薦

2013-09-09 15:55:12

SDN應(yīng)用場(chǎng)景

2015-08-03 13:36:40

Docker技術(shù)優(yōu)勢(shì)應(yīng)用場(chǎng)景

2018-05-25 13:04:21

UES應(yīng)用場(chǎng)景

2011-05-17 15:24:18

Shibboleth認(rèn)證

2015-08-04 17:45:54

Docker應(yīng)用

2010-06-30 17:02:07

靜態(tài)路由

2019-03-27 15:35:35

大數(shù)據(jù)招聘互聯(lián)網(wǎng)

2009-04-16 15:30:15

SQL Server 可用性應(yīng)用場(chǎng)景

2012-10-23 09:32:07

2011-06-28 07:45:00

開(kāi)發(fā)測(cè)試云微軟研究院云計(jì)算案例

2020-08-14 10:00:34

Node前端應(yīng)用

2009-05-18 13:07:44

類(lèi)隱藏Java關(guān)鍵字

2011-05-16 15:49:58

JAVA

2011-03-07 15:24:17

LBS

2019-10-08 10:01:22

Kafka應(yīng)用場(chǎng)景架構(gòu)

2024-03-12 10:36:06

函數(shù)指針代碼

2020-09-10 18:24:00

智能

2015-09-07 09:27:01

分析應(yīng)用場(chǎng)景

2017-09-18 17:59:23

Hadoop數(shù)據(jù)分析

2017-08-07 09:39:52

HBase大數(shù)據(jù)存儲(chǔ)
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)