Ubuntu网络配置
2016-06-09 14:49
288 查看
配置 /etc/network/interfaces 文件
动态获取IP$sudo vim /etc/network/interfaces 添加如下内容: auto eth0 iface eth0 inet dhcp
重启网卡服务(两种方式)
//方式一: $sudo service networking restart
//方式二: $sudo /etc/init.d/networking restart
静态IP
$sudo vim /etc/network/interfaces 添加如下内容: auto eth0 iface eth0 inet static address 192.168.0.1 netmask 255.255.255.0 gateway 192.168.0.1 dns-nameservers 114.114.114.114 8.8.8.8
重启系统
$sudo reboot
查看DNS是否配置成功
$sudo cat /etc/resolv.conf
相关文章推荐
- Ubuntu 默认壁纸历代记
- Ubuntu Remix Cinnamon 20.04 评测:Ubuntu 与 Cinnamon 的完美融合
- android wifi 无线调试
- 关于Ubuntu 11.10启动提示waiting for the network configuration的问题
- 在 Ubuntu 桌面中使用文件和文件夹
- ubuntu下chrome无法同步问题解决
- Ubuntu Linux使用体验
- 使用 GNOME 优化工具自定义 Linux 桌面的 10 种方法
- 以Ubuntu 9.04为例 将工作环境迁移到 Linux
- VirtualBox虚拟机XP与宿主机Ubuntu互访共享文件夹
- 从USB安装Ubuntu Server 10.04.3 图文详解
- Ubuntu 15.04 正式版发布下载
- Linux-Ubuntu 10.04安装Cadence-ic610 方法总结图解
- Ubuntu 12.04和Windows 7双系统安装图解
- Ubuntu /home下中文目录如何修改成英文?
- 开机出现:grub rescue的修复方法
- Ubuntu连接Android真机调试
- 你应该选择 Ubuntu 还是 Fedora?
- 100 个最佳 Ubuntu 应用(中)
- 看看我的Ubuntu Linux截图