首页 > TAG信息列表 > PEERROUTES

Linux VM,修改为固定IP

参考:linux中设置固定ip(亲测有效)_王林冲的博客-CSDN博客_linux 固定ip 原有的:     [root@localhost packages]# cat /etc/sysconfig/network-scripts/ifcfg-ens33 TYPE=Ethernet BOOTPROTO=static DEFROUTE=yes PEERDNS=yes PEERROUTES=yes IPV4_FAILURE_FATAL=no IPV6INIT

centos配置固定ip

1,修改 cd /etc/sysconfig/network-scripts下面的配置,我的是ifcgf-ens33 TYPE="Ethernet"#BOOTPROTO="dhcp"DEFROUTE="yes"PEERDNS="yes"PEERROUTES="yes"IPV4_FAILURE_FATAL="no"IPV6INIT="yes"IPV6_AUTOCONF

桥接

# Generated by dracut initrd NAME="eth0" DEVICE="eth0" ONBOOT="yes" NETBOOT="yes" BOOTPROTO="static" TYPE="Ethernet" DEFROUTE="yes" PEERDNS="yes" PEERROUTES="yes" BR