摘要: IP地址:是给每个连接在Internet上的主机分配的一个32bit地址。地址有两部分组成,一部分为网络地址,另一部分为主机地址。IP地址分为A、B、C、D、E 5类。常用的是B和C两类。网络地址的位数直接决定了可以分配的网络数;主机地址的位数则决定了网络中最大的主机数。A类地址: 网络位8(7)位+主机位24位,IP范围:1.0.0.0--126.255.255.255127网络位是本地测试地址,不能用于数据通讯。 IP范围:127.0.0.0--127.255.255.255B类地址:网络位16(14)位+主机位16位,IP范围:128.0.0.0--191.255.255.255C类地址 阅读全文
posted @ 2013-12-06 11:26 galoishelley 阅读(540) 评论(0) 推荐(0)
摘要: I recently usedifconfig en1 1.2.3.4to set the IP address of a network interface (specifically, the wireless card) on a Mac… How can I remove/unset it?Using the graphical network configuration tool doesn't seem to change (or even be aware of) this address - when I use it to manually set an addres 阅读全文
posted @ 2013-12-05 15:15 galoishelley 阅读(335) 评论(0) 推荐(0)
摘要: The port Commandhelp:port help selfupdateselfupdate:sudo port selfupdatesearch:port search tftpuninstallsudo port uninstall tftpTo also recursively uninstall the ports that the given port depends on, use the ‑‑follow‑dependencies flag. This will not uninstall dependencies that are marked as requeste 阅读全文
posted @ 2013-11-29 11:50 galoishelley 阅读(206) 评论(0) 推荐(0)
摘要: If you installed MacPorts using the package installer, skip this section. To install MacPorts from the source code, follow the steps below. 1. Download and extract the MacPorts 2.2.1 tarball. Either do so using your browser and the Finder, or use the given commands in a terminal window.curl -O ... 阅读全文
posted @ 2013-11-29 11:27 galoishelley 阅读(2352) 评论(0) 推荐(0)
摘要: 简介Netstat 命令用于显示各种网络相关信息,如网络连接,路由表,接口状态 (Interface Statistics),masquerade 连接,多播成员 (Multicast Memberships) 等等。输出信息含义执行netstat后,其输出结果为Active Internet connections (w/o servers)Proto Recv-Q Send-Q Local Address Foreign Address Statetcp 0 2 210.34.6.89:telnet 210.34.6.96:2873 ESTABLISHEDtcp 296 0 210.34. 阅读全文
posted @ 2013-11-27 14:52 galoishelley 阅读(339) 评论(0) 推荐(0)
摘要: 需要图形化编译的时候必须Build->Packages加入:Common ethernet support 才可以有网络功能导入vmare需要修改网络连接模式:1- 设置redbootIP设定redboot IP为 192.168.2.14,TFTP主机IP为:192.168.2.16ip -l 1... 阅读全文
posted @ 2013-11-27 14:12 galoishelley 阅读(487) 评论(0) 推荐(0)
摘要: vi5个特殊字符包含/、^、$、*、.在vi中用/查找时,()不做为特殊字符处理比如:查找字符串(cyg_uint8 *)b 应该这样写 /(cyg_uint8 \*)b 只有 * 需要转义 \* 即可 阅读全文
posted @ 2013-11-27 11:07 galoishelley 阅读(812) 评论(0) 推荐(0)
摘要: 11个特殊字符包含:$, (), *, +, ., ?, \, /, ^, {}, |但是在vi中用/查找时,()不做为特殊字符处理比如:查找字符串(cyg_uint8 *)b 应该这样写 /(cyg_uint8 \*)b 只有 * 需要转义 \* 即可注释 $ 匹配输入字符串结尾的位置。如果设置了 RegExp 对象的 Multiline 属性,那么 $ 还匹配 \n 或 \r 前面的位置。若要匹配 $ 字符本身,请使用 \$。( ) 标记子表达式的开始和结束。可以捕获子表达式以供以后使用。若要匹配这两个字符,请使用 \( 和 \)。* 零次或多次匹配前面的字符或子表达式。若要匹配 * 字符 阅读全文
posted @ 2013-11-27 11:03 galoishelley 阅读(1775) 评论(0) 推荐(0)
摘要: /home/xin/ecos3/ecos-3.0/packages/devs/eth/amd/lancepci/v3_0/src/if_lancepci.c:528: 错误: 赋值运算的左操作数必须是左值vi /home/xin/ecos3/ecos-3.0/packages/devs/eth/amd/lancepci/v3_0/src/if_lancepci.c for (i = 0; i rx_ring_cnt; i++) { HAL_PCI_CPU_TO_BUS(d, (cyg_uint8 *)b); _SU32(p, LANCE_RD_PTR) = (... 阅读全文
posted @ 2013-11-27 10:55 galoishelley 阅读(1075) 评论(0) 推荐(0)
摘要: 安装 TFTP 服务sudo apt-get install xinetdsudo apt-get install tftp-hpasudo apt-get install tftpd-hpa修改 TFTP 设置参数sudo gedit /etc/default/tftpd-hpa# 修改内容如下T... 阅读全文
posted @ 2013-11-25 16:43 galoishelley 阅读(405) 评论(0) 推荐(0)