Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Build big data environment-it-virtual machine Nic configuration

Shulou Source: shulou.com Published: 2022-06-03 06:31:57 11月23日 Update

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

Tags: Configuration network card gateway network service wrong content again mode hardware red part problem static test data environment Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple Shulou Tech Info MySQL Redmi Linux