linux 的netconfig命令

来源:百度知道 编辑:UC知道 时间:2024/05/28 10:07:55
输入netconfig命令提示:-bash:netconfig:command not found
然后装包提示错误:error:File not found by glob:、netconfig*
/media/Server:not an rpm pacage (or package manifest):Is a directory

请高手详解迷津,谢谢!

我很久没用fedora了。
netconfig很可能不在普通用户的PATH里面。
你先切到root用户,再试试:

$ su
<root密码>
# netconfig

===========================================
如果只是想配置网络,可以在GNOME菜单里面找,现在的GUI界面比netconfig好用。或者用标准的ifconfig命令。netconfig是redhat专有的一个ifconfig的wrapper而已。

使用 netconfig命令
netconfig命令可以设置网络设备的ip地址,netconfig命令可以永久保存设置。
使用方法是:“netconfig ethX”。使用命令“netconfig eth0”后会在命令行下弹出一个对话框进行确认,选择“是”
然后类似图形界面设置完网络各项参数,

设定结束后用“tab”键选择“OK”即可保存设置并且退出。然后使用命令激活即可生效:

#service network restart
或者使用等价命令组(先禁用后启用):
#ifdown eht0
#ifup eth0

ifconfig

重装系统