linux下查看及修改ip
2009-08-13 14:22
369 查看
document.body.oncopy = function() {
if (window.clipboardData) {
setTimeout(function() {
var text = clipboardData.getData("text");
if (text && text.length>300) {
text = text + "/r/n/n本文来自CSDN博客,转载请标明出处:" + location.href;
clipboardData.setData("text", text);
}
}, 100);
}
}
function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));keyit.focus();}
. ifconfig (/sbin/ifconfig) (注:也可以使用netstat 命令)
Linux下查看IP地址的命令--ifconfig
ifconfig命令用于查看和更改网络接口的地址和参数
$ifconfig -a
lo0: flags=849 mtu 8232
inet 127.0.0.1 netmask ff000000
hme0: flags=863 mtu 1500
inet 211.101.149.11 netmask ffffff00 broadcast 211.101.149.255
ether 8:0:20:a7:4d:21
系统会显示网络接口的名称,接口的状态(up or down),
接口的IP地址和掩码等信息
更改网络接口的IP地址:
#ifconfig hme0 down
#ifconfig hme0 211.101.149.233 netmask 255.255.255.0 up
首先,使用down命令参数把网络接口hme0的服务暂时停止,然后再用ifconfig命令给接口分配新的IP地址和掩码,并启动网络接口服务
也可以通过改变文件/etc/hosts中的IP地址的值并重新启动系统来更改机器的IP地址。
/etc/hosts/:
211.101.149.11 sampdt
定义主机名在/etc/hostname.hme0及IP地址。
更改了网卡/增加了网卡,系统不能自动启动该接口服务,这时需要手动创建网口服务:
#ifconfig hme0 plumb
即可以为接口le0创建网口服务
相应地,用ifconfig带unplumb参数可以停止服务并关闭网络.
netconfig 用来设置IP地址
From : http://blog.csdn.net/croco1981/archive/2009/06/11/4259463.aspx
if (window.clipboardData) {
setTimeout(function() {
var text = clipboardData.getData("text");
if (text && text.length>300) {
text = text + "/r/n/n本文来自CSDN博客,转载请标明出处:" + location.href;
clipboardData.setData("text", text);
}
}, 100);
}
}
function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));keyit.focus();}
. ifconfig (/sbin/ifconfig) (注:也可以使用netstat 命令)
Linux下查看IP地址的命令--ifconfig
ifconfig命令用于查看和更改网络接口的地址和参数
$ifconfig -a
lo0: flags=849 mtu 8232
inet 127.0.0.1 netmask ff000000
hme0: flags=863 mtu 1500
inet 211.101.149.11 netmask ffffff00 broadcast 211.101.149.255
ether 8:0:20:a7:4d:21
系统会显示网络接口的名称,接口的状态(up or down),
接口的IP地址和掩码等信息
更改网络接口的IP地址:
#ifconfig hme0 down
#ifconfig hme0 211.101.149.233 netmask 255.255.255.0 up
首先,使用down命令参数把网络接口hme0的服务暂时停止,然后再用ifconfig命令给接口分配新的IP地址和掩码,并启动网络接口服务
也可以通过改变文件/etc/hosts中的IP地址的值并重新启动系统来更改机器的IP地址。
/etc/hosts/:
211.101.149.11 sampdt
定义主机名在/etc/hostname.hme0及IP地址。
更改了网卡/增加了网卡,系统不能自动启动该接口服务,这时需要手动创建网口服务:
#ifconfig hme0 plumb
即可以为接口le0创建网口服务
相应地,用ifconfig带unplumb参数可以停止服务并关闭网络.
netconfig 用来设置IP地址
From : http://blog.csdn.net/croco1981/archive/2009/06/11/4259463.aspx
相关文章推荐
- linux下查看ip地址和网关并修改ip地址
- Linux修改固定IP和查看网关命令
- linux下查看及修改ip
- 修改Linux中的主机名、如何查看Linux IP
- 修改Linux中的主机名、如何查看Linux IP
- Linux查看并修改主机名称、IP等信息
- linux系统下ip,网关-设置,修改,查看常用命令
- 转:linux下ip修改与域名解析查看等
- 修改Linux中的主机名、如何查看Linux IP
- linux 查看、修改ip
- 修改Linux中的主机名、如何查看Linux IP
- Linux系统下查看和修改IP的方法
- Linux修改IP和DNS
- linux修改系统时间和linux查看时区、修改时区的方法
- Linux下使用date命令查看和修改时间
- Linux系统下查看某文件修改的时间戳 查看某文件何时被修改过
- Linux修改IP netmask dateway
- CentOS 查看IP,端口 修改IP,打开端口生效
- linux下修改tomcat、apache的端口号并查看版本
- linux查看当前ssh登陆的ip