How to solve this problem? A VLAN configured for each DHCP server, one is the easiest way, but you do so, the efficiency will be relatively low, so we do not adopt this approach. In fact, we can use the three switches relay agent function to implement the method, as is usually divided into three VLAN on the switch to operate, while the general three switches have DHCP relay agent function, so that the switch can be Each VLAN interfaces on the DHCP relay function is enabled, so that when the client VLAN issued in connection with the DHCP server's request, in the current VLAN can not be found, they will submit this information to the interface, and then by the Interface sub-issue DHCP server. By using this method, you can let the client and the DHCP server communicate with each other, as in between the client and DHCP server, set up a pontoon bridge, to send information between the two return to normal. Please join the following essays are a look at how to achieve the operation.
First, configure the switch
To achieve the above methods, you need to first configure the switch in three DHCP relay service. Since all brands are basically the same configuration of the switch, but the command format will be different, so the following operation may have access to your switch, but the other switch configurations. Here the author to PassPort8600 switch, for example, to tell you how to configure DHCP relay service layer switches.
銆??棣栧厛閫氳繃涓夊眰浜ゆ崲鏈哄垝鍒嗗ソVLAN锛屾帴涓嬫潵杈撳叆鍛戒护鈥渃onf VLAN 1 ip dhcp-relay enable鈥濓紝鏉ュ惎鍔╒LAN鐨凞HCP涓户鍔熻兘锛屽鏋滀綘鏈夊涓猇LAN鐨勮瘽锛岃繕闇?鍒嗗埆涓哄叾鍚敤銆傜劧鍚庡氨鏄惎鍔ㄧ鍙g殑DHCP涓户鍔熻兘锛屽彧闇?杈撳叆鍛戒护鈥渃onf Ethernet 1/1 ip dhcp-relay enable鈥濆嵆鍙紝褰撶劧浜嗭紝鎴戜滑鏈夊涓猇LAN绔搧锛岄渶瑕佸垎鍒緭鍏ョ浉搴旂殑鍛戒护鏉ュ惎鍔ㄥ叾瀹塚LAN绔彛鐨勪腑缁у姛鑳姐?
銆??鏈?悗鏄厤缃帴鍙e湴鍧??DHCP鍦板潃鍜屽厑璁哥殑妯″紡銆傚懡浠や负鈥渃onf ip dhcp-relay create-fwd-path agent 192.168.1.101 server 192.168.1.1 mode bootp_dhcp state enable鈥濓紝鍏朵腑192.168.1.101鏄綋鍓峍LAN鎺ュ彛鐨処P鍦板潃锛?92.168.1.1鏄綉鍏崇殑IP鍦板潃锛宐ootp_dhcp琛ㄧず鍏佽bootp鍜孌HCP涓ょ妯″紡銆傚悓鏍锋渶鍚庡皢鎺ュ彛鍦板潃鎹㈡垚鍏跺畠VLAN鐨勭户缁繘琛岄厤缃?
銆??浜屻?閰嶇疆DHCP鏈嶅姟鍣?br />
銆??鐜板湪鎴戜滑鍙渶瑕佸湪缃戠粶涓婃壘涓?彴璁$畻鏈猴紝瀹夎Windows 2000/2003 Server绯荤粺鏉ュ厖褰揇HCP鏈嶅姟鍣ㄣ?鍋氬ソ鍑嗗宸ヤ綔涔嬪悗锛屽氨鍙互鏉ラ厤缃瓺HCP鏈嶅姟鍣ㄤ簡銆?br />
銆??浠庢帶鍒堕潰鏉跨殑绠$悊宸ュ叿涓墦寮?HCP椤癸紝鍦ㄦ墦寮?殑绐楀彛涓崟鍑烩?鎿嶄綔鈥濊彍鍗曚笅鐨勨?鏂板缓浣滅敤鍩熲?鍛戒护锛屽湪鎵撳紑鐨勬搷浣滃悜瀵肩獥鍙d腑杈撳叆浣滅敤鍩熺殑鍚嶇О锛屽崟鍑烩?涓嬩竴姝モ?濉啓IP鍦板潃鑼冨洿锛屽垎鍒缃捣濮婭P鍦板潃銆佺粓姝P鍦板潃銆佸瓙缃戞帺鐮佺瓑淇℃伅锛岀户缁崟鍑烩?涓嬩竴姝モ?娣诲姞鎺掗櫎鐨処P鍦板潃鑼冨洿锛屽湪杩欓噷娣诲姞鐨処P瀹㈡埛绔皢鏃犳硶鑾峰彇锛屼富瑕佺敤浜庢湇鍔″櫒銆佽矾鐢卞櫒銆侀槻鐏绛変娇鐢紝闅忓悗浼氭彁绀洪厤缃绾︽湡闄愶紝榛樿鍊间负8澶╋紝濡傛灉鍙備笌鍒嗛厤鐨処P鍦板潃姣旇緝灏戯紝閭d箞璇ュ?鍙互璁剧殑灏忎竴浜涳紝鍗宠IP鍦板潃浜ゆ崲鐨勯鐜囬珮涓?簺锛岄伩鍏岻P琚暱鏃堕棿鍗犵敤;褰撶劧鐜板湪鍐呯綉IP鍦板潃涓?埇閮芥瘮杈冧赴瀵岋紝閭d箞鏃堕棿璁剧疆鐨勯暱涓?簺涔熸病鏈夊叧绯汇?
銆??鎺ヤ笅鏉ヨ繘鍏HCP閫夐」閰嶇疆绐楀彛锛屽嵆鏄惁璁剧疆瀹㈡埛绔殑缃戝叧鍜孌NS淇℃伅锛岄?涓?鏄紝鎴戠幇鍦ㄦ兂閰嶇疆杩欎簺閫夐」鈥濓紝鐒跺悗鍗曞嚮鈥滀笅涓?鈥濇寜閽繘鍏モ?璺敱鍣?榛樿缃戝叧)鈥濈獥鍙o紝鍦ㄢ?IP鍦板潃鈥濇爮涓緭鍏ョ綉鍏崇殑鍦板潃锛屽崟鍑烩?娣诲姞鈥濇寜閽姞鍏ワ紝鍐嶅崟鍑烩?涓嬩竴姝モ?璁剧疆DNS鍚嶇О锛屽悓鏍峰湪鈥淚P鍦板潃鈥濆濉叆DNS鏈嶅姟鍣ㄧ殑IP鍦板潃骞跺崟鍑烩?娣诲姞鈥濇寜閽嵆鍙紝涓嬮潰杩樹細璇㈤棶閰嶇疆WINS鏈嶅姟鍣紝涓?埇涓嶉渶瑕佹敼鍔紝鐩存帴鍗曞嚮鈥滀笅涓?鈥濇縺娲绘柊寤虹殑浣滅敤鍩熷嵆鍙?
銆??閲嶅涓婇潰鐨勬搷浣滄楠わ紝灏卞彲浠ヤ负鍏跺畠鐨刅LAN鍦―HCP涓垱寤哄嚭瀵瑰簲鐨勪綔鐢ㄥ煙锛岃繖鏍峰氨鍙互鍏ㄩ儴閰嶇疆瀹屾垚锛屼互鍚庡氨鍙互璁〥HCP涓嶸LAN鍜岃皭鐩稿锛岃兘澶熷疄鐜板湪澶歏LAN涓疄鐜癉HCP鏈嶅姟锛屼粠姝よ缃戠粶鑳藉鏇村揩閫熴?鏇撮珮鏁堣繍琛屼簡銆?br />