solaris10 改了IP怎么就不行了?
各位前辈我把机器改了IP地址,没改机器名,结果重新启动发现能看到网卡,但是IP地址加载不上了,成了0.0.0.0,手工用ifconfig配置IP地址还是能用,说明硬件无恙,重启不能加载。
ifconfig
bge0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 0.0.0.0 netmask ff000000 broadcast 0.255.255.255
ether 0:3:ba:4:ff:9d
启动过程报错:
Hardware watchdog enabled
Failed to configure IPv4 interface(s): bge0
Jun 5 13:20:24 svc.startd[7]: svc:/network/physical:default: Method "/lib/svc/m
ethod/net-physical" failed with exit status 96.
[ network/physical:default misconfigured (see 'svcs -x' for details) ]
看log文件:
-bash-3.00# more /etc/svc/volatile/network-physical:default.log
[ start + 1.41s Enabled. ]
[ start + 4.17s Executing start method ("/lib/svc/method/net-physical") ]
[ start + 4.20s Timeout override by svc.startd. Using infinite timeout ]
configuring IPv4 interfaces:ifconfig: srv1: bad address
bge0.
add net default: gateway 192.168.17.1: Network is unreachable
其中我修改了:/etc/hostname.bge0, /etc/netmasks,/etc/hosts,/etc/defaultrouter,/etc/inet/ipnodes
谢谢