歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Ubuntu7.10下手動更改IP地址

Ubuntu7.10下手動更改IP地址

日期:2017/2/28 17:13:43   编辑:Linux教程

Ubuntu7.10下手動更改IP地址的方法:

gedit /etc/network/interfaces

auto lo

iface lo inet loopback

auto eth0

iface eth0 inet static

address 192.168.0.200

netmask 255.255.255.0

gateway 192.168.0.1

#auto wlan0

#iface wlan0 inet dhcp

sudo /etc/init.d/networking restart

照此思路,修改 /etc/network/interfaces ,無線網卡也能用了

把文件中對應無線網卡的部分修改為如下形式

auto eth1

iface eth1 inet static

wireless-rate 54M

wireless-essid TP-LINK

wireless-key AAAAABBBBB

address 192.168.1.140

netmask 255.255.255.0

gateway 192.168.1.1

Copyright © Linux教程網 All Rights Reserved