Ubuntu 18.04 Server安装时设置静态IP
cn·@oflyhigh·
0.000 HBDUbuntu 18.04 Server安装时设置静态IP
之前曾在NUC7I5BNHL以及X61上安装了Ubuntu 18.04 Server,但是奇怪的是NUC7I5BNHL安装时我直接设置了静态IP,而X61不知如何没能设置上,甚至连DHCP都没设置好。 之后我通过手动修改如下文件为X61设置了静态IP,但是总是好奇我当时怎么略过设置IP这步呢? >`/etc/netplan/50-cloud-init.yaml` 实在是忍不住,于是手欠又重新跑了一遍安装程序,只为在安装时设置静态IP。之前的步骤没啥说的,直接进行到网络设置这块。  咦,这DHCP已经获得IP了,为何我之前的安装连DHCP都没设置好呢?想来想去,可能和我是半道才插上网线有关,这次我是***一开始就插上网线***了。 然后我通过***`TAB键`***将光标跳到对应网卡上,这里是***`enp0s25`***  再按回车键进入到如下菜单,分别是***`设置静态IP`***、***`使用DHCP`***以及***`不使用`***  选择***`设置静态IP`***进入到静态IP设置界面  然后按提示设置好,再通过***`TAB键&回车键`***选择***`DONE`***并返回之前的安装界面,继续安装就可以啦。 安装完成后,检查一下***`/etc/netplan/50-cloud-init.yaml`***,内容如下: > 折腾来折腾去,和我们手动编辑***`/etc/netplan/50-cloud-init.yaml`***文件其实是一样的,不过不折腾一下,我就睡不着觉啦,生命在于折腾嘛😂 X61还有WIFI,应该也可以设置WIFI连接,不过我不打算使用WIFI就不去测试啦,感兴趣的可以参考文末相关链接中的内容。 # 相关链接 * [在X61上安装Ubuntu 18.04 Server遇到的坑](https://steemit.com/cn/@oflyhigh/x61-ubuntu-18-04-server) * [Ubuntu Server 18.04 设置WIFI上网](https://steemit.com/network/@oflyhigh/ubuntu-server-18-04-wifi) * [Intel NUC7I5BNHL 组装好啦](https://steemit.com/intel/@oflyhigh/3x4w3q-intel-nuc7i5bnhl) ---- <center><strong>Vote For Me As Witness</strong> https://steemit.com/~witnesses type in **`oflyhigh`** and click ***`VOTE`*** [](https://steemit.com/~witnesses) [Vote @oflyhigh via Steemconnect](https://steemconnect.com/sign/account-witness-vote?witness=oflyhigh&approve=1) <strong>Thank you!</strong></center>
👍 liangfengyouren, hepeng.chn, bambugrove, astros, money-way, blues-wclouds, eval, ralph-rennoldson, traindriver, ivet, auntigormint, ms8988, ikonik, lemminon, aafeng, holmesian, wanwenguo, catchawhale, technologynepal, merlin7, julian2013, wylo, marlon6, avalonprosky, elizabethc7, victoriaw64u8, xybb, tiolidilil, ella5u, campmolmabe, grapininpe, kayleev, meganclk, distcountevi, prohunonir, keytacningter, nieloagranca, passion-fruit, fortune-master, steemcircle, steemchoose, exec, deanliu, chinadaily, oflyhigh, xiaohui, tony.montana, xiaokongcom, lalala, lingfei, yyyy, devilwsy, laoyao, ethansteem, blackbunny, wongshiying, yulan, jackhircus, helene, midnightoil, ygrj, somebody, janiceting, newhope, alexis555, canbethisone, thecryptodrive, maiyude, dfruit, aabb, windowglass, mrliga, cryptohustler, huatanzhang, amayahaley21, opc, imbritish, raili, sweethoney, stakuza, abetterworld, sanzo, khalilad, alijewel, silentlucidity53, freedom-fighter, cryptoknight27, raku, chenlocus, heyeshuang, fastiduos, winniex, weavingwords, chann, ethanlee, bearpaw, khayziljoy, speeding, rebecca80, kingofdew, razor80, chaerin, coindzs, lkvictor2005, blockchainbilly, jkkim, hongman96, haiyangdeperci, ewq, dgorbunov, jianghao, teachblogger, bobdos, fredo77200, lydiachan, austinsandersco, resteeming, that1consultant, davaowhenyo, allenshayzar, historylover, ravenousappetite, nitro.live, fanso, ebejammin, jiangchen, vfxness, btccurrency1, walkinharmony, frankintaiwan, lancy, partiko, jesse5th, cryptorunway, steemitbuzz, alvin0617, asterix87, further34, also.einstein, xiaoshancun, ace108, angelina6688, daeshawn, bxt, wglenz, cnbuddy, blockgatorsarmy, victory622, jincheng, adm, w88, idx, abit,