Linux CentOS5.5 的 IP设置
2012-07-30 21:53
183 查看
1.IP设置
vim /etc/sysconfig/network-scripts/ifcfg-eth0
2.DNS设置
vim /etc/resolv.conf
3.增加一个虚拟IP
但是重启网络服务后.就会消失
service network restart
4. 删除一个虚拟ip
5.查看IP
vim /etc/sysconfig/network-scripts/ifcfg-eth0
设置静态ip DEVICE=eth0 BOOTPROTO=static IPADDR=192.168.1.102 NETMASK=255.255.255.0 GATEWAY=192.168.1.1 HWADDR=00:0C..... ONBOOT=yes TYPE=Ethernet 动态IP DEVICE=eth0 BOOTPROTO=dhcp HWADDR=00:0C... ONBOOT=yes
2.DNS设置
vim /etc/resolv.conf
配置DNS nameserver 202.96.128.166
3.增加一个虚拟IP
ifconfig eth0:1 192.168.1.134 netmask 255.255.255.0 up
但是重启网络服务后.就会消失
service network restart
4. 删除一个虚拟ip
ip addr del 192.168.1.134 dev eth0
5.查看IP
[root@xuwu /]# ifconfig
相关文章推荐
- CentOS Linux 5.5 创建用户出错
- 从 CentOS 5.5 中精简出属于自己的专属Linux (一)
- vbox内部linux :centos5.5与外部ping通(相互),而且域名访问
- 在vmware workstation7上安装centos5.5 linux
- linux系统下配置网桥(CentOS 5.5)
- Linux(centos5.5)中shutdown命令出错:bash: shutdown: command not found
- 详细linux CentOS 5.5 安装教程
- 关于使用VNC帮助windows远程桌面登录LINUX的方法(CentOS5.5已验证)
- centos 5.5 webmin轻松管理Linux
- centos 5.5 vnc server配置方法_Linux_vnc viewer
- centos 6.5下装mysql 5.5报linux2.6.x86_64 conflicts with file 解决方法
- 最新Linux(CentOS5.5)搭建GFS系统--iSCSI+GFS实现网络存储
- CentOS5.5 Linux安装中文包和中文输入法
- centos5.5 (linux)安装配置笔记
- Linux(Centos5.5) redis 安装及redisphp拓展安装应用
- 搭建Linux(centos5.5)+Apache2+Mysql5+Php5+zabbix1.8.5系统环境实现网络状况监控
- Centos5.5 安装 QQ for linux
- Linux(CentOS 5.5) Redis 安装及RedisPHP拓展安装应用
- PHP5.3.3源代码编译安装(Linux CentOS 5.5)