Ubuntu 12.04 IP 配置
来源:互联网 发布:300533冰川网络 编辑:程序博客网 时间:2024/05/29 06:55
1、配置静态IP地址:
# vim /etc/network/interfaces
原内容有如下4行:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
以上表示默认使用DHCP分配IP,修改为如下:
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
#iface eth0 inet dhcp
iface eth0 inet static
address 192.168.80.129
netmask 255.255.255.0
gateway 192.168.80.2
保存退出。
注意:只需要设置address(IP地址)、netmask(子网掩码)、gateway(网关)这三项就OK,network和broadcast这两项参数是可以不写的。
0 0
- Ubuntu 12.04 配置IP
- Ubuntu 12.04 IP 配置
- ubuntu 12.04配置静态ip
- Ubuntu 12.04 网络配置 Ubuntu静态IP Ubuntu上网配置
- Ubuntu Server 12.04 静态IP简洁配置
- ubuntu-server-12.04.2配置IP、DNS
- Ubuntu Server 12.04 静态IP简洁配置
- Ubuntu Server 12.04 静态IP简洁配置
- ubuntu server 12.04配置静态IP地址
- Ubuntu Server 12.04 静态IP简洁配置
- Ubuntu Server 12.04静态IP简洁配置
- Ubuntu Server 12.04 静态IP简洁配置
- ubuntu配置IP
- ubuntu配置IP & DNS
- ubuntu命令配置IP
- Ubuntu Server 配置IP
- ubuntu配置静态IP
- linux ubuntu IP配置
- hdu 2008 数值统计
- 金额验证,小数点和数字可以输入,其它不能操作
- 学会如何调试程序bug
- Hibernate 一对一主键双向关联
- 构造函数的调用时机/次数
- Ubuntu 12.04 IP 配置
- 协程和异步
- 2017年该到哪里买房?只需看这个指标!(GDP含税量、人均国税)
- 20170208大量Http请求close_wait的问题
- 国密SKF接口函数介绍之四:文件管理函数
- 关于Java协程和Kilim的一些概念
- SQL 语句优化
- spring-session实现分布式session共享及自定义sessionid
- Universal-Image-Loader,android-Volley,Picasso、Fresco和Glide五大Android开源组件加载网络图片的优缺点比较