Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to configure multiple network cards and multiple IP for CentOS in VMware

2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces "how to configure multiple network cards and multi-IP in CentOS in VMware". In daily operation, I believe many people have doubts about how to configure multiple network cards and multi-IP in VMware. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the doubts of "how to configure multiple network cards and multi-IP in VMware". Next, please follow the editor to study!

First, configure the second network card

1) configure eth1 in the virtual machine.

2) first, add the second network card device to the virtual machine of eth0:192.168.142.130. Select the virtual machine, right-click the settings, and add the network adapter.

3) configuration. Configure eth1 as a private network ip:10.107.1.130.

# vi / etc/sysconfig/network-scripts/ifcfg-eth1device=eth1 # hwaddr=00:0c:29:f5:6e:85 type=ethernet onboot=yes nm_controlled=yes # bootproto=dhcp bootproto=static ipaddr=10.107.1.130 netmask=255.255.255.0 ipv6init=no dns1=192.168.142.2

4) restart the network card.

# service network restart

5) check the configuration

# ifconfig

Second, configure multiple private network ip

1) in the same way, eth0:192.168.142.133 's virtual machine; configure the second network card eth1:10.107.1.133. Then 10.107.1.130 and 10.107.1.133 are configured as intranet ip of the same network segment.

2) at 10.107.1.133, you can ping 10.107.1.130.

At this point, the study on "how to configure multiple network cards and multiple IP in CentOS in VMware" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report