请教一个关于redhat 7的奇怪的问题

sh/bash/dash/ksh/zsh等Shell脚本
回复
leavingDream
帖子: 39
注册时间: 2012-03-03 22:36

请教一个关于redhat 7的奇怪的问题

#1

帖子 leavingDream » 2015-05-01 20:59

我在虚拟机上安装的redhat7今天突然连接不上完网络,然后我用pifconfig(貌似没有ifconfig命令了),发现这样的结果,我十分不解,
明明有两个设备,一个是本机循环地址lo,还有一个eno167777(没有ip地址,之前是有ip地址的,是在我的电脑睡眠唤醒之后就这样了),
我接着使用 pifconfig eno167777 就提示 no such device
附件
看着个截图
看着个截图
redhat7网络pifconfig.PNG (10.07 KiB) 查看 5041 次
头像
langyxxl
帖子: 443
注册时间: 2012-01-17 22:17

Re: 请教一个关于redhat 7的奇怪的问题

#2

帖子 langyxxl » 2015-05-02 10:06

这儿是ubuntu的shell脚本专区,乱发帖子。。就算会也不教你 :em04
leavingDream
帖子: 39
注册时间: 2012-03-03 22:36

Re: 请教一个关于redhat 7的奇怪的问题

#3

帖子 leavingDream » 2015-05-07 0:24

langyxxl 写了:这儿是ubuntu的shell脚本专区,乱发帖子。。就算会也不教你 :em04
果然没有人理我,劳烦大神帮忙
头像
sunfish
帖子: 989
注册时间: 2008-05-03 1:53

Re: 请教一个关于redhat 7的奇怪的问题

#4

帖子 sunfish » 2015-05-07 7:55

用root或者用绝对路径使用ifconfig
docker && kubernetes
头像
langyxxl
帖子: 443
注册时间: 2012-01-17 22:17

Re: 请教一个关于redhat 7的奇怪的问题

#5

帖子 langyxxl » 2015-05-08 18:54

redhat7应该用nmtui工具管理网络
头像
sunfish
帖子: 989
注册时间: 2008-05-03 1:53

Re: 请教一个关于redhat 7的奇怪的问题

#6

帖子 sunfish » 2015-05-09 8:35

使用nmcli也可以
docker && kubernetes
onlylove
论坛版主
帖子: 5230
注册时间: 2007-01-14 16:23

Re: 请教一个关于redhat 7的奇怪的问题

#7

帖子 onlylove » 2015-05-09 12:16

redhat的话,setup命令应该能用吧?我记得可以用那个的
#include <stdio.h>
void main()
{
double world;
unsigned letter;
short stay;
long memories;
printf("I miss you.\n");
}
sometimeubuntu
帖子: 2
注册时间: 2011-09-19 9:20

Re: 请教一个关于redhat 7的奇怪的问题

#8

帖子 sometimeubuntu » 2015-07-16 13:57

RHEL7 默认没有ifconfig,可以自己安装nettool,也可以ip命令
回复