红联Linux门户
Linux帮助

通过命令设置网关

发布时间:2010-01-02 00:34:08来源:红联作者:rh9
route add default gw *.*.*.1
文章评论

共有 8 条评论

  1. COMPUTER918 于 2010-01-19 11:13:52发表:

    求详细点的

  2. yong009003 于 2010-01-17 21:58:40发表:

    哎,我都不知道我系统里的那个IP配置的文件,也没关心过!就只因为我的系统它自己就获取到IP了,从不用我担心!以后我给它弄个静态的IP去!0:w(5(

  3. tan-junyu 于 2010-01-09 03:37:48发表:

    感谢分享

  4. pipizi 于 2010-01-08 23:09:03发表:

    cd /etc/sysconfig/network-scripts/
    vi ifcfg-ethX(0,1)
    GATEWAY = 输入你的网关地址即可
    booton= yes
    service netwrok restart

  5. lyfpang 于 2010-01-08 14:40:51发表:

    就一句呀,有没有详细点的!

  6. rh9 于 2010-01-07 15:12:36发表:

    感谢交流,命令redhat-config-network进行配置

  7. tyy5652 于 2010-01-06 11:15:00发表:

    貌似重启就没有了吧,最好是在/etc/sysconfig/network-scripts/ifcfg-eth0

  8. rh9 于 2010-01-03 07:10:57发表:

    呵呵,学习了。