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

Configure IP and network troubleshootin

2025-04-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

The difference between 1:nat mode and bridging mode

Bridging: virtual machine and host a network segment, benefits: easy to set up, can access other computers in the local area network and the external network.

Disadvantages: occupy a public network ip address

Nat: use vmnet8 network card, can communicate with the host outside the network, can not communicate with other hosts in the local area network.

2: network card configuration file directory

Vi / etc/sysconfig/network-scripts/ifcfg-eth0 path

Dhclient automatically gets the command of ip

Areas that need to be modified:

Whether BOOTPPROTO=static automatically acquires IP (none static (manual) dhcp)

IPV6INIT=no

Whether ONBOOT=yes takes effect when the network service starts eth0

Add condition

IPADDR=

PREFIX=

GATEWAY=

DNS1=

Systemctl restart network.service restarts the network card

After configuring OK, test whether you can ping the public network host and the virtual host can be interconnected.

3: network troubleshooting

Login servers are all through the third-party ssh software, specific analysis of specific problems

1. Is the ping gateway, public network and so on normal?

2. Whether to set any strategies, such as protective wall, iptabels, etc.

Check one by one without a single link.

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

Servers

Wechat

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

12
Report