Ubuntu 网络配置文件生效
2014-10-14 11:00
176 查看
以前一直用Redhat, 今天体验了下ubuntu, 刚配置网络就遇到了问题
修改文件
/etc/network/interfaces
auto eth0
iface eth0 inet
static
address 192.168.1.5
netmask 255.255.255.0
gateway 192.168.1.1
配置完成后执行
service networking restart
但没有生效,后来查资料发现需要用
ifdown
ifup
然后就生效了,看来很多地方和Redhat不一样。
另外, 如果重启系统,配置也是可以生效的。
修改文件
/etc/network/interfaces
auto eth0
iface eth0 inet
static
address 192.168.1.5
netmask 255.255.255.0
gateway 192.168.1.1
配置完成后执行
service networking restart
但没有生效,后来查资料发现需要用
ifdown
ifup
然后就生效了,看来很多地方和Redhat不一样。
另外, 如果重启系统,配置也是可以生效的。
相关文章推荐
- Ubuntu配置网络文件共享服务器NFS
- Ubuntu通过修改配置文件来进行网络配置
- Ubuntu通过修改配置文件进行网络配置
- Ubuntu网络接口配置文件:nano/etc/network/interfaces 以及 Ifconfig只显示一个lo
- ubuntu网络配置文件
- Ubuntu通过修改配置文件进行网络配置
- DM3730开发板使用uboot通过网络下载内核和文件系统 ubuntu下配置 TFTP
- redhat和Ubuntu网络配置文件
- redhat和Ubuntu网络配置文件
- Ubuntu通过修改配置文件进行网络配置
- linux和Ubuntu的网络配置文件
- ubuntu16.04下docker修改配置文件不生效解决办法
- 【转】Ubuntu通过修改配置文件进行网络配置
- Ubuntu通过修改配置文件进行网络配置
- Ubuntu通过修改配置文件进行网络配置
- ubuntu 网络文件系统(NFS) 安装 配置
- Ubuntu通过修改配置文件进行网络配置
- 【Ubuntu 16】网络配置文件
- Ubuntu通过修改配置文件进行网络配置
- ubuntu网络配置及文件