您的位置:首页 > 理论基础 > 计算机网络

设置windows网络连接别名和linux网络连接别名

2015-05-15 13:49 441 查看
windows网络连接别名

C:\Windows\System32\drivers\etc目录下的hosts文件中添加

127.0.0.1 localhost
192.168.1.100 proxy.zj.chinamobile.com


linux网络连接别名

/etc/hosts

# Do not remove the following line, or various programs
# that require network functionality will fail.
192.168.1.100 test1
192.168.1.101 test2


设置好以后,可以绕过域名解析,直接用域名访问相应IP的网站了。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: