2-3:ifconfig只能查看到网卡的IP/广播地址/掩码/MAC地址,但是无法查看到网关地址和DNS地址;禁用/启用网卡ifdown[网卡设备名]//禁用网卡;ifup[网卡设备名]//启用网卡;netstat[选项]①-t:列出TCP协议端口;②-u:列出UDP协议端口;③-n:使用IP地址和端口号,而不使用域名和..
分类:
系统相关 时间:
2016-08-30 23:01:52
阅读次数:
230
1、网络查询和配置 查询网卡和配置信息:ifconfig 查询指定网卡信息:ifconfig eth1 配置网卡ip信息:vi /etc/sysconfig/network-scripts/ifcfg-eth0 (insert:进入编辑模式,esc,:wq保存退出) 关闭网卡,开启网卡:ifdown ...
分类:
系统相关 时间:
2016-08-19 00:58:52
阅读次数:
257
ls -d 只显示目录 ls -ld /* 显示根下所有的目录 网卡文件:/etc/sysconfig/network-scripts/ifcfg-eth0 /etc/init.d/network restart 确保ONBOOT=yes Ifdown eth0 && idup eth0 查看:if ...
分类:
其他好文 时间:
2016-07-11 14:09:15
阅读次数:
128
一、简单知识1.命令积累:ifup eth0 //启动网卡ifdown etho //关闭网卡route -n //查看网关route del default gw 10.0.0.244 //删除网关,gw 代表网关 add代表添加网关 2.linux中为什么配置文件都需要重启生效?防止配置出错把所 ...
分类:
其他好文 时间:
2016-06-29 06:32:40
阅读次数:
298
1. 找到文件并作如下修改:vim /etc/network/interfaces修改如下部分:# interfaces(5) file used by ifup(8) and ifdown(8)auto loiface lo inet loopbackauto eth0iface eth0 ine ...
分类:
系统相关 时间:
2016-06-13 19:02:05
阅读次数:
635
局域网一套物理网络里有两个 ip 段,单网卡设置多 ip 可实现同时访问两个网段。$ cat /etc/network/interfaces# interfaces(5) file used by ifup(8) and ifdown(8)auto eth0iface eth0 inet stati... ...
分类:
系统相关 时间:
2016-05-13 11:07:10
阅读次数:
219
ifup、ifdown:如果在 /etc/sysconfig/network-scripts里面的ifcfg-ethx等文件存在的话,就可以通过ifdown或ifup来实现网卡的开和关,例如:ifup eth0。 ifconfig {interface} up、ifconfig {interface ...
分类:
系统相关 时间:
2016-04-08 21:26:28
阅读次数:
520
在Linux中,以太网接口被命令为:eth0,eth1等,0,1代表网卡编号通过lspci命令可以查看网上硬件信息(如果是usb接口,则可能要用lsusb)命令ifconfig命令用来查看接口信息ifconfig-a查看所有接口ifconfigeth0查看特定接口在CentOS中可以用命令ifup,ifdown用来启用,禁用一个接口在ub..
分类:
其他好文 时间:
2016-03-28 00:31:50
阅读次数:
339
arp:管理系统中的ARP高速缓存arpwatch:监听ARP记录arping:发送ARP请求到一个相邻主机finger:查找并显示用户信息ifconfig:设置网络接口iwconfig:设置无线网卡hostname:显示主机名ifup:激活设备ifdown:禁用网络设备mii-tool:调整网卡模式route:设置路由表netstat:查看网络连接pi..
分类:
系统相关 时间:
2016-03-27 00:07:35
阅读次数:
188
ifconfig ifdown 关闭网卡 ifup lo 打开 lo本地环回网卡 很常用的命令 netstat netstat -tuln netstat -rn netstat -an nslookup: 翻译域名对应哪个ip nslookup www.imooc.com ping www.bai
分类:
系统相关 时间:
2016-02-21 14:22:07
阅读次数:
229