IT之道-艾锑知道

您当前位置: 主页 > 资讯动态 > 艾锑分享 >

服务器维护CentOS 7下删除virbr0网卡信息


2020-06-25 11:19 作者:admin

服务器维护CentOS 7下删除virbr0网卡信息

服务器维护小知识说明:之前在CentOS7下配置过bridge,现在讲bridge模式改为普通模式后,查看网卡的时候还是可以看到很多垃圾信息,想彻底删除自己不想要的网卡配置信息,操作如下:
服务器维护小知识 [root@linux-node1 ~]# ip add list
1: 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 forever
2: 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
4: 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 forever
5: 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 default
Network default destroyed
服务器维护小知识从配置文件中剔除
[root@linux-node1 ~]# virsh net-undefine default
Network 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 list
服务器维护小知识1: 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 forever
服务器维护小知识2: 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
再次查看,发现不必要的信息已经清除,清爽多了
IT运维  我们选择北京艾锑无限
以上文章由北京艾锑无限科技发展有限公司整理
 

相关文章

IT外包服务
二维码 关闭