we so Home /chool 文内D工①出项卡 11 a●+。·5·A·曹::0白·②, 2网络配m d up first in the datab Centos网络配置 :需 passwd files sss shado es sss netgroups: files sss hosts db files nisplus nis dns hosts hostname Example what nisplus tells us. eservices: NOTFOUNDEreturn snetwork NOT FOUNDEretur protocols: NOTFOUNDareturt srpc NOT FOUNDaretur fethers: (NOTFOUNDeretur netmask: NOT FOUNDaretur 热 bootparams: isplus [NOTFOUNDereturn] files ether netmasks les rot ervices files sss netgroup: nisplus sss publickey: nisplus automount: files nisplus sss aliases: file [rootacentos7teach -J cat /etc/hosts 圆定到 可南中医药大学/阮晓龙/出
12 2网络配置 21 entos网络配置 Centos上还可通过命令行的方式进行网络配置,需注意的是这里的配置是暂时的,重启 系统后配置失效。 修改P地址使用tcon命令,其命令如下所示 ifconfig ens 160 10.10.. 174 netmask 255.255.255.0 修改网关使用 route命令,其命令如下所示 s route add default gw 10. 10. 3. 1 dev ens 160 修改主机名,使用 hostname命令,其命令如下所示。 # hostname主机名 可南中医药大学/阮晓龙/13938213680/ht/ linuxxg nactcmeaucn/htp/w5 xuewen cn
13 Centos网络配置 使用 config临时配置网络 使用v修改网络配置文件 ■通过GU工具配置网络
14 2网络配置 22 Ubuntu Server网络配置 Ubuntu Server服务器的主要的网络配置文件 表33 Ubuntu Server主要网络配置文件 查置文件名称 etc/network/interfaces P地址配置、子网攏码等配置文件 etcmhosts 设置主机和P绑定信息 /etc/resolv con DNs配置文件 /etc/hostname 全局主机名配置文件 可南中医药大学/阮晓龙/13938213680/ht/ linuxxg nactcmeaucn/htp/w5 xuewen cn
d2116833214-0bwmmu serve17, 101. thell 5 Free for Home/don 文编们查看工具①西卡世口W 15 2·,····A·曹日:0白·籍·②.日 21 2网络配 002-2017 Netsarang Computer, Inc. All rights reserved u Serverl网络配置 Type help' to learn how to use shell prompt. local shell, press ctrlAlt.". welcome to ubuntu 17. 10(GNU/Linux 4.13.0-21-gemeric x86.64) petre and ubuntu: what packages can be upd updates are security updates k interface er1710- cat /etc/netplan/0l-netctg 15.10:13221 ntu server 17 10.1 态申地址配置方式的变化 tresses admistratoraubuntusen 南中医药大学/际晓龙/|= 色1 厂轴重超32@(和