Ubuntu查看及修改IP地址
2010-07-15 15:26
183 查看
在Ubuntu下查看IP的命令为ifconfig
设置固定IP地址
sudo vim /etc/network/interfaces
修改iface eth0 inet dhcp 为 iface eth0 inet static
并在这句后添加
address 192.168.1.1
netmask 255.255.255.0
gateway 192.168.1.254
dns-nameservers 8.8.8.8
保存退出后使用如下命令重启网络服务
/etc/init.d/networking restart
设置固定IP地址
sudo vim /etc/network/interfaces
修改iface eth0 inet dhcp 为 iface eth0 inet static
并在这句后添加
address 192.168.1.1
netmask 255.255.255.0
gateway 192.168.1.254
dns-nameservers 8.8.8.8
保存退出后使用如下命令重启网络服务
/etc/init.d/networking restart
相关文章推荐
- Ubuntu查看及修改IP地址
- ubuntu中如何查看同一局域网中的ip以及ip的修改固定
- linux(Ubuntu/Centos) iproute 路由IP地址等命令集合,查看端口链接
- Ubuntu查看当前IP地址
- Ubuntu配置和修改IP地址
- linux -- Ubuntu查看修改mysql的登录名和密码、安装phpmyadmin
- 【转载】ubuntu临时修改ip地址
- Ubuntu的IP地址设置和查看
- Redhat如何查看和修改IP地址
- ubuntu修改IP地址和网关的方法
- ubuntu修改IP地址和网关的方法
- ubuntu 查看文件编码并进行批量编码修改
- 【转】ubuntu修改IP地址和网关的方法
- Ubuntu配置和修改IP地址
- Redhat如何查看和修改IP地址
- Redhat如何查看和修改IP地址
- ubuntu 修改ip地址
- Ubuntu配置和修改IP地址
- Ubuntu配置和修改IP地址
- Ubuntu查看当前IP地址及其它网络命令