当前位置:网站首页>实训九 网络服务的基本配置
实训九 网络服务的基本配置
2022-07-07 17:23:00 【Aimin20210819】
实训九网络服务的基本配置
2017年 4 月 16 日
今日公布
- 实训目标
完成本次实训,将能够:
- 配置网卡。
- 配置xinetd超级服务器。
- 实训准备
两台计算机,其中一台安装RHEL6系统,该系统出来root账号外,至少还有一个普通账号;另一台安装Windows2000/XP系统,两者通过集线器连接。两台计算机的IP地址为同一网段的地址。
- 实训预估时间
90min
- 实训内容
【练习一】配置RHET6计算机的网络接口
- 用“ifconfig -a”命令查看主机的网络接口,并从输入信息中,找到当前网卡的IP地址、MAC地址和该网卡所使用的中断号。
- 用“ifdown eth0” 或“ifconfig eth0 down”命令禁用eth0网卡,然后再用ifconfig命令查看当活动的网。使用
“ifconfig -a ”命令查看所有网络接口的状态信息,注意查看eth0网卡被禁用时所输出的状态信息。
- 用“ifup eth0 ” 或 “ifconfig eth0 up”命令重新启动eth0网卡,然后再用ifconfig命令查看。
- 利用vi编辑器编辑修改/etc/sysconfig/network-scripts/ifcfg-eth0配置文件,对网卡的IP地址进行修改(不改变网段),然后保存配置。利用
“service network restart”命令重启Linux系统的服务功能,使更改生效。
- 用ifconfig eth0 命令查看当前网卡的IP地址是否为所更改的IP地址,并用ping 命令png另一台Windows2000/XP计算机,观察显示结果。
- 运行netconfig 命令,设置或修改网卡的IP地址、子网掩码、网关和域名服务器地址,更改后查看网卡的配置文件和/etc/resolv.conf配置文件内容。最后用service network restart 命令重启网络服务功能,使配置生效。
- 进入XWindows系统,运行system-config-network命令,设置或修改网卡的IP地址、子网掩码、网关和域名解析服务器地址,更改后查看网卡的配置文件和/etc/resolv.conf配置文件。最后重新激活该网卡,使配置生效。
- 分别用ifconfig命令和system-config-network命令,设置虚拟网卡eth0:1的IP地址、子网掩码、网关。设置后查看网卡的配置文件内容。
【练习二】配置xinetd超级服务器
- 在RHET6计算机上,用chkconfig命令和直接编辑xinetd超级服务器的配置文件/etc/xinetd.conf与/etc/xinetd.d/telnet者两种方法启动telnet服务。然后重启xinetd服务器。
- 在Windows2000/XP计算机上用普通用户账号进行登录测试telnet远程服务。
边栏推荐
- Specify the version of OpenCV non-standard installation
- 鸿蒙智能家居【1.0】
- L1-027 rental (Lua)
- L1-028 judging prime number (Lua)
- 2022.07.05
- Numpy——2. Shape of array
- 博睿数据入选《2022爱分析 · IT运维厂商全景报告》
- Initial experience of cache and ehcache "suggestions collection"
- Responsibility chain model - unity
- Micro service remote debug, nocalhost + rainbow micro service development second bullet
猜你喜欢
杰理之关于 TWS 声道配置【篇】
Policy mode - unity
Short selling, overprinting and stock keeping, Oriental selection actually sold 2.66 million books in Tiktok in one month
ES6笔记一
编译原理 实验一:词法分析器的自动实现(Lex词法分析)
一张图深入的理解FP/FN/Precision/Recall
2022.07.04
Make insurance more "safe"! Kirin Xin'an one cloud multi-core cloud desktop won the bid of China Life Insurance, helping the innovation and development of financial and insurance information technolog
SlashData开发者工具榜首等你而定!!!
2022.07.05
随机推荐
PV static creation and dynamic creation
Version 2.0 of tapdata, the open source live data platform, has been released
Unable to link the remote redis server (solution 100%
杰理之相同声道的耳机不允许配对【篇】
“本真”是什么意思
初识缓存以及ehcache初体验「建议收藏」
Numpy——2. Shape of array
杰理之关于 TWS 配对方式配置【篇】
Mathematical analysis_ Notes_ Chapter 11: Fourier series
"Decryption" Huawei machine vision Corps: Huawei is moving up and the industry is moving forward
Tapdata 的 2.0 版 ,开源的 Live Data Platform 现已发布
Is AI more fair than people in the distribution of wealth? Research on multiplayer game from deepmind
咋吃都不胖的朋友,Nature告诉你原因:是基因突变了
L1-023 output gplt (Lua)
鸿蒙智能家居【1.0】
Solve the error reporting problem of rosdep
杰理之发起对耳配对、回连、开启可发现、可连接的轮循函数【篇】
how to prove compiler‘s correctness
手把手教姐姐写消息队列
what‘s the meaning of inference