TCP协议三次握手过程分析
摘要: 实例:
IP 192.168.1.116.3337 > 192.168.1.123.7788: S 3626544836:3626544836
IP 192.168.1.123.7788 > 192.168.1.116.3337: S 1739326486:1739326486 ack 3626544837
IP 192.168.1.116.3337 > 192.168.1.123.7788: ack 1739326487,ack 1
第一次握手:192.168.1.116发送位码syn=1,随机产生seq number=3626544836的数据包到192.168.1.123,192.168.1.123由SYN=1知道192.168.1.116要求建立联机;
第二次握手:192.168.1.123收到请求后要确认联机信息,向192.168.1.116发送ack number=3626544837,syn=1,ack=1,随机产生seq=1739326486的包;
第三次握手:192.168.1.116收到后检查ack number是否正确,即第一次发送的seq
阅读全文
posted @
2009-01-16 23:39 一江水 阅读(19062) |
评论 (1) 编辑
利用telnet进行SMTP的验证
摘要: [crazywill@localhost crazywill]$ perl -MMIME::Base64 -e 'print encode_base64("crazywill");'
Y3Jhenl3aWxs
[crazywill@localhost crazywill]$ perl -MMIME::Base64 -e 'print encode_base64("mypassword");'
bXlwYXNzd29yZA==
阅读全文
posted @
2008-10-27 11:08 一江水 阅读(1198) |
评论 (0) 编辑
nfs配置 /etc/exports
摘要: 启动nfs后又修改了/etc/exports,不用重启该服务,使用exports命令即可:
Exports [-aruv]
-a 全部mount或umount文件/etc/exports中的内容
-r 重新mount文件/etc/exports中的共享内容
-u umount目录
-v 在export的时候,将详细的信息输出到屏幕上
例
[root@localhost ~]#exports –rv 全部重新export一次
[root@localhost ~]#exports –au 全部卸载
阅读全文
posted @
2008-10-14 16:06 一江水 阅读(2244) |
评论 (0) 编辑
在Linux下把iso文件映射到目录
摘要: mount -t iso9660 /root/10201_database_linux32.iso /mnt/cdrom -o loop
mount -t iso9660 -o iocharset=gb2312 /dev/hdc /mnt/cdrom
阅读全文
posted @
2008-07-23 17:59 一江水 阅读(299) |
评论 (0) 编辑
在红帽企业Linux 5上怎样添加裸设备映射?
摘要: 设置重新启动自动挂载裸设备
vi /etc/udev/rules.d/60-raw.rules
ACTION=="add", KERNEL=="sdd1", RUN+="/bin/raw /dev/raw/raw1 %N"
ACTION=="add", KERNEL=="sde1", RUN+="/bin/raw /dev/raw/raw2 %N"
ACTION=="add", KERNEL=="sdf1", RUN+="/bin/raw /dev/raw/raw3 %N"
阅读全文
posted @
2008-03-23 22:45 一江水 阅读(1907) |
评论 (0) 编辑
Linux技巧
摘要: 0001 修改主机名(bjchenxu)
vi /etc/sysconfig/network,修改HOSTNAME一行为"HOSTNAME=主机名"(没有这行?那就添加这一行吧),然后运行命令 " hostname 主机名"。一般还要修改/etc/hosts文件中的主机名。这样,无论你是否重启,主机名都修改成功。
阅读全文
posted @
2008-03-17 11:48 一江水 阅读(77) |
评论 (0) 编辑
Xmanager/X-win32 连接Redhat Linux as4
摘要: 2、#vi /etc/X11/gdm/gdm.conf
查找“[xdmcp]”
把Enable选项由“false”设置“true”
设置“DisplayPerHost”为9
设置Port=177
阅读全文
posted @
2008-02-11 22:50 一江水 阅读(755) |
评论 (0) 编辑
Linux下通过SMB mount Windows 2003 共享目录
摘要: #mkdir /home/tmp
#mount -t smbfs -o username=test,password=test //192.168.0.2/soft /home/tmp
阅读全文
posted @
2008-02-10 17:39 一江水 阅读(317) |
评论 (0) 编辑