ubuntu 8.04安装网络配置
2008-04-28 10:35
369 查看
在安装ubuntu 8.04安装时忽略网卡的配置,安装成功后再通过命令行下进行设置的
配置ip地址,网关等的文件为/etc/network/interfaces,通过vi或nano打开修改,没有便添加新项
配置dns的文件为 /etc/resolv.conf
Ubuntu 网卡设置,ip,mask,gateway,dns
sudo vi /etc/network/interfaces
//这个应该是决定是否启用这个端口
auto eth0
//静态设置IP
iface eth0 inet static
address 192.168.0.250
netmask 255.255.255.0
#broadcast 192.168.0.255
gateway 192.168.0.1
//通过dhcp动态设置
iface eth0 inet dhcp
//设置DNS服务器
sudo vi /etc/resolv.conf //如果文件名不存在就新建该文件名,增加dns项
nameserver 202.98.0.68
nameserver 202.98.5.68
//修改网络设置后,重启,启用新设置
sudo /etc/init.d/networking restart
配置ip地址,网关等的文件为/etc/network/interfaces,通过vi或nano打开修改,没有便添加新项
配置dns的文件为 /etc/resolv.conf
Ubuntu 网卡设置,ip,mask,gateway,dns
sudo vi /etc/network/interfaces
//这个应该是决定是否启用这个端口
auto eth0
//静态设置IP
iface eth0 inet static
address 192.168.0.250
netmask 255.255.255.0
#broadcast 192.168.0.255
gateway 192.168.0.1
//通过dhcp动态设置
iface eth0 inet dhcp
//设置DNS服务器
sudo vi /etc/resolv.conf //如果文件名不存在就新建该文件名,增加dns项
nameserver 202.98.0.68
nameserver 202.98.5.68
//修改网络设置后,重启,启用新设置
sudo /etc/init.d/networking restart
相关文章推荐
- 在VirtualBox中安装Ubuntu 8.04 Server(3,配置本机网络)
- Ubuntu 10.10 图形安装教程、网络设置、软件源、基本配置(转)
- Oracle VirtualBox 安装Ubuntu16.04 及网络配置(1)
- Ubuntu 16.04.1 Server 64bit 系统安装后的网络配置(Vmware Workstation 12.5 & Windows 10 X64 环境)
- ubuntu13.04 有线网卡驱动安装 无法上网 网络配置
- ubuntu 下网络配置 和 ssh的安装
- ubuntu系统下smokping网络监控工具安装配置详解
- Ubuntu 8.04下安装配置Tomcat5.5经验分享
- ubuntu下使用qemu安装虚拟机并配置桥接网络
- 【Ubuntu14.04安装】网络初始化配置
- Ubuntu 8.04 安装后配置全记录
- 使用Hyper-V安装Ubuntu16.04 Server 网络配置
- 双系统网络配置(Win7+Ubuntu16.04LTS)--驱动安装及其它
- ubuntu安装方法,网络的配置,源的更新
- 服务器DELL-R720安装Ubuntu14.04系统与配置网络
- ubuntu下使用qemu安装虚拟机并配置桥接网络
- ubuntu下使用qemu安装虚拟机并配置桥接网络
- VirtualBox Ubuntu server 安装Openstack 网络配置
- Ubuntu安装的flask上做一个简单的网络配置