- 论坛徽章:
- 0
|
我一般都用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 编辑 ] |
|