易截截图软件、单文件、免安装、纯绿色、仅160KB

在Linux操作系统下修改IP、DNS和路由配置


在Linux操作系统下修改IP、DNS和路由配置
ZDNet软件频道2007-10-06作者:赛迪网 | 赛迪网
本文关键词:路由 DNS IP Linux
 
ifconfig eth0 新IP
然后编辑/etc/sysconfig/network-scrIPts/ifcfg-eth0,修改IP
一、修改IP地址
[aeolus@db1 network-scrIPts]$ vi ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=219.136.241.211
NETMASK=255.255.255.128
GATEWAY=219.136.241.254
二、修改网关
vi /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=Aaron
GATEWAY=192.168.1.1
三、修改DNS
[aeolus@db1 etc]$ vi resolv.conf
nameserver 202.96.128.68
nameserver 219.136.241.206
四、重新启动网络配置
/etc/init.d/network restart
修改IP地址
即时生效:
# ifconfig eth0 192.168.0.20 netmask 255.255.255.0
启动生效:
修改/etc/sysconfig/network-scrIPts/ifcfg-eth0
修改default gateway
即时生效:
# route add default gw 192.168.0.254
启动生效:
修改/etc/sysconfig/network-scrIPts/ifcfg-eth0
修改DNS
修改/etc/resolv.conf
修改后可即时生效,启动同样有效
修改host name
即时生效:
# hostname fc2
启动生效:
修改/etc/sysconfig/network


相关文档:

Linux下nginx的安装问题

最近准备给公司的网站架构做下调整,安装部署新机器的时候遇到一些问题,nginx在安装的时候一直提示未找到openssl
./configure --prefix=/usr/local/nginx
 程序代码
./configure: error: the HTTP cache module requires md5 functions from OpenSSL library.  You can either disable the module by us ......

贪心安装64位linux的尴尬

administer@administer-laptop:~/tem/tt$ cat hello.asm
[section .data]
strHello db "Hello, world!",0Ah
STRLEN  equ $-strHello
[section .text]
global _start
_start: 
mov edx,STRLEN
mov ecx,strHello
mov ebx,1
mov eax,4
int  0x80
mov  ......

wmware linux 网卡问题

Device eth0 has different MAC address than expected
   前天在弄VMware的时候,在VMware上clone了一个linux,后来在clone的linux(RedHat Enterprise Linux 4)上不能上网了,激活eth0时老弹出 Device eth0 has different MAC address than expected ,我们只要编辑这个文件:/etc/sysconfig/network-scripts/ifcfg- ......

linux知识

学习Linux终端命令
linux目录架构
/   根目录
/bin    常用的命令 binary file 的目錄
/boot   存放系统启动时必须读取的档案,包括核心 (kernel) 在内
     /boot/grub/menu.lst   GRUB设置
     /boot/vmlinuz & ......

linux下svn命令大全

转载自
http://blog.csdn.net/lyd518/archive/2008/08/19/2797134.aspx
1、
将文件checkout到本地目录
svn checkout
path(path是服务器上的目录)
例如:svn checkout svn:
//
192.168
.
1.1
/
pro
/
domain
简写:svn co
2、
往版本库中添加新的文件
svn
add

file
例如:svn
add
test.php ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号