1 / 9

ITEC280LINUX 操作系统

ITEC280LINUX 操作系统. 2013.4.24. 上节回顾. 用户与组管理 进程管理. 1 、 ctrl+z 挂起进程 2 、 pid 与 jobs id 的区别. 第七讲 命令篇三(网络、压缩篇). 网络运行原理. Ubuntu 网络配置. 压缩管理. 综合练习. 7.1 网络运行原理. 网络运行的奥秘: MAC 地址 局域网机器的识别 IP 地址 网络机器的识别 子网掩码 区分计算机的网络 网关 网络的各个出口 路由 在各个出口之间的跳转链路 DNS 便于记忆的名称服务器. 7.2 ubuntu 网络配置.

isolde
Download Presentation

ITEC280LINUX 操作系统

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. ITEC280LINUX操作系统 2013.4.24

  2. 上节回顾 用户与组管理 进程管理 1、ctrl+z 挂起进程 2、pid与jobs id的区别

  3. 第七讲 命令篇三(网络、压缩篇) 网络运行原理 Ubuntu网络配置 压缩管理 综合练习

  4. 7.1 网络运行原理 • 网络运行的奥秘: MAC地址 局域网机器的识别 IP地址 网络机器的识别 子网掩码 区分计算机的网络 网关 网络的各个出口 路由 在各个出口之间的跳转链路 DNS 便于记忆的名称服务器

  5. 7.2 ubuntu网络配置 ifconfig 网络接口配置 ifconfig eth0 192.168.1.1 netmask 255.255.255.0 设置IP route 网络路由配置 route add default gw 192.168.1.10 设置网关 netstat 网络状态 -tl-nltp tracepath 路由跟踪 配置文件 /etc/network/interfaces 网络接口配置 /etc/resolv.conf DNS服务器配置

  6. 7.2 ubuntu网络配置 /etc/network/interfaces 重启生效 auto eth0 Iface eth0 inet static address 192.168.1.1 netmask 255.255.255.0 gateway 192.168.1.10 /etc/resolv.conf nameserver 192.168.1.10

  7. 7.3 压缩管理 tar c 创建包 v 详细信息 f 创建文件 x 解压包 z 同时使用gz j 同时使用biz2 gz gzip与 gunzip biz2 bzip2与bunzip2 zip zip与unzip rar rar a x

  8. 实验内容 1、创建虚拟机安装ubuntu操作系统,用户名为本人姓名全拼。 2、开启终端,使用查看本机eth0网络接口IP地址,执行结果截图为图1。修改ip地址为192.168.6.1xx,xx为本机电脑编号。查看执行结果,截图为图2。 3、使用tracepath,追踪地址:lenj.itd.8866.org。截图为图3。 4、查看本机路由表,并修改默认路由为192.168.6.100,再次打印路由表,截图为图4。再次追踪地址:lenj.itd.8866.org,理解路由与网关的概念。 5、使用vi 编辑/etc/network/interfaces文件,配置eth0接口为2、4步骤的配置并保存。使用cat 查看该文件截图为图5。 6、使用mkdir命令桌面上创建本人姓名全拼为名的文件夹。使用cp命令将步骤5中的interfaces文件复制至该文件夹中。截图为图6。 7、使用tar命令将该文件夹打包为”本人学号.tar”的包,并使用gzip进行压缩。使用ls –l显示该文件详细信息。截图为图7。 所有截图打包上传。

  9. FREE TIME

More Related