Linux下配置NAT服务器共享上网
<< Linux下配置NAT服务器共享上网 >>
content:
0. 本次配置的网络的拓扑结构:
1. 配置IP地址
. 1.1 正确配置学校分配的IP使能正常上网
. 1.2 新增eth0别名设备eth0:0
. 1.3 配置后 查看一下是否配置成功:
2. 配置路由
3. 配置NAT
4. 大功告成
5. 配置客户机(可以是windows或linux等其它系统)
0. 本次配置的网络的拓扑结构:
#
# |
# |
# ========+===============
# |10.3.10.0/24
# |
# |
# |10.3.10.19
# +----+----+ +-------+ +-------+
# | | | | | |
# | linux | | win1 | | win2 |
# |
相关文档:
一、硬盘分区与文件系统
1) 通常在拿到一块新的硬盘时,会将硬盘分割成几个不同的分区(partition)
2) 分好分区后,要把这些分区格式化(Format)成特定的文件系统格式(File System Format),才能够用来储存文件。格式化就是把分区切割成一个个小单位(称为block),并且block依序编号。block是储存文件内容的最小单位。在预设 ......
Vmware上装的Linux,在Shell下由于输错命令或是种种原因,会发出“嘟嘟”的报警声,并不是声卡发出的,而是主板的报警,所以不能通过关闭音箱来解决。寝室里经常响起这样的声音非常刺耳,今天在网上找到了解决方法,记下:
将/etc/inputrc中的set bell-style none 前的#去掉,之后重启系统即可。
不过这种方 ......
vi 中关闭出错 bell 声音
http://blog.csdn.net/coolrocky/archive/2001/06/05/8080.aspx
去除虚拟机Linux的报警声
http://hi.baidu.com/zjd168/blog/item/c8300846b5a6ec0e6a63e5d8.html
关闭主板报警音
http://linux.chinaunix.net/techdoc/install/2009/05/16/1112897.shtml
linux中关闭报警音和修改分辨率
http ......
LINUX中时间有两种:
1)日历时间
2)进程时间
日历时间顾名思义即用来获取日历;
主要涉及到的函数有:
time(time_t*);
stime(time_t*);
tm* gmtime(time_t*);
tm* localtime(time_t*);
char *strftime(tm*);
char *asctime(tm*);
time_t* mktime(tm*);
数据结构如下:
time_t
struct tm{
int tm_se ......