Linux设置静态IP
来源:互联网 发布:倩女幽魂手游 mac登陆 编辑:程序博客网 时间:2024/06/10 19:09
我的环境:CentOS 6.5
1. 登录
以root用户登录
2. 在终端中输入:vi /etc/sysconfig/network-scripts/ifcfg-eth0
(vi后面有个空格)
按Insert键进入编辑模式
ONBOOT=yes 开机自启动
BOOTPROTO=static 静态ip
IPADDR=192.168.154.128 要设置的IP地址
NETMASK=255.255.255.0 子网掩码
GATEWAY=192.168.1.4 网关
按ESC键回到命令模式
按“shift + :”,输入wq保存。
3. 重启网络服务
service network stop
service network start
4. ping测试
1 0
- Linux设置静态IP
- Linux静态IP设置
- Linux静态IP设置
- Linux静态IP设置
- Linux静态IP设置
- Linux静态IP设置
- Linux静态IP设置
- linux 设置静态IP
- Linux静态IP设置
- linux设置静态ip
- linux 静态ip 设置
- Linux静态IP设置
- Linux设置静态ip
- Linux静态iP设置
- Linux静态IP设置
- linux静态ip设置
- Linux静态IP设置
- Linux 设置静态IP
- JavaScript 控制(改变)canvas(画布)的大小
- 162.Set Matrix Zeroes-矩阵归零(中等题)
- SwipeRefreshLayout添加listview下拉冲突问题
- iOS逆向工程
- Cursor源码梳理
- Linux设置静态IP
- 如何安装 sass
- Intel Code Challenge Elimination Round (Div.1 + Div.2, combined)E. Research Rover (容斥Lucas)
- Timer和TimerTask详解
- 解决spark-shell执行官方sparkstreaming 报 only one sparkcontext maybe running in this jvm的错误
- I/O复用之epoll简介
- CircleView轻量级显示圆形,支持更多属性
- 【转载】互联网高级测试工程师至少具备的能力
- Access restriction:The type JPEGCodec is not accessible due to restriction on re