VM搭建Hadoop环境静态IP未起作用

1、环境工具

VMware_workstation_full_12.5.2 CentOS-7-x86_64-Minimal-1511.iso

SecureCRTPortable

2、出现问题

(1)启动虚拟机后,使用SecureCRT 连接,出现问题

Key exchange failed.

No compatible hostkey. The server supports these methods: ecdsa-sha2-nistp256,ssh-ed25519

(2)排查过程中出现的问题

使用IfConfig命令查询发现,静态IP地址未起作用。

IfConfig和Ifcfg-eno16777736中IP地址不一样。

IfConfig查询IP

查询静态IP

Windows 7中两个地址都可以Ping通

  1. 解决办法

  1. 更改VM网络编辑器中DHCP设置

(1)打开虚拟网络编辑器

(2)进入DHCP设置

(3)原DHCP设置更改范围

  1. 更改Ifcfg-eno16777736中BOOTPROTO参数

BOOTPROTO=static 静态IP
BOOTPROTO=dhcp 动态IP
BOOTPROTO=none 无(不指定)

 

原文地址:https://www.cnblogs.com/bqwzy/p/7954798.html