Multiple IP addresses are bound to a single Nic of windows, Ubuntu, red hat, and Solaris.

Source: Internet
Author: User

 Bind multiple IP addresses to a single Nic in Windows

1. Network neighbors-local connection-right-click (attribute)

2. TCP/IPv4 -- properties -- Advanced -- ipsettings

3. Add the -- configuration as follows:

 

4. test whether the configuration is successful.

 

5. Windows single Nic is bound to multiple IP addresses (different network segments!

 

 

========================================================== ======================

Bind multiple IP addresses to a single Nic In ubuntu

On Linux, sometimes we need to be the same as on Windows.

You need to bind multiple IP addresses to a single NIC (which can be different network segments)

1. Log On with the root permission, or switch the sudo root permission to the root permission.

2. Open the network configuration file VI/etc/Network/interfaces.

3. Add configuration parameters:

 

4. Save and exit and restart the NIC, for example:

 

 

 

 

 

5. Verify the configuration as follows (method 1 ):

 

The newly added bound Nic already displays: eth0: 0

 

6. Verify the configuration as follows (method 2 ):

 

7. As shown in, congratulations! The configuration is successful!

========================================================== ======================

 

Red Hat binds multiple IP addresses to a single Nic

 

Method 1: directly configure through the graphical interface: System -- Management -- Network -- add (follow the prompts to complete)

 

Method 2: similar to Ubuntu, but the path is a little different. The Red Hat Network path is:CD/etc/sysconfig/networking/profiles/Default

Enter the directory:

Copy ifcfg-eth0 for ifcfg-eth0: 1 command is:CP ifcfg-eth0 ifcfg-eth0: 1

Make the following changes:

Verify that the configuration is successful:

Display, can access the Internet (Baidu homepage), can also access the host (192. 168. *. * network segment), can also access (. 5. *. * network segment)

A single Nic is bound to multiple IP addresses (both CIDR blocks and CIDR blocks). The configuration is verified successfully!

 

========================================================== ======================

A single Solaris Nic is bound to multiple IP addresses.

 

Because textures are troublesome, please refer to my blog in Baidu Hi space.

Configure multiple IP addresses for a single Nic in Solaris 10 (x86) (implemented by vmwarevm)

========================================================== ======================

 

  Bind one IP address to multiple NICs
You can use multiple NICs to create a network card with the same IP address.
This technology already exists in Sun and Cisco, respectively known as trunking and etherchannel technologies,
In Linux, this technology is called bonding.
Because bonding already contains the kernel 2.4.x,
You only need to select the bonding driver support option in the network device option during compilation.
Then, recompile the core, restart the computer, and execute the following command:
Ismod Bonding
Ifconfig eth0 down
Ifconfig eth1 down
Ifconfig bond0 IPaddress
Ifenslave bond0 eth0
Ifenslave bond0 eth1
Now the two NICs work like one, which can improve data transmission between cluster nodes.
You 'd better write these statements as a script, which is then called by/etc/rc. d/rc. Local to take effect on the server.
Bonding is a good choice for Servers. When there is no Gigabit Nic,
Using two or three 100 Mbit/s NICs as bonding can greatly increase the bandwidth between the server and the switch.
However, you need to set the two ports mapped to the same Virtual Interface on the vswitch to connect to the bonding Nic.

 

 

 

 

 

 

 

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.