Contos6 change the name of the card
View: ifconifg card name or ip addr show or nmcli conn show
Turning it into more than eno1 card eth0
The first step, configure NetworkManager, the reason is because some network management interface in order to change the name first, and sometimes there will be conflict
Instruction: nmtui to call setup or network management interface
After the above it can be seen directly in NetworkManager first card first changed the name, the following changes in the configuration file into the card:
Command: cd / etc / sysconfig / network-scripts / with: ls See
Enter: change the file name inside
Command: vim ifcfg-eno1
Note: UUID and MAC address do not change, a change of name in the file
Command: mv ifcfg-eno1 ifcfg-eth0
So renaming it successfully, the final step is the most important step contos6 has had a change to go into the built-in configuration, as follows:
Instruction: cd /etc/udev/rules.d/ viewing: ls
Some contos told me this is not the same configuration file can take a look advanced, as follows:
Command: vim 90-eno-fix.rules
Before we find the configuration file to change the name of the mac, in NAME = "XXX", into eth0, save the file, reboot reboot, you can!
Such contos6 version you can change the card friends ~
Contos7 change the name of the card
Then change the name of the NIC contos7. Almost the same, there are several different I would say pay attention to the following:
View: ifconifg card name or ip addr show or nmcli conn show
Turning it into more than eno1 card eth0
The first step, configure NetworkManager, the reason is because some network management interface in order to change the name first, and sometimes there will be conflict
Instruction: nmtui to call setup or network management interface
After the above it can be seen directly in NetworkManager first card first changed the name, the following changes in the configuration file into the card:
Command: cd / etc / sysconfig / network-scripts / with: ls See
Enter: change the file name inside
Command: vim ifcfg-eno1
Note: UUID and MAC address do not change, a change of name in the file
Command: mv ifcfg-eno1 ifcfg-eth0
Then pay attention because contos7 without this 90-eno-fix.rules file, so it take built-in file / etc / default / grub
指令:vim /etc/default/grub
As can be seen above, was added in GRUB_CMDLINE_LINUX: net.ifnames = 0 biosdevname = 0 two profiles. In the Save!
After running the command in a terminal: grub2-mkconfig -o /boot/grub2/grub.cfg
To regenerate the GRUB configuration and update the kernel parameters, reboot and then restart the machine, the card will become eth0
This is after entering the NetworkManager interface, how I would like to change how change without restarting the machine, as follows:
Ifcfg-eno1 entering the NAME and the name of the replacement DEVICE click on OK, and also the name of the network configuration files have changed oh
More than these modify the network card name.
Next card double bind:
Linux dual NIC bonding is achieved using two network cards become a virtual card, the device appears to be polymerized up a separate Ethernet interface device, popular speak is the two network cards have the same IP address into a parallel link aggregation logical link work
First, look at the card there are a few:
Instruction: nmcli conn show
As can be seen there are two network cards, then put two cards is directly tied to a
Create a team type of card, as a cluster
指令:nmcli con add type team con-name t1 ifname t1 config '{"runner":{"name":"activebackup"}}'
After you have created, enter the network-scipts view, will be more of a ifcfg-t1 configuration file, this file is the team type of network card
In modifying the configuration file into this
After setting, network configuration changes eno1 and eno2
Lee tied to t1 plus file
TEAM_MASTER=t1
DEVICETYPE=TeamPort
Reboot reboot, to complete the network adapter binding!
Configure heartbeat IP address
View card configuration. A good network card configuration
Because some network cards are recognized when the down state
We can start with the command: ifconfig up XXX or nmcli conn up XXX
When turned on, in the open interface to NetworkManager
Instruction: service NetworkManager start
Then enter the management interface command: setup or nmtui
After entering eth1 create, configure the heartbeat IP, as follows
After configuration is complete, restart the network services service network restart, you can
It automatically generates ifcfg-eth1 file