[itcast@localhost Desktop]$ ifconfig
eth4 Link encap:Ethernet HWaddr 00:0C:29:B5:28:5F
inet addr:192.168.25.129 Bcast:192.168.25.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:feb5:285f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:22 errors:0 dropped:0 overruns:0 frame:0
TX packets:49 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3556 (3.4 KiB) TX bytes:10929 (10.6 KiB)
Interrupt:19 Base address:0x2024
在做品优购的时候,隔天再去做 启动虚拟机。发现ifconfig不出现ip地址
在网上找了一些博客,但是后来一想是不是关闭了什么VMware的软件
启动虚拟机之前是未启动的,启动虚拟机后 就可以了
[itcast@localhost Desktop]$ ifconfig
eth4 Link encap:Ethernet HWaddr 00:0C:29:B5:28:5F
inet addr:192.168.25.129 Bcast:192.168.25.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:feb5:285f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:22 errors:0 dropped:0 overruns:0 frame:0
TX packets:49 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3556 (3.4 KiB) TX bytes:10929 (10.6 KiB)
Interrupt:19 Base address:0x2024
希望对你有所帮助