如何删除虚拟机的虚拟网卡

virbr0 Link encap:Ethernet HWaddr 52:54:00:A7:EA:71
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

虚拟网卡会导致rac的安装前检查不通过

– 检查状态

[root@racdb01 ~]# virsh net-list
Name                 State      Autostart     Persistent
--------------------------------------------------
default              active     yes           yes

– destroy

[root@racdb01 ~]# virsh net-destroy default
Network default destroyed

– undefine

[root@racdb01 ~]# virsh net-undefine default
Network default has been undefined

– reboot

[root@racdb01 ~]# service libvirtd restart 
Stopping libvirtd daemon:                                  [  OK  ]
Starting libvirtd daemon:                                  [  OK  ]

再次确认

[root@racdb01 ~]# ifconfig
eth3      Link encap:Ethernet  HWaddr 00:50:56:A3:06:AC  
          inet addr:10.100.21.200  Bcast:10.100.21.255  Mask:255.255.254.0
          inet6 addr: fe80::250:56ff:fea3:6ac/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:49839 errors:0 dropped:30 overruns:0 frame:0
          TX packets:839 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:5603360 (5.3 MiB)  TX bytes:81156 (79.2 KiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:1314 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1314 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:102393 (99.9 KiB)  TX bytes:102393 (99.9 KiB)

[root@racdb01 ~]# 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值