六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 75|回复: 0

Ubuntu 10.04 网络配置

[复制链接]

升级  49.95%

649

主题

649

主题

649

主题

探花

Rank: 6Rank: 6

积分
1999
 楼主| 发表于 2013-1-15 13:37:49 | 显示全部楼层 |阅读模式
sudo vi /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 static
   address 192.168.3.222 #ubuntu ip 地址
   netmask 255.255.255.0 #子网掩码
   # network 192.168.3.0  #可不用配置
   # broadcast 192.168.3.255 #可不用配置
   gateway 192.168.3.1   #网关
   # dns-* options are implemented by the resolvconf package, if installed
   #dns-nameservers 8.8.8.8 # DNS,多个用半角空格隔开
# 二、配置DNS
$ sudo vi /etc/resolv.conf
search localdomain
nameserver 202.106.116.1
nameserver 8.8.8.8
nameserver 8.8.4.4
nameserver 208.67.220.220
nameserver 208.67.222.222
nameserver 202.102.192.68
Ubuntu Linux使用文件"/etc/resolv.conf" 文件配置DNS服务器的地址,可通过nameserver 配置项设置DNS服务器的IP地址,最多可以使用3个DNS服务器。
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表