免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4541 | 回复: 8
打印 上一主题 下一主题

重启之后为什么网卡unplumb了,不明白 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-05-08 10:31 |只看该作者 |倒序浏览
b150 console login: root\r\nPassword: \r\nMay  8 10:21:16 b150 login: ROOT LOGIN /dev/console\r\nLast login: Tue May  8 10:16:19 on console\r\nSun Microsystems Inc.   SunOS 5.10      Generic January 2005\r\nSourcing //.profile-EIS.....\r\n\r\nTERM=vt100\r\n\r\nroot@b150 # ifconfig -a\r\nlo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1\r\n        inet 127.0.0.1 netmask ff000000 \r\nroot@b150 # grep network May  8 10:21:25 b150 vxspec: NOTICE: VxVM vxspec _fini: ret 10 \r\n/etc/path_to_inst\r\n\"/pci@1f,0/network@c,1\" 0 \"eri\"\r\nroot@b150 # ifconfig eri0 plumb\r\nroot@b150 # ifconfig -aMay  8 10:21:41 b150 eri: SUNW,eri0 : 100 Mbps half duplex link up\r\n\r\nlo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1\r\n        inet 127.0.0.1 netmask ff000000 \r\neri0: flags=1000842<BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2\r\n        inet 0.0.0.0 netmask 0 \r\n        ether 0:3:ba:2c:8:24 \r\nroot@b150 # ifconfig eri0 192.168.1.100 up\r\nroot@b150 # ifconfig -a\r\nlo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1\r\n        inet 127.0.0.1 netmask ff000000 \r\neri0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2\r\n        inet 192.168.1.100 netmask ffffff00 broadcast 192.168.1.255\r\n        ether 0:3:ba:2c:8:24 \r\nroot@b150 # \r\nroot@b150 # reboot \r\nMay  8 10:22:57 b150 reboot: rebooted by root\r\nMay  8 10:22:58 b150 syslogd: going down on signal 15\r\nsyncing file systems... done\r\nrebooting...\r\nResetting ... \r\n\r\nChassisSerialNumber FT31220393 \r\nChassisSerialNumber FT31220393 \r\n\r\n\r\nSun Blade 150 (UltraSPARC-IIe 650MHz), No Keyboard\r\nCopyright 2005 Sun Microsystems, Inc.  All rights reserved.\r\nOpenBoot 4.17.1, 1024 MB memory installed, Serial #53217316.\r\nEthernet address 0:3:ba:2c:8:24, Host ID: 832c0824.\r\n\r\n\r\n\r\nRebooting with command: boot                                          \r\nBoot device: sds-root  File and args: \r\nSunOS Release 5.10 Version Generic_118822-25 64-bit\r\nCopyright 1983-2005 Sun Microsystems, Inc.  All rights reserved.\r\nUse is subject to license terms.\r\nHostname: b150\r\nLoading smf(5) service descriptions: 1/5\r\nWARNING: svccfg import /var/svc/manifest/system/vxvm/vxvm-reconfig.xml failed\r\n2/5\r\nWARNING: svccfg import /var/svc/manifest/system/vxvm/vxvm-recover.xml failed\r\n3/5\r\nWARNING: svccfg import /var/svc/manifest/system/vxvm/vxvm-startup1.xml failed\r\n4/5\r\nWARNING: svccfg import /var/svc/manifest/system/vxvm/vxvm-startup2.xml failed\r\n5/5\r\nWARNING: svccfg import /var/svc/manifest/system/vxvm/vxvm-sysboot.xml failed\r\n\r\nsvccfg import warnings. See /var/svc/log/system-manifest-import:default.log .\r\n\r\nb150 console login: root\r\nPassword: \r\nMay  8 10:24:19 b150 login: ROOT LOGIN /dev/console\r\nLast login: Tue May  8 10:21:15 on console\r\nSun Microsystems Inc.   SunOS 5.10      Generic January 2005\r\nSourcing //.profile-EIS.....\r\n\r\nTERM=vt100\r\n\r\nroot@b150 # ifconfig -a\r\nlo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1\r\n        inet 127.0.0.1 netmask ff000000 \r\nroot@b150 # cat /etc/hosts\r\n#\r\n# Internet host table\r\n#\r\n127.0.0.1       localhost       \r\n192.168.1.100   b150    b150.com        loghost\r\nroot@b150 # cat /etc/hostname.eri0\r\nb150\r\nroot@b150 #\r\nroot@b150 #\r\nroot@b150 # cat /etc/release\r\n                       Solaris 10 1/06 s10s_u1wos_19a SPARC\r\n           Copyright 2005 Sun Microsystems, Inc.  All Rights Reserved.\r\n                        Use is subject to license terms.\r\n                           Assembled 07 December 2005\r\nroot@b150 #

论坛徽章:
0
2 [报告]
发表于 2007-05-08 11:23 |只看该作者
ifconfig only configure the interface and store it in memory. You need to create /etc/hostname.eri0 file to keep the interface after reboot

论坛徽章:
0
3 [报告]
发表于 2007-05-08 11:26 |只看该作者
原帖由 briangao 于 2007-5-8 11:23 发表\r\nifconfig only configure the interface and store it in memory. You need to create /etc/hostname.eri0 file to keep the interface after reboot
\r\n\r\n\r\n在 /etc/hostname.eri0 写什么内容?

论坛徽章:
0
4 [报告]
发表于 2007-05-08 11:30 |只看该作者
在 /etc/hostname.eri0 写什么内容?
\r\n192.168.1.100 \r\n\r\nor preferably a name such as: my_int\r\nand in /etc/hosts file, add\r\n192.168.1.100  my_int

论坛徽章:
0
5 [报告]
发表于 2007-05-08 11:38 |只看该作者
关键是/etc/hosts和/etc/hostname.eri0已经存在啊(仔细看日志)

论坛徽章:
0
6 [报告]
发表于 2007-05-08 12:05 |只看该作者
关键是/etc/hosts和/etc/hostname.eri0已经存在啊(仔细看日志)
Oops, sorry. What is your output of svcs -a|grep network ?
jiefangxiaosa 该用户已被删除
7 [报告]
发表于 2007-05-08 19:42 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
8 [报告]
发表于 2007-05-08 21:28 |只看该作者
disabled       10:23:53 svc:/network/physical:default
This is the root cause of your problem. It should be enabled by default. Not sure why it is disabled. Please re-enable it\r\nsvcadm enable svc:/network/physical:default\r\n\r\nand then reboot your machine to test.

论坛徽章:
0
9 [报告]
发表于 2007-05-09 08:59 |只看该作者

回复 9楼 briangao 的帖子

按您的方法做ok了,多谢各位.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP