ifconfig usage
来源:互联网 发布:花千骨网络播放量 编辑:程序博客网 时间:2024/05/17 22:07
Usage Syntax
ifconfig interface [options] | (ip-address [netmask mask] | mac-address)
Common options include;
- up | down - enable or disable the interface
- metric - specify the interface metric (used by routing and other protocols)
- mtu - specify the interface MTU in bytes
- [-]arp - enable or disable ARP on the interface (enabled by default)
- [-]promisc - enable or disable promiscuous mode on the interface (disabled by default)
- hw ether mac-address - specify the interface MAC address
Usage Examples
ifconfig - display current interface configuration and status
ifconfig eth0 1.1.1.1 netmask 255.255.255.0 - configure interface eth0 with an IP address of 1.1.1.1 and subnet mask of 255.255.255.0
ifconfig eth0:0 2.2.2.1 netmask 255.255.255.0 - configure interface eth0 with an IP alias (or secondary) of eth0:0 using an IP address of 2.2.2.1 and subnet mask of 255.255.255.0 (use eth0:1 onwards for more)
ifconfig eth0 -arp - disable ARP on interface eth0
ifconfig eth0 mtu 1400 - configure interface eth0 with an MTU of 1400 bytes
ifconfig eth0 inet 192.168.1.1 up
注:
ifconfig 单独使用 只显示active的接口
ifconfig -a 显示所有接口
- ifconfig usage
- ifconfig
- ifconfig
- ifconfig
- ifconfig
- ifconfig
- ifconfig
- ifconfig
- ifconfig
- ifconfig
- ifconfig
- ifconfig
- ifconfig
- ifconfig
- ifconfig
- ifconfig
- ifconfig
- ifconfig
- 回调函数
- MYSQL 5.1下载
- struts2国际化简单案例
- 用JS中document.styleSheets控制cssRules规则
- 邻接矩阵(有向图,无向图实现的差异)
- ifconfig usage
- 在网页上显示公式的方法
- ERP市场嬗变,产品与技术领先打造用友U9王者之气
- N80 UCWEB 6.7 正式版下载,免签名安装。
- 收集一些比较好的JS脚本和网页经典代码
- 关于 [无效的 FORMATETC 结构] 的问题
- Service Unavailable
- windows上通过Xmanager连接Centos5.2的远程桌面
- VC下获取各个驱动器路径,分类及其获取其信息的资料整理