庞大资源库的计算机教程网站!
设为首页
加入收藏
总编信箱
投稿或申请专栏请先 [登 陆]
首页 操作系统 程序设计 图形图像 媒体动画 机械电子 WEB开发 数 据 库 办公系列 路由技术 网络原理 网络应用
认证考试 安全技术
首页>操作系统>Solaris>入门技巧>正文
资料搜索
Google搜索
Google
返回上级列表

推荐文章

快速保存网页中所有图片的方法
Windows中让光驱巧妙“隐身”技
防范非法用户入侵Win 2000/XP系
两款比较典型的ASP木马防范方法
有关表格边框的css语法整理
Windows XP中可以被禁用的服务
SQL Server导出导入数据方法
Javascript所有对象的属性的获
网页(HTML)中的特殊字符
与篮球共舞,尽显模式本色
QQ病毒的手工清除方法
Photoshop为极品美女打造性感睫
天衣无缝:IIS与PHP水火也相容
SQL Server存储过程编写和优化

What do the flags values in "ifconfig -a" mean?

 作者:本站收集   日期:2005-4-19
字号选择〖 〗/ 双击滚屏 单击停止   
This document explains the flags value in ifconfig -a output. For example:
# ifconfig -a
lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 129.149.141.67 netmask ffffff00 broadcast 129.149.141.255

The flags value is a hexadecimal representation of the state of the interface. Each number in the value is distinct. In the above example, both flags= values are comprised of 7 different hex values, 1,0,0,0,8,4,9. To find out what the value means, follow the chart below: For example if the flags value is 1000849, that means the interface card is:
0x00000008 + 0x00000001 = is a loopback and the card is up
0x00000040 = resources are allocated
0x00000800 = card supports multicasting
=========
0x00000849
Previous to Solaris[TM] 8, the flags value only showed three digits, e.g., flags=843. Below is the chart excerpt from /usr/include/net/if.h:
0x00000001 /* interface is up */
0x00000002 /* broadcast address valid */
0x00000004 /* turn on debugging */
0x00000008 /* is a loopback net */
0x00000010 /* interface is point-to-point link */
0x00000020 /* avoid use of trailers */
0x00000040 /* resources allocated */
0x00000080 /* no address resolution protocol */
0x00000100 /* receive all packets */
0x00000200 /* receive all multicast packets */
0x00000400 /* protocol code on board */
0x00000800 /* supports multicast */
0x00001000 /* multicast using broadcast address */
0x00002000 /* non-unique address */
0x00004000 /* DHCP controls this interface */
0x00008000 /* do not advertise */
0x00010000 /* Do not transmit packets */
0x00020000 /* No address - just on-link subnet */
0x00040000 /* interface address deprecated */
0x00080000 /* address from stateless addrconf */
0x00100000 /* router on this interface */
0x00200000 /* No NUD on this interface */
0x00400000 /* Anycast address */
0x00800000 /* Do not exchange routing info */
0x01000000 /* IPv4 interface */
0x02000000 /* IPv6 interface */
0x04000000 /* Mobile IP controls this interface */
0x08000000 /* Don't failover on NIC failure */
0x10000000 /* NIC has failed */
0x20000000 /* Standby NIC to be used on failures */
0x40000000 /* Standby active or not ? */
0x80000000 /* NIC has been offlined */
上一篇:更改login之前的界面设定    下一篇:详细看当前系统使用的版本  
[发送给好友]  [关闭窗口]  [返回顶部]   转载请注明来源:www.it00.com   
特别声明: 本站除部分特别声明禁止转载的专稿外的其他文章可以自由转载,但请务必注明出处和原始作者。文章版权归文章原始作者所有。对于被本站转载文章的个人和网站,我们表示深深的谢意。如果本站转载的文章有版权问题请联系编辑人员,我们尽快予以更正。
责任编辑: 原点 投稿作者: 本站收集
信息来源: 网络 录入时间: 2005-4-19
关于我们 - 广告服务 - 版权申明 - 网站地图 - 联系方式 - 总编信箱 - 会员投稿