Linux-20180914-vmware virtual machine debond

Keywords: network ssh

Problem

bond binding was done before to restore the entire virtual machine environment to its original state.

Solution

  • First, execute the command line in the virtual machine and turn off the network card (using console, once the remote ssh network card is turned off, the network is also broken)
# Check which network cards are available
[root@worker ~]# ip a
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: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:0c:29:14:1c:ab brd ff:ff:ff:ff:ff:ff
    inet 172.16.232.152/24 brd 172.16.232.255 scope global dynamic ens33
       valid_lft 1190sec preferred_lft 1190sec
    inet6 fe80::7cc3:a574:1f46:5d6b/64 scope link
       valid_lft forever preferred_lft forever
# Turn off ens33
[root@worker ~]# ifdown ens33
  • Delete the corresponding bond configuration file and other network card configuration information bound to it
# View network card profile
[root@worker ~]# cd /etc/sysconfig/network-scripts/
[root@worker network-scripts]# ls
ifcfg-lo         ifdown-ib    ifdown-routes  ifup-aliases  ifup-isdn    ifup-sit
ifcfg-ens33      ifdown       ifdown-ippp    ifdown-sit    ifup-bnep    ifup-plip    ifup-tunnel
ifdown-Team      ifdown-ipv6  ifdown-tunnel  ifup-eth      ifup-plusb   ifup-wireless
ifdown-TeamPort  ifdown-isdn  ifup           ifup-ib       ifup-post    init.ipv6-global
ifdown-bnep      ifdown-post  ifup-Team      ifup-ippp     ifup-ppp     network-functions
ifdown-eth       ifdown-ppp   ifup-TeamPort  ifup-ipv6     ifup-routes  network-functions-ipv6
[root@worker network-scripts]# rm -rf ifcfg-ens33
# service network restart 
[root@worker network-scripts]# service network restart
  • Because it is a virtual machine environment, when necessary, you may also need to delete redundant network cards (too many main network cards do experiments and look at the confusion). You need to shut down the virtual machine first, and then delete it on the settings panel.

References

Binding (binding and deletion)

Posted by bluetonic on Sun, 05 Jan 2020 08:42:06 -0800