Linux设置ip地址不更改

ping通外部地址    cat  etc/resolv.conf

nameserver ip地址

别名

alias vinet = 'vi /etc/sysconfig/network-scripts/ifcfg-eno16777728'

alias

vinet

取消别名 unalias vinet

永久生效

ls -lrta

cat .cshrc

vi .cshrc 加入alias vinet = 'vi /etc/sysconfig/network-scripts/ifcfg-eno16777728'保存

source .cshrc

111

你可能感兴趣的:(linux,tcp/ip,centos)