红联Linux门户
Linux帮助

怎么保存用命令配置的SUSE.Linuxv10的IP和网关

发布时间:2009-03-17 08:04:58来源:红联作者:xhlxyy
我在命令模式下配置了IP地址和网关,可是重新启动后就没有了。
SUSE.Linux v10的IP配置文件在哪儿。
我用的命令如下:
ifconfig eth0 16.58.81.8 netmask 255.255.255.0

route add default gw 16.58.81.100

我查找了好些文档,都说在/etc/sysconfig/network-scripts下,可是我
找不到network-scripts这个目录

先谢谢大家了
文章评论

共有 5 条评论

  1. xuyong850705 于 2011-11-15 16:57:19发表:

    在/etc/sysconfig/network/ifcfg-eth-id-00:0c:32:23:12:ee
    在这个文件中更改网络配置

  2. xhlxyy 于 2009-03-17 20:51:09发表:

    我的没有
    /etc/sysconfig/networking/devices

    我该怎么办?

  3. clake846 于 2009-03-17 10:23:42发表:

    谢谢

  4. bobo504 于 2009-03-17 10:10:46发表:

    我在ubuntu下面是/etc/networking/interfaces文件中,另外在/etc/resolv.conf里添加nameserver ***.***.***.***
    sudo /etc/init.d/networking restart
    就可以了

  5. hanbingxuan 于 2009-03-17 08:39:22发表:

    目录在/etc/sysconfig/networking/devices
    我能用的就是这个了,希望对你有帮助