If you set the broadband connection in
/etc/network/interfaces code>, sometimes you need to disconnect the network for some work operations. At this time, you will find that when you want to reconnect the network, you can't connect successfully as we wish, you can only manually restart the network service or restart the computer
Command to restart the network service manually:
sudo service network-manager restart
perhaps
sudo systemctl restart NetworkManager.service
For the convenience of future operation, you can create a reconnect in the home directory_ network.sh The contents are as follows
#!/bin/bash
sudo service network-manager restart
Then run the command sudo Chmod + X connect_ network.sh code> grant executable permission
after the network is disconnected, you only need to run ./reconnect on the terminal_ network.sh code>, you can connect to the network again
Read More:
- Debian using networking to restart the network can not start the solution of network card
- Iphone network data is shared to ubuntu14.04 through ubs, which is a desktop computer and cannot be passed through hotspot
- RemoteApp disconnected, because of a protocol error, this session will be disconnected
- Ubuntu18 “Activation of network connection failed” cannot access the Internet 【Solution】
- Ubuntu network configuration+Fixing “Failed to bring up eth0” in Ubuntu
- Wireless network solution of deepin Linux network card driver (manual) installation
- Solution summary of VMware network card without IP and failure to start network card (continuous update)
- Linux virtual machine network “job for” network.service failed because the control process exited with error code”
- Windows_ Win7 broadband connection prompt remote access connection manager error
- Kali Linux network manager needs to be running
- Solutions to network connection problems in Ubuntu 16.04.3
- The most complete solution for service network restart failure under CENTOS 7
- CentOS 8.1 solution to error in executing #systemctl restart network.service
- Mobaxterm connects to Ubuntu server through SSH network error: software caused connection abort
- Centos7 network is unreachable
- Ubuntu “a user name is not in the sudoer folder. It will be reported. ” Solutions for
- Solution to Apple Wireless Mouse, keyboard or touchpad can not be recognized by MAC
- SQL server remote computer refused network connection, error: 1225, specific solution steps.
- Chrome Broswer V98 Can not manually add cookies locally, refresh cannot be retained, and the cookie item is red
- There is no windows solution in dual system Ubuntu grub startup