首页 > 其他 > 详细

ubunt to get a iP address by DHCP

时间:2020-04-12 00:01:16      阅读:80      评论:0      收藏:0      [点我收藏+]

After installing the Ubuntu OS ,  if you want let  it to get the ip address by DHCP ,you shoule follow this kind of  step :

1.  to find witch card is your network card  with command :“  ip linik  ”   

for example :

技术分享图片

 

in this example we can figure out the "ens33"  is the real card the  physical card.  so we need to configure it .

2. To change the fie of this card. 

the path is : /etc/network 

with ‘ls‘  we can list the  files  

the target is "interfaces" 

with command "vi intercases" we could change it . for example:

技术分享图片

 

in this example  , i changed the card name with    with my real network card,  witch means ens33.

then save it .

3. restart the sevice of your computer‘s network  , by " 技术分享图片" then  you can get the ip address by DHCP.

 

ubunt to get a iP address by DHCP

原文:https://www.cnblogs.com/wwryez/p/12683081.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!