`
hellozzy
  • 浏览: 5729 次
  • 性别: Icon_minigender_1
  • 来自: 长沙
社区版块
存档分类
最新评论

ubuntu 网络设置 from dhcp to static

阅读更多

os:ubuntu 12.04

configuration files:/etc/network/interfaces

content:

# ,,,,,,,,,,,,,,,,,,

#....................

#....................

auto lo

iface lo inet loopback

 

# The primary network interface

auto eth0

iface eth0 inet static

address 192.168.1.18

netmask 255.255.255.0

gateway 192.168.1.1

dns-nameservers 8.8.8.8

# 加载预设的防火墙策略

 

pre-up iptables-restore < /etc/iptables.up.rules

 

生效:sudo /etc/init.d/networking restart

 

 

 

分享到:
评论

相关推荐

    Ubuntu静态地址设置

    本文详细介绍了如何在Ubuntu系统中设置静态IP地址的过程,包括虚拟机网络适配器的配置、Ubuntu系统内的网络配置文件修改以及重启网络服务等内容。通过这种方式配置的静态IP地址可以确保网络连接的稳定性,适用于多种...

    Ubuntu 设置静态Ip(NAT)

    # We must specify dns-nameserver here in order to get internet access from host dns-nameservers 192.168.91.2 auto eth0 ``` - 其中,`address`为指定的静态IP地址,可以从前面获取的可用IP范围内选择;`...

    Ubuntu The Complete Reference

    - **Networking Services**: Configuration of networking services such as DHCP, DNS, and static IP addresses. **Chapter 6 - Software Management** - **Package Management**: Introduction to package ...

    Bochs - The cross platform IA-32 (x86) emulator

    - Fixes for emulated DHCP in eth_vnet (patch from @SF tracker) - Added support for VGA graphics mode with 400 lines (partial fix for SF bug #2948724) - NE2K: Fixed "send buffer" command issue on ...

    linux.chm文档

    iconv -f fromEncoding -t toEncoding inputFile &gt; outputFile creates a new from the given input file by assuming it is encoded in fromEncoding and converting it to toEncoding. find . -maxdepth 1 -name ...

    uboott移植实验手册及技术文档

    1、Ubuntu 7.0.4发行版 2、u-boot-1.3.1 3、FS2410平台 4、交叉编译器 arm-softfloat-linux-gnu-gcc-3.4.5 【实验步骤】 一、建立自己的平台类型 (1)解压文件 #tar jxvf u-boot-1.3.1.tar.bz2 (2)进入 U...

Global site tag (gtag.js) - Google Analytics