linux查看,修改ip,gateway,dns,hostname
1.ip:
/sbin/ifconfig ifconfig eth0 192.168.1.100 # vim /etc/sysconfig/network-scripts/ifcfg-eth0 # ON_BOOT = TRUE # IPADDR
2.gateway
netstat -rn vim /etc/sysconfig/network-scripts/ifcfg-eth0 # ON_BOOT = TRUE # GATEWAY
3.dns
cat /etc/resolv.conf vim /etc/resolv.conf
4.hostname
uname -n # HOSTNAME vi /etc/sysconfig/network vi /etc/hosts
相关推荐
Guanjs0 2020-11-13
80143853 2020-08-17
tinydu 2020-08-09
zmysna 2020-08-03
bapinggaitianli 2020-08-02
JudeJoo 2020-07-14
hyxinyu 2020-06-10
katanaFlower 2020-06-02
zllbirdonland 2020-05-12
凯哥Java 2020-03-26
fendou00sd 2019-12-29
bapinggaitianli 2020-01-01
yanqianglifei 2019-12-30
oLeiShen 2019-12-22
guozewei0 2019-12-02
kjh00abc 2019-11-26
PpikachuP 2019-11-19
csdnyasin 2019-11-10