免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3251 | 回复: 7
打印 上一主题 下一主题

如何改HP机的IP(使用命令行)? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-04-11 17:20 |只看该作者 |倒序浏览
我用SAM改了IP(只改了IP),重起机器的时候就出错,name server 的一个错,然后SAM也起不来了,求救?

论坛徽章:
8
白羊座
日期:2015-01-21 18:35:03巳蛇
日期:2015-02-03 17:30:37处女座
日期:2015-02-03 17:31:02羊年新春福章
日期:2015-02-03 17:31:21巨蟹座
日期:2015-02-05 16:01:06申猴
日期:2015-02-05 16:01:31摩羯座
日期:2015-02-05 16:01:41酉鸡
日期:2015-02-05 16:02:37
2 [报告]
发表于 2003-04-11 17:28 |只看该作者

如何改HP机的IP(使用命令行)?

为什么不用 set_parms 改呢!

论坛徽章:
0
3 [报告]
发表于 2003-04-11 17:38 |只看该作者

如何改HP机的IP(使用命令行)?

要永久改还是暂时的那种?暂时的是set_parms ip_address
永久的是在/etc/rc.config.d下面vi netconf
我没有碰到过类似问题。

论坛徽章:
0
4 [报告]
发表于 2003-04-11 17:40 |只看该作者

如何改HP机的IP(使用命令行)?

有命令行实现永久改吗?

论坛徽章:
0
5 [报告]
发表于 2003-04-11 17:41 |只看该作者

如何改HP机的IP(使用命令行)?

set_parms可以改,改完重起就没了。

论坛徽章:
0
6 [报告]
发表于 2003-04-11 20:12 |只看该作者

如何改HP机的IP(使用命令行)?

永久修改:
#set_parms或直接编辑/etc/rc.config.d/netconf
临时改:
#ifconfig lan?  . . . .

论坛徽章:
0
7 [报告]
发表于 2003-04-11 22:15 |只看该作者

如何改HP机的IP(使用命令行)?

[quote]原帖由 \"菜鸟A\"]set_parms可以改,改完重起就没了。[/quote 发表:


怎么会没有呢,用set_parms可是永久改的呀。

论坛徽章:
0
8 [报告]
发表于 2003-04-12 07:46 |只看该作者

如何改HP机的IP(使用命令行)?

Hi,

To permanently change your system IP:

1. vi /etc/rc.config.d/netconf
   change the IP
   If you have changed the gateway, netmask, etc. Also change those entries.

2. vi /etc/hosts
   To change the IP in this file.

3. If you are allowed to reboot the system, do a \"shutdown -r 0\" now, since this will make sure your new settings are correct and will NOT give you or someone else any surprises in the future reboots. I highly recommend you to do this, if possible.

or

4. If you are not allowed to reboot and you are sure that your changes are correct (no syntax errors), then you can use ifconfig/route commands to change the IP (e.g. for lan3)
# ifconfig lan3 unplumb
# ifconfig lan3 <new-IP>; netmask <new-netmask>;
# route add default <new-gateway-IP>; 1     <- if lan3 is your primary lan
# route add net <new-IP>; <new-gateway-IP>; 1  <- if lan3 is not your primary lan

You are done!

Hope this helps.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP