Debian 7.8 下配置网络的方法
来源:互联网 发布:iphone电池校准软件 编辑:程序博客网 时间:2024/05/22 00:12
系统:Debian 7.8
Debian 7.8设置网络的文件为interfaces
# cat /etc/network/interfaces
在这里我设置的是静态IP以及静态路由
# This file describes the network interfaces available on your system# and how to activate them. For more information, see interfaces(5).# The loopback network interfaceauto loiface lo inet loopback##auto eth0iface eth0 inet staticaddress 10.255.**.**#gateway 10.255.**.*netmask 255.255.255.***up route add -net 10.255.0.0 netmask 255.255.0.0 gw 10.255.**.* dev eth0auto eth1iface eth1 inet staticaddress 10.6.*.**gateway 10.6.*.**netmask 255.255.255.***up route add -net 10.0.0.0 netmask 255.0.0.0 gw 10.6.*.** dev eth1
重启网络服务的命令
/etc/init.d/networking restart
可以通过以下命令查看验证
# ip a# route
如果是用DHCP自动获取,请在配置文件里添加
iface eth0 inet dhcp
设置DNS的方法
echo "nameserver ***.***.***.**" >> /etc/resolv.conf
阅读全文
0 0
- Debian 7.8 下配置网络的方法
- Debian下配置网络的方法
- Debian命令行下网络参数设置的方法
- Debian命令行下网络参数设置的方法
- debian 下的 apache2 + ssl 配置方法
- debian静态地址网络配置方法
- 配置Debian下的SSH
- debian下xmanager的配置
- debian下的QT4配置
- Debian Linux下JDK配置方法
- Debian 有线网络的DHCP配置
- qemu安装debian后的网络配置
- 无软驱网络安装Debian的方法
- Debian的纯网络安装方法
- debian网络配置
- debian网络配置
- debian 网络配置
- Debian网络配置
- 天池大赛o2o优惠券第一名代码笔记之_extral_feature(2)
- mysql 与 mongo 数据库的优缺点
- 关于“servlet中有内容,但jsp中无内容”的思考
- 订单页面
- Linux 解决rpm包重复安装、安装失败
- Debian 7.8 下配置网络的方法
- 安装MySQL+修改密码+允许远程
- HDOJ 1170 Balloon Comes!
- 南阳oj 街道最短路径问题
- Viewpager轮播 网络获取图片
- Settings provider system和global表格数据访问
- Ubuntu16.04 下如何安装搜狗拼音输入法【亲测有效】
- JSON格式化工具
- 购物车心得