ubuntu 静态ip设置
来源:互联网 发布:淘宝超级运动会优惠 编辑:程序博客网 时间:2024/05/16 07:36
两种方法:
1.直接命令行设置,但是重启后失效
设置IP 和 子网掩码sudo ifconfig eth1 211.87.235.204 netmask 255.255.255.0设置网关sudo route add default gw 211.87.235.1
2.在 debian 默认配置文件里修改
/etc/network/interfaces设置 ip 掩码 网关#开机自动激活 eth0auto eth0#iface eth0 inet dhcpiface eth0 inet static address 211.87.235.204 netmask 255.255.255.0 gateway 211.87.235.1/etc/resolv.conf设置 DNS 服务器 (网关地址)# Generated by NetworkManagernameserver 211.87.235.1nameserver 202.194.15.12最后 reboot 或者 /etc/init.d/networking restart
3.实验室一般网络设置都是 用dhcp服务 动态设置 ip
#开机自动激活 eth0auto eth0#配置eth0 为dhcp 自动获取iface eth0 inet dhcp# 开机自动激lo接口auto lo# 配置lo接口为环回口iface lo inet loopback这里写代码片
0 0
- ubuntu设置静态IP
- Ubuntu设置静态IP
- Ubuntu设置静态 IP
- ubuntu ip静态设置
- Ubuntu设置静态IP
- ubuntu 设置静态IP
- Ubuntu静态IP设置
- ubuntu 设置静态ip
- ubuntu设置静态ip
- ubuntu设置静态ip
- Ubuntu设置静态 IP
- ubuntu设置静态ip
- ubuntu设置静态IP
- ubuntu 设置静态ip
- Ubuntu设置静态IP
- ubuntu静态IP设置
- 设置ubuntu静态IP
- ubuntu 设置静态IP
- 64位Ubuntu14.04下配置PBC环境
- 笔记
- mysql-5.7.16.zip免安装版教程及忘记密码root用户登录
- c++中的string以及set容器
- 矩阵快速幂模板
- ubuntu 静态ip设置
- (复习)windows sdk 画一个四边形、设置虚线边框、背景模式、以及填充
- fileUpload
- Threading in C#
- debian 常见问题
- 进程与线程
- 【51nod】1011 最大公约数GCD - 辗转相除法
- Appium在IOS的应用
- 访问权限控制