ubuntu server 14.04设置接口地址
2016-11-20 00:42
225 查看
配置文件/etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet dhcp
查看手册man 5 interfaces
摘要
INTERFACES(5) File formats INTERFACES(5)
NAME
/etc/network/interfaces - network interface configuration for ifup and ifdown
DESCRIPTION
/etc/network/interfaces contains network interface configuration information for the
ifup(8) and ifdown(8) commands. This is where you configure how your system is conâ€
nected to the network.
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet dhcp
查看手册man 5 interfaces
摘要
INTERFACES(5) File formats INTERFACES(5)
NAME
/etc/network/interfaces - network interface configuration for ifup and ifdown
DESCRIPTION
/etc/network/interfaces contains network interface configuration information for the
ifup(8) and ifdown(8) commands. This is where you configure how your system is conâ€
nected to the network.
The file consists of zero or more "iface", "mapping", "auto", "allow-" and "source" stanzas. Here is an example. auto eth0 allow-hotplug eth1 source interfaces.d/machine-dependent source-directory interfaces.d mapping eth0 script /usr/local/sbin/map-scheme map HOME eth0-home map WORK eth0-work iface eth0-home inet static address 192.168.1.1 netmask 255.255.255.0 up flush-mail iface eth0-work inet dhcp iface eth1 inet dhcp
相关文章推荐
- Ubuntu server 14.04 启用root用户并设置密码
- ubuntu server 14.04设置网桥
- Ubuntu server 14.04设置图形化界面及相关配置
- VMware下安装虚拟机Ubuntu14.04 Server设置桥接方式
- Ubuntu server 14.04 双网卡上网设置
- ubuntu server 14.04 LTS 设置root密码-陈科肇
- 如何在Ubuntu 14.04 LTS之上设置Nginx Server Blocks(即虚拟主机)
- Ubuntu 14.04 server配置使用无线连接静态设置IP
- Ubuntu 14.04 server 设置mysql允许远程访问
- ubuntu 14.04 server 静态IP设置
- Ubuntu14.04-X64-Server版时区,时间重新设置-tzselect的使用
- VMware下设置IP和MAC地址详细(用于Ubuntu下上网)
- ubuntu server 设置静态ip
- 【转】Ubuntu DHCP server 设置笔记
- ubuntu server 11.10 samba 服务器设置
- Ubuntu服务器上SSH Server 的安装和设置
- Ubuntu 服务器上 SSH Server 的安装和设置
- ubuntu server 时区设置
- Ubuntu配置IP与SSH Server 的安装和设置
- Ubuntu Server 11.04 设置分辨率