请教各位高手,如何在ubuntu中给网卡设置静态IP
lzyfootball@163.com
多谢谢!
请教各位高手,如何在ubuntu中给网卡设置静态IP
-
- 帖子: 1
- 注册时间: 2008-10-15 10:30
-
- 帖子: 22
- 注册时间: 2008-10-04 19:12
Re: 请教各位高手,如何在ubuntu中给网卡设置静态IP
这是个很基础的问题。
ifconfig是Linux系统中最常用的一个用来显示和设置网络设备的工具。而Windows系统则是ipconfig。请不要混淆。
如果将网卡的IP地址设置为192.16.0.1,请在终端下输入以下命令:
sudo ifconfig eth0 192.16.0.1
将网卡的子网掩码设置为255.255.255.0
sudo ifconfig eth0 netmask 255.255.255.0
查看网卡状态
ifconfig ech0
关闭网卡
sudo ifconfig eth0 down
开启网卡
sudo ifconfig eth0 up
有空可以上我的百度空间Ubuntu专栏看看。有时间我会更新的。
http://hi.baidu.com/towardstop/blog/category/Ubuntu
ifconfig是Linux系统中最常用的一个用来显示和设置网络设备的工具。而Windows系统则是ipconfig。请不要混淆。
如果将网卡的IP地址设置为192.16.0.1,请在终端下输入以下命令:
sudo ifconfig eth0 192.16.0.1
将网卡的子网掩码设置为255.255.255.0
sudo ifconfig eth0 netmask 255.255.255.0
查看网卡状态
ifconfig ech0
关闭网卡
sudo ifconfig eth0 down
开启网卡
sudo ifconfig eth0 up
有空可以上我的百度空间Ubuntu专栏看看。有时间我会更新的。
http://hi.baidu.com/towardstop/blog/category/Ubuntu
-
- 帖子: 22
- 注册时间: 2008-10-04 19:12
Re: 请教各位高手,如何在ubuntu中给网卡设置静态IP
在Ubuntu里,其实大可以不在终端下输入命令的。你单击“网络连接”图标,会弹出一个网络设置的图形界面的工具。在这里的设置与Windows下差不多。