linux中的ifconfig
来源:互联网 发布:淘宝卖家如何备注订单 编辑:程序博客网 时间:2024/06/08 02:38
linux下网卡命名规律:eth0,eth1······,代表第一块网卡,第二块网卡······
lo为环回接口,它的IP地址固定为127.0.0.1,代表机器本身。
在Linux机器中查看IP地址:输入ifconfig即可,一般如图所示
网卡信息:第一行:连接类型:Ethernet(以太网) 硬件mac地址(HWaddr)
第二行:IP,子网,掩码
第四行:UP(开启) RUNNING(网卡网线被接上)MUTICAST(支持组播)MTU:1500(最大传输单元):1500字节
其余是发送与接收数据情况统计。
会遇到这种情况,ifconfig,只有lo,不显示eth0,解决方法
1.进入/etc/sysconfig/network-scripts目录,也可能是/etc/sysconfig/network目录
2.输入命令:ifconfig -a,显示eth0和lo
3.输入命令:ifconfig eth0 up ,启用网卡
再次输入ifconfig即可看到eth0.
配置网卡的命令:
1.ifconfig eth0 192.168.70.204 netmask 255.255.255.0 //在eth0上配置IP:192.168.70.204,子网掩码:255.255.255.0
2.禁用网卡:ifconfig eth0 down
3.启动网卡:ifconfig eth0 up
- linux中的ifconfig
- Linux学习篇之---centos7中的ifconfig
- linux ifconfig
- Linux ifconfig
- linux ifconfig
- Linux -- ifconfig
- linux crontab调用脚本中的ifconfig命令返回为空
- Linux下找不到IFCONFIG命令---ifconfig
- Linux:Ifconfig 命令详解
- Linux 网络配置ifconfig
- linux ifconfig配置
- linux ifconfig 动态方法
- linux ifconfig 命令详解
- linux ifconfig 命令详解
- ifconfig源码-Linux
- Linux ifconfig eth0
- LINUX Ifconfig没网卡
- Linux命令:ifconfig
- IntelliJ IDEA 里面 安装 SVN
- 软件测试资料分享,经过认真整理的一套完整教学体系
- 2 tomcat服务器学习与使用(一)
- 常见的几种矩阵分解方式
- 给UITabbarcontroller直接add子viewcontroller
- linux中的ifconfig
- 关于Integer的一个大坑
- 我的常用代码段
- Java静态方法问题,也许无解,求高人看看有没有思路
- SQL各种连接查询详解(左连接、右连接..)
- andoird---loadermanager和contentprovider结合,加载数据
- JavaWeb实例:记录在线人员信息,管理员可以踢人
- MFC避免绘图时闪烁(OnEraseBkgnd)
- js 二维码生成