about modify the ip adress

发表于:2007-06-08来源:作者:点击数: 标签:
Iw ant tochangemycomputer'sipadress, usethecommand:ifconfignr010.1.0.105 butafterthecomputerreboot,theipadresslost. Iwanttheipadressdoesnotchangeforever,whatcanIdo? thanksalot! diuss 回复于:2003-06-10 14:46:14 netconfig maqizhi 回复于:20

I want to change my computer's ip adress ,
use the command:  ifconfig nr0 10.1.0.105
   but after the computer reboot , the ip adress lost.
I want the ip adress does not change forever, what can I do?
thanks a lot!

 diuss 回复于:2003-06-10 14:46:14
netconfig

 maqizhi 回复于:2003-06-10 15:37:43
下面是我执行IFCONFIG -A 的结果:
# ifconfig -a
lo0: flags=100c89<UP,LOOPBACK,NOARP,MULTICAST,SIMPLEX,NOCHECKSUM>
     inet 127.0.0.1 netmask ff000000 ipmtu 4096

nr0: flags=200c63<UP,BROADCAST,NOTRAILERS,RUNNING,MULTICAST,SIMPLEX,MULTINET>
     NetRAIN Attached Interfaces: ( tu1 tu0  Active Interface: ( tu1 inet 192.168.2.88 netmask ffffff00 broadcast 192.168.2.255 ipmtu 1500

sl0: flags=10<POINTOPOINT>

tu0: flags=c63<UP,BROADCAST,NOTRAILERS,RUNNING,MULTICAST,SIMPLEX>
     NetRAIN Virtual Interface: nr0
     NetRAIN Attached Interfaces: ( tu1 tu0  Active Interface: ( tu1 

tu1: flags=c63<UP,BROADCAST,NOTRAILERS,RUNNING,MULTICAST,SIMPLEX>
     NetRAIN Virtual Interface: nr0
     NetRAIN Attached Interfaces: ( tu1 tu0  Active Interface: ( tu1 

tun0: flags=80<NOARP>


TU0 和TU1是不是NR0的两个虚拟接口?
我一执行NETCONFIG就只看到TUO,TU1而看不到NR0,
就只好给TU0,TU1配置,可配完后执行IFCONFIG -A还是上面
的结果,没有将我配置的IP加上。

 wenti2002 回复于:2003-06-11 11:16:57
 
我的理解是你用的是netrain,所以看到nr0,tu0和tu1分别是两块网卡,共同指向一个ip,你可以看看rc3.d的启动配置中ip的配置,改netrain的ip地址我没试过,我只改过rc3.d中的配置改ip,有没有其他方法!还请大家教教我!

 我爱臭豆腐 回复于:2003-06-11 12:20:23
按照版主说的使用netconfig配置一下就可以了.不用在手工使用脚本更改了.另外也不是在rc3.d下面更改是把sysconfig还是什么来的那个配置文件更改了.里面写有ip网卡的绑定.时间长忘记了你们自己登陆上去看看就知道了.

 maqizhi 回复于:2003-06-11 13:54:14
 我想把192.168.2.88改成10.1.0.105
     我用netconfig图形工具已试过多次,每次都能成功完成,
可完成后执行ifconfig命令,显示还如前面所说没有10.1.0.105。
不知为什么。想找相应配置文件手动更改,可不知改哪个文件。
rc3.d中的好像不行。
是不是/etc/rc.config文件,

 crash 回复于:2003-06-12 15:29:43
1. if you netrain is configured in /etc/rc.config, modify the /etc/rc.config can let it work.
Example:
- # grep -i nr /etc/rc.config   %check the nr configration%
- # rcmgr set IFCONFIG_0 10.1.0.105 netmask 255.255.255.0 

2. if your netrain is configured by script, modify the script

 maqizhi 回复于:2003-06-13 11:36:52
按crash指导问题解决。多谢!

 hazbxc 回复于:2003-08-10 20:04:40
怎么你们都不用#netsetup,
它会产生什么问题吗?
请指教

 robert 回复于:2003-08-10 21:08:49
应该rc.config
以前是netconfig
现在在5.1好象是netsetup
是一样的

 hazbxc 回复于:2003-08-11 08:58:31
在5。0版本以后,不用netsetup 而是用sysman了。
在4。0中,netsetup 和netconfig都是有的。

原文转自:http://www.ltesting.net