Chinaunix

标题: p550 配置ip地址后重新启动系统后ip丢失? [打印本页]

作者: zhoug    时间: 2006-01-15 22:09
标题: p550 配置ip地址后重新启动系统后ip丢失?
是怎么回事?rc.net.out文件如下:\r\nCMD: /usr/sbin/ifconfig lo0 rfc1323 1 -tcp_mssdflt -tcp_nodelay tcp_sendspace 131072 tcp_recvspace 131072 \r\ninet0\r\nsh: /etc/methods/cfgsea:  not found.\r\n0821-003 cfgif: No interfaces were configured.\r\nhostname1\r\n\r\n\r\n是不是配置ip地址没有写入odm中。\r\n用ifconfig和smitty tcpip都不行。奇了!!!\r\n兄弟们给支个招。
作者: 宇风    时间: 2006-01-16 01:27
配置时有没有报错?ifconfig 配置是不会保存的\r\n但smit是可以的
作者: zhoug    时间: 2006-01-16 06:12
我一般都用smitty 配置ip,别的机器都正常。就这台奇了怪了。\r\n在网上查了ifconfig是不会在odm中保存。但仔细看了rc.net文件每次起机时会运行一些命令。\r\n下面这是rc.net的一部分\r\n##################################################################\r\n# Part II - Traditional Configuration.\r\n##################################################################\r\n# An alternative method for bringing up all the default interfaces \r\n# is to specify explicitly which interfaces to configure using the\r\n# ifconfig command.  Ifconfig requires the configuration information \r\n# be specified on the command line.  Ifconfig will not update the\r\n# information kept in the ODM configuration database.\r\n#\r\n# Valid network interfaces are:\r\n# lo=local loopback, en=standard ethernet, et=802.3 ethernet\r\n# sl=serial line IP, tr=802.5 token ring, xs=X.25\r\n#\r\n# e.g., en0 denotes standard ethernet network interface, unit zero.\r\n#\r\n# Below are examples of how you could bring up each interface using\r\n# ifconfig.  Since you can specify either a hostname or a dotted\r\n# decimal address to set the interface address, it is convenient to\r\n# set the hostname at this point and use it for the address of \r\n# an interface, as shown below:\r\n#\r\n#/bin/hostname robo.austin.ibm.com        >>$LOGFILE 2>&1\r\n#\r\n# (Remember that if you have more than one interface, \r\n# you\'ll want to have a different IP address for each one.\r\n# Below, xx.xx.xx.xx stands for the internet address for the \r\n# given interface).  \r\n#\r\n#/usr/sbin/ifconfig lo0 inet loopback    up >>$LOGFILE 2>&1\r\n#/usr/sbin/ifconfig en0 inet `hostname`  up >>$LOGFILE 2>&1\r\n#/usr/sbin/ifconfig et0 inet xx.xx.xx.xx  up >>$LOGFILE 2>&1\r\n#/usr/sbin/ifconfig tr0 inet xx.xx.xx.xx  up >>$LOGFILE 2>&1\r\n#/usr/sbin/ifconfig sl0 inet xx.xx.xx.xx  up >>$LOGFILE 2>&1\r\n#/usr/sbin/ifconfig xs0 inet xx.xx.xx.xx  up >>$LOGFILE 2>&1\r\n#\r\n#\r\n# Now we set any static routes.\r\n#\r\n# /usr/sbin/route add 0 gateway                 >>$LOGFILE 2>&1\r\n# /usr/sbin/route add 192.9.201.0 gateway         >>$LOGFILE 2>&1\r\n\r\n下面是正常机器的rc.net.out\r\nCMD: /usr/sbin/ifconfig en0 -rfc1323 -tcp_mssdflt -tcp_nodelay tcp_sendspace 131072 tcp_recvspace 65536 \r\nCMD: /usr/sbin/ifconfig en4 -rfc1323 -tcp_mssdflt -tcp_nodelay tcp_sendspace 131072 tcp_recvspace 65536 \r\nCMD: /usr/sbin/ifconfig en1 -rfc1323 -tcp_mssdflt -tcp_nodelay tcp_sendspace 131072 tcp_recvspace 65536 \r\nCMD: /usr/sbin/ifconfig et1 -rfc1323 -tcp_mssdflt -tcp_nodelay -tcp_sendspace -tcp_recvspace \r\nCMD: /usr/sbin/ifconfig lo0 rfc1323 1 -tcp_mssdflt -tcp_nodelay tcp_sendspace 131072 tcp_recvspace 131072 \r\ninet0\r\nsh: /etc/methods/cfgsea:  not found.\r\n0821-003 cfgif: No interfaces were configured.\r\nhostname2\r\n0821-279 writing to routing socket: Cannot reach the destination network.\r\n10.225.8.254 net 0: gateway 10.225.8.254: 0821-285 ioctl returns 70\r\nA file descriptor does not refer to an open file.\r\n0821-103 : The command /usr/sbin/route add -net -hopcount 0      0 10.225.8.254 failed.\r\n0821-279 writing to routing socket: Cannot reach the destination network.\r\n10.225.8.254 net 0: gateway 10.225.8.254: 0821-285 ioctl returns 70\r\nA file descriptor does not refer to an open file.\r\n0821-103 : The command /usr/sbin/route add -net -hopcount 0  0 10.225.8.254 failed.\r\n\r\n正常的都会CMD: /usr/sbin/ifconfig en0 -rfc1323 -tcp_mssdflt -tcp_nodelay tcp_sendspace 131072 tcp_recvspace 65536 \r\n\r\n不知道chdev这个命令怎么配ip地址。chdev也是可以写入odm中的。\r\nman chdev 只看到可以改变属性。不知能不能配ip地址。\n\n[ 本帖最后由 zhoug 于 2006-1-16 06:59 编辑 ]
作者: wolsey    时间: 2006-01-16 17:29
ifconfig en0 10.10.10.10 netmask 255.255.255.0 up这样不行吗????
作者: chinadns    时间: 2006-01-16 17:32
从维护模式到多用户模式时可能会丢失IP地址
作者: zhoug    时间: 2006-01-16 20:40
标题: 回复 5楼 wolsey 的帖子
ifconfig 是不写odm的。
作者: zhoug    时间: 2006-01-17 01:04
标题: 回复 8楼 系统工程师 的帖子
v5.3-03\r\n\r\n不知用这个命令行不行明天试试\r\nsmitty tcpip 配完ip\r\nchdev en0 -rfc1323 -tcp_mssdflt -tcp_nodelay tcp_sendspace 131072 tcp_recvspace 65536\n\n[ 本帖最后由 zhoug 于 2006-1-17 01:09 编辑 ]
作者: 系统工程师    时间: 2006-01-17 02:53
一台 M80老机器,初装5.2.0.3 也是出现你这个问题,升级为5.2.0.6,问题依旧,最后升级到5.2.0.7  问题解决!
作者: netnetdogs    时间: 2006-01-17 10:36
或者可以看一下RC.TCPIP和RC.NET这两个文件的权限,可能是权限不够无法配置网络
作者: daaxiang    时间: 2006-01-17 13:51
原帖由 zhoug 于 2006-1-15 22:09 发表\r\nsh: /etc/methods/cfgsea:  not found.\r\n0821-003 c ...
\r\n关键在这里啊,这个methods找不到,所以在cfgmgr的时候会无法配置全部的信息啊。




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2