问答题在一个基于TCP/IP协议的网络中,每台主机都有会有一个IP地址(如:Internet)。Inter- net上的每台主机都有一个惟一的IP地址,根据获得IP址的方式不同,可以分为静态IP,动态IP。例如:用宽带入网,一定会有一个固定的IP地址,每次连入Internet的IP地址都一样,而用拔号上网(如用:Modem),每次连入Internet时都能从ISP那里获得一个IP地址且每次所获得的可能都不同。ISP为什么能够给用户分配一个IP地址呢?这时因为有DHCP服务器的存在,根据在Linux中建立DHCP服务器的实例回答问题。
问答题[问题1]为了将公司内所有的计算机连接起来。图1中的A处可采用哪两种类型的设备?
问答题【说明】某大学利用VOD视频服务系统提供教学课件在线点播服务。该视频服务系统用ASP语言编程实现,主页文件名为“index.asp”,部分网页运行的效果如图2-13所示。程序中使用的Access数据表结构见表2-8和表2-9。【conn.asp文档的内容】<%dimdb,conn,connstrdb="vod.mdb"setConn=server.CreateObject("ADODB.connection")connstr="proyider=microsoft.jet.oledb.4.0;datasource="line-height:17pxbodyfont-size:12px;line-height:17pxpmargin-top:1px;margin-bottom:1pxa:linktext-decoration:none;color:blacka:visitedtext-decoration:none;color:black--></style></head><bodyleftmargin="0"topmargin="0"><!--#5ncludefile="head.asp"--><table><tdheight="30"width="367"><%sq1="select*fromitem"setrs_item=server,createobjiect("adodb.recordset")rs_iterm.opensq1,connstr,1,1response.write"<p><b><imgsrc=images/dot1.gif><ahref=index.asp>全部节目</a>"dowhilenotrs_item.eofresponse.write"<imgstc--images/dot1.gifbotder=-0><ahref=index.asp?item=""(5)<!--第(5)处-->response.write"</b>"rshm.close%></td></table></div><divalign="center"><%dimitem_typeitem_type=(7)<!--第(7)处-->ifitem_type=""oritcrn_type="全部节目"thensq1="sclect*fromdata"elsesq1="(8)<!--第(8)处-->endifsetrs=server,createobject("adodb.recordset")rs.opensql,connslr,1,1%><table<tr><tdwidth="125"background="images/bg.gif'height="30"><imgborder="0"src="images/biao_left.gif"width="15"height="15">节目名称</td><tdwidth="58"background="images/bg.gif"height="30"align="center">格式类型</td><tdwidth="43"background-"images/bg,giftheight="30"align="center">点播次数</td><tdwidth="70"background="images/bg.gif"height="30"align="center">创建日期</td><tdwidth="ll5"background="images/bg.gif"height="30"align="center">点播</td><tdwidth="73"background="images/bg,gif"height="30'"align="center">下载</td></tr><%dowhilenotrs.eof%><tr><rdwidth="125"height"30"><imgbgrder=-"0"src="images/dian.gif"><%=rs("name")%></td><tdwidth="115"height="30"align="center"><ahref="">点播</td><tdwidth="58"height="30"align="center"><%=rs("type")%></td>(9)<!--第(9)--><tdwidth="70"height="30"align="center"><%=rs("date")%></rd></tr>loop%></table></div><!--此处省略了部分代码--><!--#includefile="foot.asp"--></body></html>
问答题[问题2] 如果已经把图12-3中的mp3下载完,而又想让别人从自己的电脑中下载,必须怎么操作?
问答题【说明】在Windows的网络配置中,对网络协议进行IP地址配置,出现图5-1所示的对话框。
问答题 阅读下列说明,回答问题1至问题4,将解答填入对应栏内。
【说明】 希赛IT教育研发中心申请到合法的IP地址是202.112.68.64,子网掩码是
255.255.255.192,但内部有6个不同的应用子网,其中4个子网需要合法的IP,以供向外进行信息发布等功能,数量有限,另两个子网主要以访问其他服务器为主,数目众多。请你以网络管理员的身份回答以下问题。
问答题分析验证页面的源代码,假设用户输入错误的账号信息,浏览器将显示什么内容?
问答题请根据网页显示的效果图和网页中的元素说明完成HTML文本中______处的内容。说明序号类型说明1图片链接链接在新窗口中打开,目标地址:register.html,图像名称:mickey.jpg,高度:150,宽度:100,替换广西:注册Mickey邮箱,图像无边框2表单名字:login,处理程序:cgi-bin/login3选择字段包括两个选项:mail.mickey.com.cn和mail.mickey.com,其中mail.nickey.com.cn为默认选项4密码框名字:PWD,宽度:12,最大允许长度:165提交按钮名字:SM【源代码】<html><head>(1)<metahttp-equiv=Content-Typecontent="text/html;charset=gb2312"></head><body>(2)<strong>欢迎使用Mickey邮箱</strong>(3)<b>用户名:</b><inputsize=12name=UserName>@<SELECTname=domain>(4)</selecy><br><br>(5)<br><br>(6)<br><br>想拥有Mickey邮箱吗?请点击顶部图片进行注册</form></body></html>
问答题【说明】 某软件开发公司架构了一台基于Linux操作系统的Samba服务器。公司员工需要一个共享的800MB硬盘空间以便能随时交换文件,且为每位员工在服务器上分配一个200MB的私人硬盘空间(该空间只允许员工本人进行存取)。为了能尽可能多地记录系统日志和提高Samba服务器的利用率,要求对smb.conf日志文件的大小不做限制。
问答题 阅读下列说明,回答问题1至问题3,将解答填入对应栏内。
【说明】
无线网络利用无线电波作为数据的传导,而就应用层面来讲,它与有线网络的用途完全相似,两者最大的不同之处是传输数据的媒介不同。除此之外,正因它是无线,因此不论是在硬件架设或使用的机动性方面均比有线网络要有优势。而无线局域网是利用无线技术实现快速接入以太网的技术。
问答题阅读以下关于无线局域网(WLAN)部署的技术说明,根据要求回答问题1~问题5。【说明】某校园网拓扑结构如图6-4所示,采用无线网络控制器来自动探测、监控、管理无线AP。该无线校园网解决方案中采用Web+DHCP方式解决用户接入问题,当用户连上无线接入点,由无线网络控制器为用户自动的分配IP地址,基于Web的认证成功后即可访问Internet。
问答题[问题4]
Linux中的WWW服务器有哪几种?
问答题
希赛公司有总部和两个分公司,采用路由器,租用电信部门专线进行联网,网络示意图如图6-1所示。
问答题[HTML文本] <html> <!—省略部他为HTML框--> ……… <style> <!--. dragposition: relative; cursor: hand //css程序,通过类选择符建立类,类的名称为drag </style> (1) //JavaScript区域开始标识 var m=false //声明风个变量 var z, x, y function p() //定义一个函数P(),判断鼠标是否已按下左键 if( (2) 就返回。所以此效果在Netscape if (!document. all) retum if(event, srcElement.className=="drag", ) //如果鼠标左键被按下,返回z, a, b, x, y的值 re=tree z=event.srcElement a=z.style.pixelLeft b=z.style.pixelTop x=event.clientX y=event.clientY (3) //当鼠标移动时,执行p()函数,当鼠标按下的时候,执行q函数,当鼠标 //抬起的时候,不执行任何函数 (4) document.onmouseup=newfunction(" (5) ")
问答题[说明]在IE浏览器中输入yoyo电子邮局主页地址并回车后,网页的显示效果如下图所示。[网页中的元素说明]见下表。 网页中的元素说明类 型说 明图片文件名:“atmail.jpg”;宽度:80pixels;高度:80pixets“登录名:”文本框名称:“login_name”;尺寸:20字符“密码:”密码文本框名称:“login_password”;尺寸:20字符“类型:”下拉组合框文字列表项:“商务用户”、“VIP用户”、“免费用户”发送电子邮件超链接邮件发送地址:“vipmail@yoyo.net”BBS超链接超链接地址:“http://bbs.yoyo.com” [HTML文本] <html> <head> <title>yoyo邮局主页</rifle> </head> <body> <palign=“center”> <b><fontcolor=“#800080”face=“楷体_GB2312”size=“5”>yoyo邮局</font></b> </p> <palign=“center”> (1) </p> <palign="left"></p> <palign="left">用户登录</p> <table> <tr><tdwidth="100"height="16"> <divalign="right"> 登录名: </div></td> (2) </table> <table> <tr><tdwidth="100"height="16"> <divalign="right"> 密码 </div></td> (3) </table> <table> <tr><tdwidth="100"> <divalign="right"> 类型 </div></td> <selectonchange="changeBackURL()"name="select"> <option>商务用</option> <option>免费用户(4)</option> </select> </table> <p></p><p></p> VIP服务咨询邮箱:(5) <ahref="http://bbs.yoyo.com">参加yoyo邮局社区讨论</a> </body> </html>
问答题[conn.asp文档的内容]
<%
dim db,conn,connstr
db="film.mdb"
set Corm =server. CreateObject("ADODB.Connection")
connstr="provider=microsoft.jet, oledB.4.0;data source=" line-height: 17px }
body { font-size: 12px; line-height: 17px }
p { margin-top: lpx; margin-bottom: lpx }
a:link { text-decoration: none; color: black }
a:visited { text-decoration: none; color: black }
{{U}}a:active { text-decoration: none; color: blue }{{/U}} 第(3)处
-->
</style>
</head>
<body lefimargin="0" topmargin="0">
<!--#include file="heaD.asp"-->
<div align="center"> 第(4)处
<table>
<td height="30" width="367">
<%sql="select * from item"
set rs_item=server, createobj ect("adodB.recordset")
rs_item, open sql,connstr, 1,1
response.write "<p><b><IMG onClick=over(this) title=放大 src=images/dot 1.gif><a hre=index.asp>全部电影</a>"
do while not rs_item, eof
response.write "<IMG onClick=over(this) title=放大 src=images/dot1.gif borde=0><a href=index.asp?item=""
{{U}} (5) {{/U}}
{{U}}loop{{/U}} 第(6)处
response.write "</b>"
rs_item.close %>
</td>
</table>
</div>
<div align="eenter">
<% dim item_type
item_type={{U}} (7) {{/U}}
if item_type="" or item_type="全部电影" then
sq1="select * from data"
else
sql="{{U}} (8) {{/U}}"
end if
set rs=server, createobject("adodB.reeordset")
rs.open sql,connstr, 1,1
%>
<table>
<tr>
<rd width="125" background="imagesfog.gif"height="30">
<IMG onClick=over(this) title=放大 border="0" src="images/biao_le ft.gif" width="15" height="15">影片名字</td>
<td width="115" baekground="images/bg.gif"height=-"30" align="center">在线播放</td>
<rd width="64" background="images/bg.gif"height="30" align="center"> 电影类型</td>
<td width="58" baekground="images/bg.gif"height=-"30" align="eenter">播放格式</td>
<td width="43" baekground="im?ges/bg.gif"height"30"align="center">点击</td>
<td width "70" baekground="imagesfog.gif"height="30" align="eenter">加入日期</td>
<rd width="73" baekground="images/bg.gif"height="30"align="eenter">推荐度</td>
</tr>
<%do while not rs.eof%>
<tr>
<rd width "125" height="30" ><IMG onClick=over(this) title=放大 border="0'' src="images/dian.gif'> <%=rs
("name")%></td>
<td width="115" height="30" align="cente"><a href="">点播</td>
<rd width="64" height="30" align="eenter"><a href="index.asp?item=<%=rs("item")%>">
<%=s("item")%></td>
<td width="58" height="30" align="center"><%=rsCtype")%></td>
{{U}} (9) {{/U}}
<rd width="70" height"30" align="center"><%=rs("date")%></td>
<td width="73" height="30" aligd="center"><font color="red"><%=rs("mark")%></a></td>
</tr>
<% {{U}}rs.movenext{{/U}} 第(10)
loop%>
</table>
</div>
<!--#include file="foot.asp"-->
</body>
</html></html>
问答题Apache服务器的设置文件位于/usr/local/apache/conf/目录下,传统上使用3个配置文件 httpd.conf,access.cord和srm.conf来配置Apache服务器的行为。httpd.conf提供了最基本的服务器配置,是对守护程序httpd如何运行的技术描述:srm.conf是服务器的资源映射文件,告诉服务器各种文件的MIME类型,以及如何支持这些文件;access.cord用于配置服务器的访问权限,控制不同用户和计算机的访问限制;这3个配置文件控制着服务器的各个方面的特性,因此为了正常运行服务器便需要设置好这3个文件。1.[问题1]如何设置httpd.conf,使得Apache服务器监听在特定的端口?
问答题[问题2] 安装DHCP的rpm包,应该执行什么命令?