折腾了好久,试了各种方法,才发现直接修改配置文件不行,而且新建con的方法也试了
后来发现需要新建一个连接文件修改,原来的那个文件不要动
┌──[[email protected]]-[~]
└─$cp /etc/sysconfig/network-scripts/ifcfg-lo{,:0}
┌──[[email protected]]-[~]
└─$cd /etc/sysconfig/network-scripts/
┌──[[email protected]]-[/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
┌──[[email protected]]-[/etc/sysconfig/network-scripts]
└─$
标签:sysconfig,network,Linux,liruilongs,ifdown,网卡,ifup,io,回环
From: https://www.cnblogs.com/liruilong/p/16735203.html