免费注册 查看新帖 |

Chinaunix

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

solaris 9 中对网卡配置文件修改了,如何不重启电脑生效? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-04-04 23:34 |只看该作者 |倒序浏览
solaris 9  中对网卡配置文件修改了,如何不重启电脑生效?
比如像10中svcadm enable physical的这样的命令,

论坛徽章:
0
2 [报告]
发表于 2007-04-05 01:28 |只看该作者
应该和2.8的一样,用ifconfig直接软拨插,再把新IP配上就可以生效吧

论坛徽章:
0
3 [报告]
发表于 2007-04-05 04:48 |只看该作者
In Solaris 9 , it is controlled by /etc/rcS.d/S30network.sh script. But it will use some of the environment settings in /sbin/rcS file. Why don't you just use the ifconfig command to change the IP without rebooting as dogg suggested?

论坛徽章:
0
4 [报告]
发表于 2007-04-29 10:10 |只看该作者
什么叫ifconfig直接软拨插,?能举一例,你是说不用改置文件?
不是说ifconfig 改的话,重启后不能生效的吗?

论坛徽章:
0
5 [报告]
发表于 2007-04-29 11:25 |只看该作者
ifconfig eri0 umplumb
ifconfig eri0 plumb
eri0 is the interface depend on hardware,
eg, blade 150-eri0

论坛徽章:
0
6 [报告]
发表于 2007-04-29 11:26 |只看该作者
ifconfig eri0 umplumb
ifconfig eri0 plumb
eri0 is the interface depend on hardware,
eg, blade 150-eri0
netra240-bge0~bge3

论坛徽章:
0
7 [报告]
发表于 2010-05-12 10:46 |只看该作者
# ifconfig bge1 plumb
# ifconfig bge1 预配ip/掩码位数 up
--以上操作就可以了,但是重启后会失效,如想不失效,请继续
--创建文件,在/etc目录下创建hostname.bge1文件,内容就是预配ip
重启即可

论坛徽章:
0
8 [报告]
发表于 2010-05-12 10:52 |只看该作者
学习了

论坛徽章:
2
IT运维版块每日发帖之星
日期:2015-10-28 06:20:00IT运维版块每日发帖之星
日期:2015-12-16 06:20:00
9 [报告]
发表于 2010-05-13 09:22 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
10 [报告]
发表于 2010-05-13 10:13 |只看该作者
ifconfig只能這次配置,如果下次你reboot,還是會還原到上次的設置,如果你不急的話

1。先用ifconfig設置,
#ifconfig e1000.g0 down
#ifconfig e1000.g0 x.x.x.x netmask x.x.x.x broadcast x.x.x.x
#ifconfig e1000.go up

#route delete default x.x.x.x(刪除原來的gateway)
這樣的話不重啓之前都可以用了

但是下次重啓還是還原為你第一次做sysconfig的狀態,所以你想reboot之後以
正常的話,請修改:

Sol10下:
/etc/hosts,  
/etc/inet/ipnodes
/etc/inet/netmasks,
/etc/defaultrouter,
/etc/resolv.conf(使用了DNS的話)

——————————————————————————————————
如果可以的話,直接改文件,重啓之後就可以用了,省去了再改一次ifconfig的
手續

希望有幫到你
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP