<!DOCTYPE html>
	<html lang="vi" xmlns="http://www.w3.org/1999/xhtml" prefix="og: http://ogp.me/ns#">
	<head>
<title>Đặt ip từ dòng lệnh và file .bat</title>
<meta name="description" content="Đặt ip từ dòng lệnh và file .bat - Savefile - Tin Tức - https&#x3A;&#x002F;&#x002F;phanmemthienha.com&#x002F;news&#x002F;savefile&#x002F;huong-dan-phan-mem&#x002F;dat-ip-tu-dong-lenh-va-file-bat-62.html">
<meta name="author" content="PHAN MEM THIEN HA">
<meta name="copyright" content="PHAN MEM THIEN HA [phamhuy842005@gmail.com]">
<meta name="robots" content="index, archive, follow, noodp">
<meta name="googlebot" content="index,archive,follow,noodp">
<meta name="msnbot" content="all,index,follow">
<meta name="generator" content="NukeViet v4.0">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta property="og:title" content="Đặt ip từ dòng lệnh và file .bat">
<meta property="og:type" content="website">
<meta property="og:description" content="Savefile - Tin Tức - https&#x3A;&#x002F;&#x002F;phanmemthienha.com&#x002F;news&#x002F;savefile&#x002F;huong-dan-phan-mem&#x002F;dat-ip-tu-dong-lenh-va-file-bat-62.html">
<meta property="og:site_name" content="PHAN MEM THIEN HA">
<meta property="og:url" content="https://phanmemthienha.com/news/huong-dan-phan-mem/dat-ip-tu-dong-lenh-va-file-bat-62.html">
<link rel="shortcut icon" href="https://phanmemthienha.com/uploads/logo-shop-thien-ha-5.png">
<link rel="canonical" href="https://phanmemthienha.com/news/huong-dan-phan-mem/dat-ip-tu-dong-lenh-va-file-bat-62.html">
<link rel="alternate" href="https://phanmemthienha.com/news/rss/" title="Tin Tức" type="application/rss+xml">
<link rel="alternate" href="https://phanmemthienha.com/news/rss/huong-dan-phan-mem/" title="Tin Tức - Hướng dẫn phần mềm" type="application/rss+xml">
<link rel="alternate" href="https://phanmemthienha.com/news/rss/huong-dan-noi-bo/" title="Tin Tức - Hướng dẫn nội bộ" type="application/rss+xml">
<link rel="alternate" href="https://phanmemthienha.com/news/rss/Doi-tac/" title="Tin Tức - Đối tác" type="application/rss+xml">
<link rel="alternate" href="https://phanmemthienha.com/news/rss/Tuyen-dung/" title="Tin Tức - Tuyển dụng" type="application/rss+xml">
<link rel="preload" as="script" href="https://phanmemthienha.com/assets/js/jquery/jquery.min.js">
<link rel="preload" as="script" href="https://phanmemthienha.com/assets/js/language/vi.js">
<link rel="preload" as="script" href="https://phanmemthienha.com/assets/js/global.js">
<link rel="preload" as="script" href="https://phanmemthienha.com/themes/default/js/news.js">
<link rel="preload" as="script" href="https://phanmemthienha.com/themes/popovleather/js/main.js">
<link rel="preload" as="script" href="https://phanmemthienha.com/themes/popovleather/js/bootstrap.min.js">
<link rel="StyleSheet" href="https://phanmemthienha.com/assets/css/font-awesome.min.css">
<link rel="StyleSheet" href="https://phanmemthienha.com/themes/popovleather/css/bootstrap.min.css">
<link rel="StyleSheet" href="https://phanmemthienha.com/themes/popovleather/css/style.css">
<link rel="StyleSheet" href="https://phanmemthienha.com/themes/popovleather/css/style.responsive.css">
<link rel="StyleSheet" href="https://phanmemthienha.com/themes/default/css/news.css">
<link rel="StyleSheet" href="https://phanmemthienha.com/assets/css/popovleather.vi.0.css?t=87">
<style>
	body{background: #fff;}
</style>
	</head>
	<body>
<div id="print">
	<div id="hd_print">
		<h2 class="pull-left">PHAN MEM THIEN HA</h2>
		<p class="pull-right"><a title="PHAN MEM THIEN HA" href="https://phanmemthienha.com/">https://phanmemthienha.com</a></p>
	</div>
	<div class="clear"></div>
	<hr />
	<div id="content">
		<h1>Đặt ip từ dòng lệnh và file .bat</h1>
		<ul class="list-inline">
			<li>Thứ tư - 11/07/2018 23:39</li>
			<li class="hidden-print txtrequired"><em class="fa fa-print">&nbsp;</em><a title="In ra" href="javascript:;" onclick="window.print()">In ra</a></li>
			<li class="hidden-print txtrequired"><em class="fa fa-power-off">&nbsp;</em><a title="Đóng cửa sổ này" href="javascript:;" onclick="window.close()">Đóng cửa sổ này</a></li>
		</ul>
		<div class="clear"></div>
		<div id="hometext">
			-1 Thay đổi ip và dns trên pc window bằng dòng lệnh cmd-2 Tạo file .bat để sử dụng nhiều lần không cần gõ lệnh ,chỉ cần chạy file thôi
		</div>
		<div id="bodytext" class="clearfix">
			<div style="background-color: white; color: rgb(102, 102, 102); font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 1em; margin-top: 1em; padding: 0px;"><span style="margin: 0px; padding: 0px; text-decoration: underline;"><strong style="margin: 0px; padding: 0px;">1&nbsp;Thay đổi ip và dns trên pc window bằng dòng lệnh cmd</strong></span></div><div style="background-color: white; color: rgb(102, 102, 102); font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 1em; margin-top: 1em; padding: 0px;"><strong style="margin: 0px; padding: 0px;">+Thay đổi ip động bằng dòng lệnh cmd</strong></div><div style="background-color: white; color: rgb(102, 102, 102); font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 1em; margin-top: 1em; padding: 0px;">Vào rund -&gt; gõ cmd</div><div style="background-color: white; color: rgb(102, 102, 102); font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 1em; margin-top: 1em; padding: 0px;">Hiện ra cửa sổ console</div><div style="background-color: white; color: rgb(102, 102, 102); font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 1em; margin-top: 1em; padding: 0px;">gõ lệnh:</div><blockquote style="background-color: rgb(248, 248, 248); border: 1px solid rgb(217, 217, 217); color: rgb(102, 102, 102); font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-style: italic; line-height: 18px; margin: 1.5em 0px; padding: 10px 20px;"><div style="margin-bottom: 1em; margin-top: 1em; padding: 0px;"><span style="color: red; margin: 0px; padding: 0px;">netsh interface ip set address name=”Wireless Network Connection 3″ source=dhcp</span></div></blockquote><div style="background-color: white; color: rgb(102, 102, 102); font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 1em; margin-top: 1em; padding: 0px;">Với cái set address là dùng set tất cả các địa chỉ của máy</div><blockquote style="background-color: rgb(248, 248, 248); border: 1px solid rgb(217, 217, 217); color: rgb(102, 102, 102); font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-style: italic; line-height: 18px; margin: 1.5em 0px; padding: 10px 20px;"><div style="margin-bottom: 1em; margin-top: 1em; padding: 0px;"><strong style="margin: 0px; padding: 0px;">Ip address</strong></div><div style="margin-bottom: 1em; margin-top: 1em; padding: 0px;"><strong style="margin: 0px; padding: 0px;">Subnetmark</strong></div><div style="margin-bottom: 1em; margin-top: 1em; padding: 0px;">&nbsp;</div><div style="margin-bottom: 1em; margin-top: 1em; padding: 0px;"><strong style="margin: 0px; padding: 0px;">Default getway</strong></div></blockquote><div style="background-color: white; color: rgb(102, 102, 102); font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 1em; margin-top: 1em; padding: 0px;">Tất cả đều ở chế độ ip động do dịch vụ dhcp cấp .nếu làm thủ công chúng ta bỏ chọn mục phía dưới</div><div style="background-color: white; color: rgb(102, 102, 102); font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 1em; margin-top: 1em; padding: 0px;">+Chuyển ip động về ip tĩnh</div><div style="background-color: white; color: rgb(102, 102, 102); font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 1em; margin-top: 1em; padding: 0px;">Gõ lênh:</div><blockquote style="background-color: rgb(248, 248, 248); border: 1px solid rgb(217, 217, 217); color: rgb(102, 102, 102); font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-style: italic; line-height: 18px; margin: 1.5em 0px; padding: 10px 20px;"><div style="margin-bottom: 1em; margin-top: 1em; padding: 0px;">netsh interface ip set address name=”Local Area Connection 2″ static 192.168.0.1 255.255.255.0 192.168.0.222</div></blockquote><div style="background-color: white; color: rgb(102, 102, 102); font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 1em; margin-top: 1em; padding: 0px;"><strong style="margin: 0px; padding: 0px;">+Để thay đổi dns tĩnh</strong></div><div style="background-color: white; color: rgb(102, 102, 102); font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 1em; margin-top: 1em; padding: 0px;"><strong style="margin: 0px; padding: 0px;">Dns</strong></div><div style="background-color: white; color: rgb(102, 102, 102); font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 1em; margin-top: 1em; padding: 0px;">chúng ta gõ lệnh : đây là địa chỉ dns của google giúp các bạn vào facebook</div><blockquote style="background-color: rgb(248, 248, 248); border: 1px solid rgb(217, 217, 217); color: rgb(102, 102, 102); font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-style: italic; line-height: 18px; margin: 1.5em 0px; padding: 10px 20px;"><div style="margin-bottom: 1em; margin-top: 1em; padding: 0px;"><span style="color: red; margin: 0px; padding: 0px;">netsh interface ip add dns name=”Wireless Network Connection 3″ 8.8.8.8 index=1</span></div><div style="margin-bottom: 1em; margin-top: 1em; padding: 0px;"><span style="color: red; margin: 0px; padding: 0px;">netsh interface ip add dns name=”Wireless Network Connection 3″ 8.8.4.4 index=2</span></div></blockquote><div style="background-color: white; color: rgb(102, 102, 102); font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 1em; margin-top: 1em; padding: 0px;"><strong style="margin: 0px; padding: 0px;">+Để thay đổi dns động</strong></div><blockquote style="background-color: rgb(248, 248, 248); border: 1px solid rgb(217, 217, 217); color: rgb(102, 102, 102); font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-style: italic; line-height: 18px; margin: 1.5em 0px; padding: 10px 20px;"><div style="margin-bottom: 1em; margin-top: 1em; padding: 0px;">netsh interface ip set dns name=”Wireless Network Connection 3″ source=dhcp</div></blockquote><h3 style="background-color: white; background-image: url(http://chiasehoctap.net/wp-content/themes/green-one/images/title.png); background-position: 0px 100%; background-repeat: no-repeat no-repeat; clear: left; color: rgb(102, 102, 102); font-family: PTSansBold, sans-serif; font-size: 1.417em; font-weight: normal; margin: 0px 0px 1.5em; padding: 20px 0px 5px 150px;"><span style="color: red; margin: 0px; padding: 0px;">Lưu ý các tên mạng đang kết nối cần thay đổi chúng ta cần set tên giống với mạng chúng ta đang kết nối</span></h3><div style="background-color: white; color: rgb(102, 102, 102); font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 1em; margin-top: 1em; padding: 0px 0px 0px 150px;">Ở ĐÂY TÊN&nbsp;<strong style="margin: 0px; padding: 0px;">MẠNG WIFI</strong>&nbsp;TÔI ĐANG KẾT NỐI LÀ &nbsp;&#91; Wireless Network Connection 3 &#93;</div><div style="background-color: white; color: rgb(102, 102, 102); font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 1em; margin-top: 1em; padding: 0px 0px 0px 150px;">Ở ĐÂY TÊN&nbsp;<strong style="margin: 0px; padding: 0px;">MẠNG CÓ DÂY</strong>&nbsp;CỦA TÔI ĐANG KẾT NỐI LÀ &nbsp;&#91; Local Network Connection 2 &#93;</div><div style="background-color: white; color: rgb(102, 102, 102); font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 1em; margin-top: 1em; padding: 0px 0px 0px 150px;">Nếu máy các bạn có tên khác thì hãy thay đổi chỗ</div><div style="background-color: white; color: rgb(102, 102, 102); font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 1em; margin-top: 1em; padding: 0px 0px 0px 150px;"><span style="color: red; margin: 0px; padding: 0px;">set dns name=</span>&nbsp;và&nbsp;<span style="color: red; margin: 0px; padding: 0px;">set address name=</span></div><div style="background-color: white; color: rgb(102, 102, 102); font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 1em; margin-top: 1em; padding: 0px;">&nbsp;</div><h2 style="background-color: white; background-image: url(http://chiasehoctap.net/wp-content/themes/green-one/images/title.png); background-position: 0px 100%; background-repeat: no-repeat no-repeat; clear: left; color: rgb(102, 102, 102); font-family: PTSansBold, sans-serif; font-size: 1.667em; font-weight: normal; margin: 0px 0px 1em; padding: 20px 0px 10px;">2 Tạo file chạy .bat</h2><div style="background-color: white; color: rgb(102, 102, 102); font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 1em; margin-top: 1em; padding: 0px;">Mở 1 file kiểu text và thay đổi đuôi thành &nbsp; &nbsp;chang_ip.bat</div><div style="background-color: white; color: rgb(102, 102, 102); font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 1em; margin-top: 1em; padding: 0px;">Edit bằng notepad và gõ vào lệnh sau</div><blockquote style="background-color: rgb(248, 248, 248); border: 1px solid rgb(217, 217, 217); color: rgb(102, 102, 102); font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-style: italic; line-height: 18px; margin: 1.5em 0px; padding: 10px 20px;"><div style="margin-bottom: 1em; margin-top: 1em; padding: 0px;"><span style="color: magenta; margin: 0px; padding: 0px;">cd c:\\Windows\system32</span></div><div style="margin-bottom: 1em; margin-top: 1em; padding: 0px;"><span style="color: magenta; margin: 0px; padding: 0px;">netsh interface ip set dns name=”Wireless Network Connection 3″ source=dhcp</span></div><div style="margin-bottom: 1em; margin-top: 1em; padding: 0px;"><span style="color: magenta; margin: 0px; padding: 0px;">pause</span></div></blockquote><div style="background-color: white; color: rgb(102, 102, 102); font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 1em; margin-top: 1em; padding: 0px;"><span style="color: lime; margin: 0px; padding: 0px;">Với lệnh vừa tạo ở trên chúng ta nhấn chạy thì sẽ thay đổi dns của card wifi đang kết nối về chế độ tự đông cấp</span></div><div style="background-color: white; color: rgb(102, 102, 102); font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 1em; margin-top: 1em; padding: 0px;">Tạo file thay đổi ip từ ip động thành ip tĩnh &nbsp; &nbsp;vd: &nbsp; &nbsp;chang_ip_to_static.bat</div><blockquote style="background-color: rgb(248, 248, 248); border: 1px solid rgb(217, 217, 217); color: rgb(102, 102, 102); font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-style: italic; line-height: 18px; margin: 1.5em 0px; padding: 10px 20px;"><div style="margin-bottom: 1em; margin-top: 1em; padding: 0px;"><span style="color: magenta; margin: 0px; padding: 0px;">cd c:\\Windows\system32</span></div><div style="margin-bottom: 1em; margin-top: 1em; padding: 0px;"><span style="color: magenta; margin: 0px; padding: 0px;">netsh interface ip set address name=”Local Area Connection 2″ static 192.168.0.1 255.255.255.0 192.168.0.254</span></div><div style="margin-bottom: 1em; margin-top: 1em; padding: 0px;"><span style="color: magenta; margin: 0px; padding: 0px;">pause</span></div></blockquote><div style="background-color: white; color: rgb(102, 102, 102); font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 1em; margin-top: 1em; padding: 0px;">Trường hợp này tôi sử dụng để đưa con trỏ lệnh về hệ thống system32 ,nếu &nbsp;file của bạn đặt ở ổ khác xin chuyển về ổ c.<br  /><br  /><br  />Tải về file đặt ip tĩnh, động siêu tốc. <a href="https://drive.google.com/file/d/1GGT9y-jXithsRmINnEwtttR-aqWg_c4g/view?usp=sharing" target="_blank">Tại đây</a><br  /><br  />&nbsp;</div>
		</div>
	</div>
	<div id="footer" class="clearfix">
		<div id="url">
			<strong>URL của bản tin này: </strong><a href="https://phanmemthienha.com/news/huong-dan-phan-mem/dat-ip-tu-dong-lenh-va-file-bat-62.html" title="Đặt ip từ dòng lệnh và file .bat">https://phanmemthienha.com/news/huong-dan-phan-mem/dat-ip-tu-dong-lenh-va-file-bat-62.html</a>

		</div>
		<div class="clear"></div>
		<div class="copyright">
			&copy; PHAN MEM THIEN HA
		</div>
		<div id="contact">
			<a href="mailto:phamhuy842005@gmail.com">phamhuy842005@gmail.com</a>
		</div>
	</div>
</div>
        <div id="timeoutsess" class="chromeframe">
            Bạn đã không sử dụng Site, <a onclick="timeoutsesscancel();" href="https://phanmemthienha.com/#">Bấm vào đây để duy trì trạng thái đăng nhập</a>. Thời gian chờ: <span id="secField"> 60 </span> giây
        </div>
        <div id="openidResult" class="nv-alert" style="display:none"></div>
        <div id="openidBt" data-result="" data-redirect=""></div>
<script src="https://phanmemthienha.com/assets/js/jquery/jquery.min.js"></script>
<script>var nv_base_siteurl="/",nv_lang_data="vi",nv_lang_interface="vi",nv_name_variable="nv",nv_fc_variable="op",nv_lang_variable="language",nv_module_name="news",nv_func_name="savefile",nv_is_user=0, nv_my_ofs=-4,nv_my_abbr="EDT",nv_cookie_prefix="nv4c_y8Y7D",nv_check_pass_mstime=1738000,nv_area_admin=0,nv_safemode=0,theme_responsive=1,nv_is_recaptcha=1,nv_recaptcha_sitekey="6LeSarIUAAAAAHRq6xkHwO6J0YYQOdMxgqKTXoL_",nv_recaptcha_type="image",nv_recaptcha_elements=[];</script>
<script src="https://phanmemthienha.com/assets/js/language/vi.js"></script>
<script src="https://phanmemthienha.com/assets/js/global.js"></script>
<script src="https://phanmemthienha.com/themes/default/js/news.js"></script>
<script src="https://phanmemthienha.com/themes/popovleather/js/main.js"></script>
<script src="https://phanmemthienha.com/themes/popovleather/js/bootstrap.min.js"></script>
</body>
</html>