In the window we can implement multiple IP addresses for one network card and load balancing and redundancy with multiple network cards on the machine. Now let's talk about how to implement in LinuxOS
First, configure multiple ip addresses for a network card. We use the NIC eth0 as an example. We can use the ifconfig command to configure the NIC alias to implement a NIC configuration. Multiple ip addresses Ifconfig eth0:0 192.168.0.1Ifconfig eth0:1 192.168 .0.2Ifconfig eth0:2 192.168.0.3Ifconfig eth0:3 The result of 192.168.0.4 is as follows but we will find that the network card alias configured in acl mode will only take effect immediately, and will be invalid when the next time the network card is restarted or the Linux system is restarted. What can we do to make the configuration permanent? We can use the modified configuration file /etc/ifconfig/network-scripts/ifcfg-etho:x to permanently take effect: 1, cd /etc/ifconfig/network-scripts Use the cd command to switch to the network-scripts directory 2, Mkdir ifcfg-eth0:0 ifcfg-eth0:1 ifcfg-eth0:2 ifcfg-eth0:33, vim ifcfg-eth0:0 Open the ifcfg-eth0:0 file with vim and write the following DEVICE=eth0:0BOOTPROTO=staticONBOOT=yesIPADDR =192.168.0.1NETMASK=255.255.255.0HWADDR=00:0c:29:18:6e:35 Save and exit Create ifcfg-eth0:1, ifcfg-eth0:2, ifcfg-eth0:3 file as above to restart the network card Ifdown eth0Ifup Eth0 two, use BOND to achieve network card load balancing and redundancy. In order to keep the network unblocked in network services, it is sometimes necessary to use multiple network cards to achieve network load balancing and redundancy. In Linux, we use the bond module to implement the network card to eth0. And eth1 as an example First we need to load the bond module Vim /etc/modprobe.conf Open /etc/modprobe.conf Enter alias bond0 bonging in the file and load the bonding module Modprobe bonding2, modify /etc/sysconfig/network-scripts/ifcfg- Eth0 ifcfg-eth1DEVICE= eth0MASTER=bond0SLAVE=yesONBOOT=yesBOOTPROTO=none3, create /etc/sysconfig/network-scripts/ifcfg-bond0Device=bond0Bootproto=noneIpaddr=Natmask=Gateway=Onboot=Bonding_opyion=“mode=1 miion=50 primary=eth0” where mode =0 indicates that the implementation of redundancy primary=eth0 indicates that the default NIC is eth0Mode=1 to implement load balancing and restart the network service ifdown bond0Ifup bond0
First, the installation of VirtualBox and expansion package installation steps is too simple, and wi
That day, my colleague showed me an operation step on my computer, using an env command, well, I adm
Engaged in two years WindowsClient development, what multi-threading, multi-process development, ha
Among the many members of the MCU family, MCS-51 series MCUs occupy industrial measurement and contr
Who is safer with Linux and Windows?
Linux Some concepts about dynamic link libraries and static link libraries
Linux mkdir function mode permission setting
Debian5 Linux system decompression .zip file
Installing ies4linux under Linux using online banking
Microsoft's release of Windows8 makes the Linux desktop operating system a step closer to us.
Centos build git repository gitosis
Linux limits the number of connections to a single IP port.
Linux remove garbled files and folders (support batch) method
What if the Win10 resolution cannot be adjusted?
64-bit win2008 IIS does not open 32-bit support causes the DLL to fail to load
How to turn off or turn on the autoplay function in win8
Easy recovery of Windows XP login interface
How to use the command to delete and create the Linux folder
Win8 resolution is too low to run application software solution
How does the win7 system completely uninstall the 2345 input method?