---
title: "windows 设置主机名和对应ip"
author: "rucbing"
date: "2010-01-25T11:39:34Z"
tags: []
categories: ["操作系统"]
slug: "windows-ip"
draft: false
lastmod: "2010-01-25T11:39:34Z"
id: 579068
url: "https://rucbing.iteye.com/blog/579068"
---

C:\WINDOWS\system32\drivers\etc\hosts
127.0.0.1       localhost 
192.168.1.100 domainname

 
cmd
ping domainname
192.168.1.100