1. 无法获取到ip原因:网络未开启
首先开启网络:
service network start 或 service network restart
Ifconfig -a 只显示了本地的ip127.0.0.1,
如果ifconfig 不可用 可以用 ip add
获取不到ip则申请ip
dhclient eth1
eth1 为网卡名称
如果提示已经启动 则释放ip
dhclient eth1 -r
1. 无法获取到ip原因:网络未开启
首先开启网络:
service network start 或 service network restart
Ifconfig -a 只显示了本地的ip127.0.0.1,
如果ifconfig 不可用 可以用 ip add
获取不到ip则申请ip
dhclient eth1
eth1 为网卡名称
如果提示已经启动 则释放ip
dhclient eth1 -r