h3c交换机,作为核心交换,开启dhcp,如何配置主dns和备用dns H3C交换机(路由器)如何配置DHCP?
\u5173\u4e8eH3C\u6838\u5fc3\u4ea4\u6362\u673a\u7684DHCP\u95ee\u9898\u7ed9\u4f60\u4e00\u4e2a\u4f8b\u5b50\u770b\u4e00\u4e0b\uff1a
dhcp enable
dhcp server ip-pool 1 \u5efa\u7acb\u5730\u5740\u6c60\uff0c\u540d\u79f0\u4e3a 1
network 172.16.41.0 mask 255.255.255.0 \u5730\u5740\u6c60\u7f51\u6bb5\u548c\u5b50\u7f51\u63a9\u7801
gateway-list 172.16.41.254 \u7f51\u5173\u5730\u5740\uff0c\u8fd9\u91cc\u8981\u5bf9\u5e94vlan\u7684\u5730\u5740
dns-list 222.172.200.68 61.166.150.123 dns
H3C>system-view
\u8fdb\u5165\u7cfb\u7edf\u89c6\u56fe
[H3C]dhcp server ip-pool h3c
\u521b\u5efaDHCP \u5730\u5740\u6c60
[H3C-dhcp-pool-h3c]network 192.168.1.0 mask 255.255.255.0
\u6307\u5b9a\u53ef\u4ee5\u5206\u914d\u7684\u5730\u5740\u6bb5
[H3C-dhcp-pool-h3c]gateway-list 192.168.1.1
\u6307\u5b9a\u7f51\u5173,\u4e0elan\u53e3\u7684\u5730\u5740\u4e00\u81f4
[H3C-dhcp-pool-h3c]dns-list 202.202.202.202
\u6307\u5b9aDNS server\u5730\u5740
[H3C-dhcp-pool-h3c]expired day 0 hour 1 minute 10
DHCP\u79df\u671f\u65f6\u95f4\u8bbe\u7f6e
[H3C-dhcp-pool-h3c]domain-name huawei-3com.com
\u6307\u5b9a\u57df\u540d
[H3C-dhcp-pool-h3c]quit
[H3C]interface Ethernet1/0
\u8fdb\u5165\u5230lan\u53e3
[H3C-Ethernet1/0]ip address 192.168.1.1 255.255.255.0
\u914d\u7f6elan\u53e3\u5730\u5740
[H3C-Ethernet1/0]quit
[H3C]dhcp server forbidden-ip 192.168.1.1
\u4fdd\u7559\u7f51\u5173\u7684\u5730\u5740
[H3C]quit
save
\u4fdd\u5b58\u914d\u7f6e
dns-list 172.18.12.1 114.114.114.114
绛旓細鍝ヤ滑 浣犲湪dns-list 鍚庨潰鍐欎竴涓偗瀹氬氨鍙湁涓涓紝浣犲姞绌烘牸鍐嶅啓涓涓紝灏辫兘鑾峰彇涓や釜銆俤ns-list 172.18.12.1 114.114.114.114
绛旓細1銆鏍稿績浜ゆ崲鏈鏂板缓鐢ㄦ埛admin瀵嗙爜admin@h3c锛骞跺叧鑱旇繙绋嬬櫥褰曟湇鍔★紝濡倀elnet web缃戦〉鐧诲綍銆乻sh杩滅▼鐧诲綍銆傚苟寮鍚痶elnet銆亀eb鐧诲綍鏈嶅姟銆乫tp鏈嶅姟 local-user admin password cipher admin@h3c authorization-attribute level 3 service-type telnet service-type ftp service-type web telnet server enable ip http ...
绛旓細鏍稿績鐨勫厜鐢垫ā鍧楄繛鎺3100鎺ュ叆鐨勫厜鐢垫ā鍧楋紝瀵瑰簲鐨勬帴鍙i厤缃垚trunk灏卞彲浠ヤ簡銆傚綋鐒剁敤鐢靛彛锛岀綉绾夸篃鍙互銆傛牳蹇冧竴涓互澶彛鍜3100浠ュお鍙h繛鎺ワ紝鐒跺悗trunk锛岀敤鏈澶у甫瀹界殑閭d釜鍙e仛浜掕仈鐢紝鍗冨厗锛屼竾鍏嗐
绛旓細濡傛灉鎺ュ叆浜ゆ崲鏈鐢ㄧ櫨鍏嗙殑璇漇2126T鎴栬匰3100-26TP灏卞彲浠ヤ簡锛屽崈鍏嗙殑璇漇5120绯诲垪鐨勫氨鍙互銆傦紝瀹炵幇鏂规硶鏈夊绉嶃備綘鍙互鍋歁AC缁戝畾銆傛垨鑰呭仛绔彛璁よ瘉
绛旓細浣犲ソ.H3C S3100鎺ュ叆灞浜ゆ崲鏈灏嗙浉搴旂殑绔彛鍒掑叆鐩稿簲鐨刅LAN褰撲腑銆傚亣璁綡3C S5500鍜孒3C 3100 閮芥槸浣跨敤Et0/0/2鐩歌繛,閭d箞绔彛閮借繖鏍烽厤缃:system-viewinterface Ethernet0/0/2port link-type trunkport trunk allow-pass all
绛旓細3100锛歷lan鏄100锛涘懡浠わ細vlan 100 interface gi 0/0/1 //鍒3600鐨勭鍙 port link-type trunk port trunk allow-pass vlan 100 3600锛歷lan batch 100 200 //200鏄埌8灞傜殑vlan interface gi 0/0/1 //鍒7灞傜殑绔彛 port link-type trunk port trunk allow-pass vlan 100 ...
绛旓細鍗庝笁鍋涓烘牳蹇冧氦鎹㈡満鐨,鑷冲皯鍦⊿5500浠ヤ笂,涓夊眰鍔熻兘鍏ㄩ儴鍏峰銆 鎺ㄨ崘涓涓: H3C S5500-EI绯诲垪浠ュお缃戜氦鎹㈡満鐩墠鍖呭惈濡備笅鍨嬪彿: • S5500-28C-EI:24 涓10/100/1000Base-T浠ュお缃戠鍙,4 涓鐢ㄧ殑SFP 鍗冨厗绔彛(Combo),涓や釜鎵╁睍妲戒綅; • S5500-52C-EI:48 涓10/100/1000Base-T浠ュお缃戠鍙,4 涓鐢ㄧ殑SFP 鍗冨厗绔彛...
绛旓細1.楂樻ц兘锛氬崕涓H3C浜ゆ崲鏈閲囩敤浜嗛珮绔姱鐗囧拰纭欢鏋舵瀯锛岃兘澶熸彁渚涙洿鍔犻珮鏁堝拰绋冲畾鐨勭綉缁滄湇鍔°2.涓板瘜鐨勫姛鑳斤細鍗庝负H3C浜ゆ崲鏈烘敮鎸佸绉嶅崗璁拰鍔熻兘锛屽VLAN銆丵oS銆丼TP绛夛紝鑳藉婊¤冻涓嶅悓浼佷笟鐨勯渶姹傘3.鏄撲簬绠$悊锛氬崕涓篐3C浜ゆ崲鏈洪噰鐢ㄤ簡鍙嬪ソ鐨刉eb鐣岄潰鍜屽懡浠よ鐣岄潰锛岀鐞嗗憳鍙互杞绘澗鍦拌繘琛岀綉缁滅殑閰嶇疆鍜岀鐞嗐備簩銆佸崕涓篐3C...
绛旓細鐪嬩綘瑕佹庝箞鍒哣LAN鍜 鐩存帴鎺ユ槸鍙互鍟 濡傛灉瑕佹妸鍏朵粬浜ゆ崲鏈鍒扸LAN涔熷彲浠ュ晩 閭d綘涓讳氦鎹㈡満閲岄潰涔熷垝鍒 鐢╒TP
绛旓細1銆佹墦寮HCL杞欢锛屾嫋涓涓浜ゆ崲鏈猴紝涓涓矾鐢卞櫒锛屼袱涓狿C鏈哄埌宸ヤ綔鍖恒2銆佹帴鍙g鐞嗙偣銆愬惎鍔ㄣ戯紝IPV4閰嶇疆閫夈愰潤鎬併戯紝IP鍦板潃璁剧疆锛192.168.10.1 鎺╃爜鍦板潃璁剧疆锛255.255.255.0 鐐广愬惎鐢ㄣ戙3銆佸啀娆¢紶鏍囧彸閿偣PC1鍥炬爣锛屽乏閿夈愬惎鍔ㄥ懡浠よ缁堢銆戙4銆佹妸杩欎袱鍙扮殑鍔犲埌涓や釜涓嶅悓鐨刅LAN锛屽彸閿偣浜ゆ崲鏈哄浘鏍...