ubuntu修改ip获取方式(静态,动态)
2015-06-01 10:21
501 查看
1、直接修改系统配置文件 ubuntu的网络配置文件是:/etc/network/interfaces a、动态ip方式 auto eth0 iface eth0 inet dhcp 用下面的命令使网络设置生效: sudo /etc/init.d/networking restart b、静态ip方式 auto eth0 iface eth0 inet static address 192.168.1.22 gateway 192.168.1.1 netmask 255.255.255.0 #network 192.168.1.0 #broadcast 192.168.1.255 将上面的ip地址等信息换成你自己就可以了.用下面的命令使网络设置生效: sudo /etc/init.d/networking restart
相关文章推荐
- 初涉SQL Server性能问题(1/4):服务器概况
- IOS 中的三种弹框模式
- TestNG 入门教程
- 三层实战(C#)
- Android Fragment 真正的完全解析(上)
- Python Show-Me-the-Code 第 0020题 统计通话时长
- (二分,数学积分)icpc2015,D.Cutting Cheese
- IOS -- 获取WIFI信息API
- Linux 常用命令
- 数据类型后面加问号是什么意思?
- CSS3 overflow属性默认为visible,父元素高度为0,如果子元素有内容高度不为0也会显示,需将overflow设为hidden
- ssh注解学习笔记(一)
- iproute2_examples
- ubuntu上调过C语言画简单的函数曲线
- ant使用指南详细入门教程
- centos 终端 字体颜色
- document.onreadystatechange()来判断页面加载完
- 证书挂靠行规及经验
- vim快捷键
- WdatePicker时间控件的使用