192.168.1.99/24,閘道 192.168.1.1192.168.1.251/24# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
IPADDR=192.168.1.251
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
DNS1=8.8.8.8
ONBOOT=yes
service network restart
# 宿主機 CMD
ping 192.168.1.251 -t
# 宿主機 PuTTY
Host: 192.168.1.251, Port: 22, Connection type: SSH
登入 root / 密碼 → 成功進入 Shell
service sshd status、chkconfig sshd on、/etc/ssh/sshd_config 確認 PermitRootLogin yes。VMware 設定 → Network Adapter → Advanced → 手動指定 MAC,避免重啟後 MAC 變更導致靜態綁定失效。