赞
踩
输入ifconfig:
-bash:ifconfig :command not found
原因:现在安装的linux版本里没有这家伙,装一个就是了。
解决方式:yum -y install net-tools
yum -y install vim*
先查看虚拟机分配的动态ip("192.168.2.112"就是动态IP)
[root@localhost ~]# ifconfig
ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.2.112 netmask 255.255.255.0 broadcast 192.168.2.255
inet6 fe80::2ed1:83ff:5cd7:7937 prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:ba:d1:73 txqueuelen 1000 (Ethernet)
RX packets 33790 bytes 48349632 (46.1 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 15169 bytes 1356861 (1.2 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。