Sunday, March 13, 2011

To set up DHCP automatically assigns IP pontoon bridge to VlAN



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 />