怎样给linux配置IP

Elaine_wins
怎样给linux配置IP

系统装好没陪IP怎样再配置IP啊
???

摩罗王子
有个图形配置界面,命令:setup

chenyx
lz 什么系统?有图形界面的话进入图形界面配置

7717060
setup命令里有网络配置

CrossGrave
你可以使用netconfig

china_shentong
1: system-config-network-tui
2: ifconfig eth0 10.1.1.1 netmask 255.0.0.0 up

diyself
回复 #6 china_shentong 的帖子

route add default gw 10.1.1.1

加一个默认网关

vermouth
需要 root 权限哦~

yumanifold
vi /etc/sysconfig/network-scripts/ifcfg-eth0

tomasea
[quote]原帖由 [i]china_shentong[/i] 于 2010-1-21 01:09 发表 [url=http://linux.chinaunix.net/bbs/redirect.php?goto=findpost&pid=7202818&ptid=1154526][img]http://linux.chinaunix.net/bbs/images/common/back.gif[/img][/url]
1: system-config-network-tui
2: ifconfig eth0 10.1.1.1 netmask 255.0.0.0 up [/quote]
这样没办法保存,一旦重启,配置就消失了

wendaozhe
请先注意是什么系统?
然后选择配置方式。
deb系和rh系的是不一样的!

yumanifold
[quote]原帖由 [i]wendaozhe[/i] 于 2010-1-21 14:40 发表 [url=http://linux.chinaunix.net/bbs/redirect.php?goto=findpost&pid=7203171&ptid=1154526][img]http://linux.chinaunix.net/bbs/images/common/back.gif[/img][/url]
请先注意是什么系统?
然后选择配置方式。
deb系和rh系的是不一样的! [/quote]


debian的话是这个文件

lan_debian:~# vi /etc/network/interfaces
上一篇:mount 另一台机器后 文件夹所有者问题 下一篇:下面没有链接了