📄 395.html
字号:
<STYLE type=text/css>
<!--
body,td { font-size:9pt;}
hr { color: #000000; height: 1px}
-->
</STYLE>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD><TITLE>精选文章 >> solaris 专栏 >> 为Sun服务器配置多网卡</title>
</head>
<body >
<p><IMG SRC="../image/jsp001_middle_logo.gif" WIDTH="180" HEIGHT="60" BORDER=0 ALT=""></p>
<table width=100% bgcolor="#cccccc" align=center cellpadding="2" cellspacing="0" border=1 bordercolorlight="#000000" bordercolordark="#FFFFFF">
<tr bgcolor="#EFF8FF"><td>
<a href=http://www.jsp001.com/list_thread.php?int_attribute=2>精选文章</a>
>> <a href=http://www.jsp001.com/list_thread.php?forumid=39&int_attribute=2>solaris 专栏</a>
>> 为Sun服务器配置多网卡 [<a href=http://www.jsp001.com/forum/showthread.php?goto=newpost&threadid=395>查看别人的评论</a>]<br>
<hr><p>由 fei 发布于: 2001-02-13 09:31</p><p> </p><p>中国人民武装警察部队学院<br>张丽艳<br> 在网络设计中,在服务器端,为了防止网络传输过载或出于连接多子网的需要,往往要为服务器配置多块网卡。下面介绍如何为Sun服务器来配置新网卡。 <br><br> 一.安装新网卡 <br><br> 1.通知操作系统在重新启动时检测新硬件.命令如下: <br><br> #touch /reconfigure <br><br> 2.关闭服务器和电源. <br><br> #shutdown -i5 -g60 -y <br><br> 此命令通知连接的客户机,服务器将在60秒(-g60)后关闭;运行级别5(-i5)指明如果硬件支持,就自动关闭服务器电源。 <br><br> 3.物理安装新网卡 <br><br> 小心取下服务器背板上的插板,移去网卡上的托架,安好网卡,再插回原位,最后将网线插入新网卡接口,启动服务器。 <br><br> 二.配置新网卡 <br><br> 1.检查新网卡的设备号 <br><br> 服务台器启动后,用以下命令来检查分配给新网卡的设备号,这与把网卡安装在哪个槽上有关; <br><br> #dmesg <br><br> 此命令执行后将显示所有用户的设备号,如原有网卡的设备号为hme0,新网卡的设备号为hme1等; <br><br> 2.为新网卡配置主机名和IP地址 <br><br> 在/etc 目录用 vi 建立名为 hostname. 后跟新网卡的设备号(如hostname.hme1)的文件,其内容为绑定所给网卡的主机名;修改/etc/hosts文件,增加一条记录,其前半部分为新网卡的IP地址,加空格后跟 新网卡的主机名(hostname.hme1)。 <br><br> 如: <br><br>10.10.10.100 sun1 #first network adapter<br>88.1.1.10 sun2 #second network adapter<br><br> 3.路由功能 <br> 操作系统将自动开启多网卡的路由功能,若想关闭路由功能,可用如下命令: <br><br> #touch /etc/notrouter <br><br> 完成以上步骤后重新启动系统可用如下命令使配置生效 <br><br> #shutdown -i6 -g60 -y <br><br> 最后不要忘记修改DNS或NIS服务器,以使网络的其它主机能与之的通讯. <br><br> 以上方法需要Root用此权限在Sun Enterprise 3000服务器和Salaris 2.6 server操作系统上测试通过.<br></p></td>
</tr>
</table>
<p>
<CENTER><a href="http://www.jsp001.com/forum/newreply.php?action=newreply&threadid=395">点这里对该文章发表评论</a></CENTER>
<p>该文章总得分是 <font color=red>0</font> 分,你认为它对你有帮助吗?
[<a href=javascript:void(0) onclick=window.open("http://www.jsp001.com/forum/codeVote.php?threadid=395&intVote=4","","menubar=no,toolbar=no,location=no,directories=no,status=no,resizable=no,scrollbars=no,width=70,height=40,top=0,left=0")>非常多</a>](<font color=red>0</font>)
[<a href=javascript:void(0) onclick=window.open("http://www.jsp001.com/forum/codeVote.php?threadid=395&intVote=2","","menubar=no,toolbar=no,location=no,directories=no,status=no,resizable=no,scrollbars=no,width=70,height=40,top=0,left=0")>有一些</a>](<font color=red>0</font>)
[<a href=javascript:void(0) onclick=window.open("http://www.jsp001.com/forum/codeVote.php?threadid=395&intVote=1","","menubar=no,toolbar=no,location=no,directories=no,status=no,resizable=no,scrollbars=no,width=70,height=40,top=0,left=0")>无帮助</a>](<font color=red>0</font>)
[<a href=javascript:void(0) onclick=window.open("http://www.jsp001.com/forum/codeVote.php?threadid=395&intVote=-1","","menubar=no,toolbar=no,location=no,directories=no,status=no,resizable=no,scrollbars=no,width=70,height=40,top=0,left=0")>是灌水</a>](<font color=red>0</font>) </p>
<script language="javascript" src="http://www.jsp001.com/include/read_thread_script.php?threadid=395"></script>
<p><CENTER>
Copyright © 2001 - 2009 JSP001.com . All Rights Reserved <P>
<IMG SRC="../image/jsp001_small_logo.gif" WIDTH="85" HEIGHT="30" BORDER=0 ALT="">
</CENTER></p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -