时间:2021-05-25
说明:之前在CentOS7下配置过bridge,现在讲bridge模式改为普通模式后,查看网卡的时候还是可以看到很多垃圾信息,想彻底删除自己不想要的网卡配置信息,操作如下:
[root@linux-node1 ~]# ip add list1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 00:0c:29:9b:7d:d6 brd ff:ff:ff:ff:ff:ff inet 10.10.10.11/24 brd 10.10.10.255 scope global eth0 valid_lft forever preferred_lft forever inet6 fe80::20c:29ff:fe9b:7dd6/64 scope link valid_lft forever preferred_lft forever4: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN qlen 1000 link/ether 52:54:00:f4:24:05 brd ff:ff:ff:ff:ff:ff inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0 valid_lft forever preferred_lft forever5: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast master virbr0 state DOWN qlen 1000 link/ether 52:54:00:f4:24:05 brd ff:ff:ff:ff:ff:ff查看网络列表:
[root@linux-node1 ~]# virsh net-list Name State Autostart Persistent---------------------------------------------------------- default active yes yes使用“virsh net-destroy default”删除
[root@linux-node1 ~]# virsh net-destroy defaultNetwork default destroyed从配置文件中剔除
[root@linux-node1 ~]# virsh net-undefine defaultNetwork default has been undefined重启libvirtd服务
[root@linux-node1 ~]# systemctl restart libvirtd.service[root@linux-node1 ~]# virsh net-list Name State Autostart Persistent----------------------------------------------------------[root@linux-node1 ~]# ip add list1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 00:0c:29:9b:7d:d6 brd ff:ff:ff:ff:ff:ff inet 10.10.10.11/24 brd 10.10.10.255 scope global eth0 valid_lft forever preferred_lft forever inet6 fe80::20c:29ff:fe9b:7dd6/64 scope link valid_lft forever preferred_lft forever再次查看,发现不必要的信息已经清除,清爽多了
声明:本页内容来源网络,仅供用户参考;我单位不保证亦不表示资料全面及准确无误,也不保证亦不表示这些资料为最新信息,如因任何原因,本网内容或者用户因倚赖本网内容造成任何损失或损害,我单位将不会负任何法律责任。如涉及版权问题,请提交至online#300.cn邮箱联系删除。
在使用双机软件过程中,如果系统是centos5.x默认系统安装完成后为xen内核,那么xen内核引导启动后就会有虚拟网卡(vethx、vif0.x、virbr0
本文介绍了Centos7更改网卡名称Eth0的方法,分享给大家,希望对大家有所帮助安装完Centos7系统,网卡命名跟之前发生了变化,例如!就是看着不爽也不会影
Centos7网路配置详细介绍1、查看当前网卡信息[root@localhost~]#nmcliconnectionshowNAMEUUIDTYPEDEVICE
1.简要双网卡绑定技术在centos7中使用了teaming技术,而在rhel6/centos7中使用的是bonding技术,在centos7中双网卡绑定既能使
由于Centos7的网络配置与之前版本有较大差距,所以单独讨论。Centos7对网卡设备具有自动探测功能:(1)网卡命名机制systemd对网络设备的命名方式: