11.27 linux

1. Create a network session instance

View network information and network status

nmcli connection show

Using con-name parameter specifies the name of the company's network

nmcli connection add con-name company ifname ens33 autoconnect no type 192.168.10.1/24 gw4 192.168.10.1

Using con-name parameter specifies the name of the network session for home use home there is no need to manually specify

nmcli connection add con-name home type ethernet ifname ens33

After successfully creating a network session "can be used to create nmcli command to view all network sessions

nmcli connection show

Use nmcli command-configured network session is permanent, so when we get home from work smoothly start the home network session, the card will be able to obtain the IP address through DHCP

nmcli connection up home

If a virtual machine is requested to switch the system into a virtual network card bridged mode

Session Initiation company to stop home session

nmcli connection down home

nmcli connection up company

ifconfig

If you want to delete the session, execute nmcli command execution E map ah connection command, and then you want to delete the session can be stand-alone Deler

2. Bind two network cards

LAN equipment in the same mode, you can bind the network card, otherwise the two network cards can not Hu Chuan data

Use a text editor vim configuration of LAN equipment specified parameters

vim /etc/sysconfig/network-scripts/ifcfg-eds33

vim /etc/sysconfig/network-scripts/ifcfg-eds38

The equipment also need to be named after binding bond0 and write into IP addresses

vim /etc/sysconfig/network-scripts/ifcfg-bond0

Let Linux kernel support NIC teaming drivers. Common NIC teaming drivers are 3 modes --mode0, mode1, mode6

mode6: usually two network cards are working, and automatic backup, no need to switch to provide ancillary support equipment

Create a file for the NIC driver binding using a text editor vim

vim /etc/modprobe.d/bond.conf

3. Configure sshd service

sshd is capable of providing remote access protocol in a secure way, it is now the preferred way to remotely manage Linux systems

Guess you like

Origin www.cnblogs.com/zengtianyu123/p/11945716.html