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

Build big data environment-it-virtual machine Nic configuration

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

1. Check ip hostname-I

2. Conduct network test ping gateway, public network, local ip

You can ping the local ip to show that the hardware is fine.

The gateway ping cannot be connected because the network card is configured or the ip is incorrect.

3. Modify the network card configuration vi / etc/sysconfig/network-scripts/ifcfg-eth0

Change to onboot=yes

4. Restart the service service network restart

5. Ping for network speed measurement again.

If you configure static IP

1 、 vi / etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0

HWADDR=00:0C:29:4A:6A:E9

TYPE=Ethernet

UUID=c7fd9c2a-4aa8-43b7-89fb-6ad5f0043f40

ONBOOT=yes

NM_CONTROLLED=yes

BOOTPROTO=static

IPADDR=192.168.1.115

NETMASK=255.255.255.0

GATEWAY=192.168.1.1

DNS1=8.8.8.8

# the red part is the modified content

Press esc to exit edit mode

: X save exit

4. Restart the service service network restart

5. Re-ping the public network ok

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

Internet Technology

Wechat

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

12
Report