Ubuntu网络配置
来源:互联网 发布:matlab矩阵相加 编辑:程序博客网 时间:2024/06/09 16:25
配置 /etc/network/interfaces 文件
- 动态获取IP
$sudo vim /etc/network/interfaces添加如下内容:auto eth0iface eth0 inet dhcp
- 重启网卡服务(两种方式)
//方式一:$sudo service networking restart
//方式二:$sudo /etc/init.d/networking restart
- 静态IP
$sudo vim /etc/network/interfaces添加如下内容:auto eth0iface eth0 inet staticaddress 192.168.0.1netmask 255.255.255.0gateway 192.168.0.1dns-nameservers 114.114.114.114 8.8.8.8
- 重启系统
$sudo reboot
- 查看DNS是否配置成功
$sudo cat /etc/resolv.conf
0 0
- ubuntu 网络配置
- ubuntu 网络配置
- Ubuntu配置网络
- Ubuntu简单网络配置
- ubuntu linux网络配置
- ubuntu-网络配置
- Ubuntu Server 网络配置
- Ubuntu网络配置
- ubuntu配置网络
- Ubuntu - 修改网络配置
- Ubuntu有线网络配置
- ubuntu: 配置网络方法
- ubuntu网络配置
- Ubuntu网络配置命令
- Ubuntu 10.04 网络配置
- Ubuntu网络配置
- ubuntu网络连接配置
- ubuntu网络配置
- CodeForces 28c Bath Queue(概率dp)
- 柴俊理金:加息无望美指回跌,黄金原油不失良机
- iOS AutoLayout: UIView 关联 Xib 不设置 File's Owner
- uva1025 a spy in the metro
- Linux使用总结
- Ubuntu网络配置
- Servlet学习笔记
- BZOJ 1068: [SCOI2007]压缩 区间DP
- root运行chrome
- HDU-2047 阿牛的EOF牛肉串
- 一念永恒 > 第八十四章 难以置信的爆发
- Bzoj3786星系探索:splay维护dfs序
- Floyd判圈算法(龟兔赛跑算法)
- Java学习之JDBC