- 论坛徽章:
- 0
|
我一般都用smitty 配置ip,别的机器都正常。就这台奇了怪了。
在网上查了ifconfig是不会在odm中保存。但仔细看了rc.net文件每次起机时会运行一些命令。
下面这是rc.net的一部分
##################################################################
# Part II - Traditional Configuration.
##################################################################
# An alternative method for bringing up all the default interfaces
# is to specify explicitly which interfaces to configure using the
# ifconfig command. Ifconfig requires the configuration information
# be specified on the command line. Ifconfig will not update the
# information kept in the ODM configuration database.
#
# Valid network interfaces are:
# lo=local loopback, en=standard ethernet, et=802.3 ethernet
# sl=serial line IP, tr=802.5 token ring, xs=X.25
#
# e.g., en0 denotes standard ethernet network interface, unit zero.
#
# Below are examples of how you could bring up each interface using
# ifconfig. Since you can specify either a hostname or a dotted
# decimal address to set the interface address, it is convenient to
# set the hostname at this point and use it for the address of
# an interface, as shown below:
#
#/bin/hostname robo.austin.ibm.com >>$LOGFILE 2>&1
#
# (Remember that if you have more than one interface,
# you'll want to have a different IP address for each one.
# Below, xx.xx.xx.xx stands for the internet address for the
# given interface).
#
#/usr/sbin/ifconfig lo0 inet loopback up >>$LOGFILE 2>&1
#/usr/sbin/ifconfig en0 inet `hostname` up >>$LOGFILE 2>&1
#/usr/sbin/ifconfig et0 inet xx.xx.xx.xx up >>$LOGFILE 2>&1
#/usr/sbin/ifconfig tr0 inet xx.xx.xx.xx up >>$LOGFILE 2>&1
#/usr/sbin/ifconfig sl0 inet xx.xx.xx.xx up >>$LOGFILE 2>&1
#/usr/sbin/ifconfig xs0 inet xx.xx.xx.xx up >>$LOGFILE 2>&1
#
#
# Now we set any static routes.
#
# /usr/sbin/route add 0 gateway >>$LOGFILE 2>&1
# /usr/sbin/route add 192.9.201.0 gateway >>$LOGFILE 2>&1
下面是正常机器的rc.net.out
CMD: /usr/sbin/ifconfig en0 -rfc1323 -tcp_mssdflt -tcp_nodelay tcp_sendspace 131072 tcp_recvspace 65536
CMD: /usr/sbin/ifconfig en4 -rfc1323 -tcp_mssdflt -tcp_nodelay tcp_sendspace 131072 tcp_recvspace 65536
CMD: /usr/sbin/ifconfig en1 -rfc1323 -tcp_mssdflt -tcp_nodelay tcp_sendspace 131072 tcp_recvspace 65536
CMD: /usr/sbin/ifconfig et1 -rfc1323 -tcp_mssdflt -tcp_nodelay -tcp_sendspace -tcp_recvspace
CMD: /usr/sbin/ifconfig lo0 rfc1323 1 -tcp_mssdflt -tcp_nodelay tcp_sendspace 131072 tcp_recvspace 131072
inet0
sh: /etc/methods/cfgsea: not found.
0821-003 cfgif: No interfaces were configured.
hostname2
0821-279 writing to routing socket: Cannot reach the destination network.
10.225.8.254 net 0: gateway 10.225.8.254: 0821-285 ioctl returns 70
A file descriptor does not refer to an open file.
0821-103 : The command /usr/sbin/route add -net -hopcount 0 0 10.225.8.254 failed.
0821-279 writing to routing socket: Cannot reach the destination network.
10.225.8.254 net 0: gateway 10.225.8.254: 0821-285 ioctl returns 70
A file descriptor does not refer to an open file.
0821-103 : The command /usr/sbin/route add -net -hopcount 0 0 10.225.8.254 failed.
正常的都会CMD: /usr/sbin/ifconfig en0 -rfc1323 -tcp_mssdflt -tcp_nodelay tcp_sendspace 131072 tcp_recvspace 65536
不知道chdev这个命令怎么配ip地址。chdev也是可以写入odm中的。
man chdev 只看到可以改变属性。不知能不能配ip地址。
[ 本帖最后由 zhoug 于 2006-1-16 06:59 编辑 ] |
|