debian网络ip设置
来源:互联网 发布:辛巴软件 编辑:程序博客网 时间:2024/06/05 22:41
编辑/etc/network/interfaces
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
auto eth0
iface eth0 inet static
address 192.168.1.36
netmask 255.255.255.0
gateway 192.168.1.10 #公司的网关是192.168.1.10,一般是192.168.1.1
保存编辑结果,并重启网络服务
/etc/init.d/networking restart
已经可以用新的静态IP访问internet了。
================================================
1. IP地址设置
debian:~#vi /etc/network/interfaces
// 动态DHCP获得
# 启动系统激活设备.
# Loop回环地址.
auto lo
iface lo inet loopback
# 启动系统激活设备.
# 网卡eth0设置为DHCP类型.
auto eth0
iface eth0 inet dhcp
// 静态Static获得
# 启动系统激活设备.
# Loop回环地址.
auto lo
iface lo inet loopback
# 启动系统激活设备.
# 网卡eth0设置为Static类型.
auto eth0
iface eth0 inet static
# 指定IP地址.子网掩码.广播.网关.
address x.x.x.x
netmask x.x.x.x
gateway x.x.x.x
2. DNS地址设置
debian:~#vi /etc/resolv.conf
// 必须设置.否则无法访问任何URL
nameserver x.x.x.x
nameserver x.x.x.x
3. 配置完了之后重新启动网络
debian:~#/etc/init.d/networking restart
- debian网络ip设置
- Debian的IP设置
- Debian Linux IP设置
- debian 设置静态IP
- debian 设置静态IP
- 设置debian静态ip
- Debian的网络设置
- debian网络设置
- Debian下设置网络
- debian linux静态IP设置。
- Debian 8.5设置静态IP
- [转载]Debian Linux 网络设置
- Ubuntu/Debian系统网络设置
- Debian linux配置网络IP地址
- linux debian ubuntu 网卡ip地址设置
- linux(debian)固定IP的设置
- Debian设置IP地址、网关、DNS
- Debian设置IP地址、网关、DNS
- ul-li 点击改变背景色
- GNU Coreutils
- 深度优先搜索,DFS,UVA572,连通分支数
- 【swift3实战】2048 教程(二)
- C#委托和事件详解
- debian网络ip设置
- Windows下Python机器学习环境搭建(pip numpy scipy matplotlib scikit-learn nltk)
- C for ios --- 标识符与注释
- ubuntu切换默认Python版本
- sql日期
- POJ 2409 Let it Bead (Polya)
- TensorFlow入门
- JAVA 获取某个时间段内所有的日期
- Android屏幕适配全攻略(最权威的官方适配指导)