vmware+centos set static ip address

usually using DHCP,but every time you start up your centos os,dhcp may distribute a different ip for your CENTOS!

 

First step:

vmware disable DHCP but allow NAT pattern

please be care for IP(G) as follow,

it will be used in configure script.

Second step:reboot your centos OS and modify some scripts to configure

 

cd /etc/sysconfig/network-scipts

modify : vi ifcfg-ens33

Third step:restart your network service

service network restart

 Fourth step ,check ip:

ip addr

you'll find the static ip setted during Second step appeared!!

so try to reboot your CENTOS to find whether the ip would be changed!

Fifth step:test cmd ping

ping baidu:

on your windows OS ping  this  static ip.

completely oj8k!

some concepts:

gate mask:网关路由器的ip

dns:address of dns server,dns server can translate your domain name into ip address

权威定义:1,是一个由分层的DNS服务器实现的分布式数据库

                2,一个使得主机能够通查询分布式数据库的应用层协议

net mask:to help judge whether ip1 and ip2 are in the same network

 

ip address:every computer(device)  has an unique id(like id-card number) during the same network 

 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值