Linux 设置 ip(动态、静态)
2012-11-29 17:20
302 查看
设置动态IP:
1、sudo gedit /etc/network/interfaces
2、文件修改如下
auto eth0
iface eth0 inet dhcp
3、sudo /etc/init.d/networking restart
设置动态IP:
1、同上
2、
auto eth0
iface eth0 inet static
address 192.168.1.204
netmask 255.255.255.0
gateway 192.168.1.254
3、同上
1、sudo gedit /etc/network/interfaces
2、文件修改如下
auto eth0
iface eth0 inet dhcp
3、sudo /etc/init.d/networking restart
设置动态IP:
1、同上
2、
auto eth0
iface eth0 inet static
address 192.168.1.204
netmask 255.255.255.0
gateway 192.168.1.254
3、同上
相关文章推荐
- linux 静态与动态ip设置
- Linux下设置静态IP和获取动态IP的方法
- Linux 静态IP动态IP设置
- Linux下设置静态IP和获取动态IP的方法
- Linux下动态IP和静态IP的设置方法
- 怎么将linux的动态IP设置成静态IP
- Linux下设置静态IP和获取动态IP的方法
- Linux下设置静态IP和获取动态IP的方法
- 虚拟机中为linux系统设置静态ip
- linux环境下静态ip的设置
- linux设置开机启动网关且配置静态IP
- Linux静态IP设置
- VMWare中Linux虚拟机设置静态IP上网的设置方法
- Linux动态和静态修改ip(转)
- Linux桥接模式下设置静态IP的方法
- VMware下Linux设置静态IP
- Linux 静态 IP 设置
- 搭建linux服务器之Debian设置静态IP
- Linux桥接模式下设置静态IP的方法
- Linux下配置静态IP 设置DNS和主机名