Linux回环地址网卡配置修改
折腾了好久,试了各种方法,才发现直接修改配置文件不行,而且新建con的方法也试了
后来发现需要新建一个连接文件修改,原来的那个文件不要动
┌──[root@vms152.liruilongs.github.io]-[~]
└─$cp /etc/sysconfig/network-scripts/ifcfg-lo{,:0}
┌──[root@vms152.liruilongs.github.io]-[~]
└─$cd /etc/sysconfig/network-scripts/
┌──[root@vms152.liruilongs.github.io]-[/etc/sysconfig/network-scripts]
└─$ls
ifcfg-ens32 ifdown-bnep ifdown-isdn ifdown-sit ifup ifup-ippp ifup-plusb ifup-sit ifup-wireless
ifcfg-lo ifdown-eth ifdown-post ifdown-Team ifup-aliases ifup-ipv6 ifup-post ifup-Team init.ipv6-global
ifcfg-lo:0 ifdown-ippp ifdown-ppp ifdown-TeamPort ifup-bnep ifup-isdn ifup-ppp ifup-TeamPort network-functions
ifdown ifdown-ipv6 ifdown-routes ifdown-tunnel ifup-eth ifup-plip ifup-routes ifup-tunnel network-functions-ipv6
┌──[root@vms152.liruilongs.github.io]-[/etc/sysconfig/network-scripts]
└─$
加油,愿被这世界温柔以待 ^_^