- 论坛徽章:
- 1
|
试试这个
- 如果是静态ip方式,则只需要编辑/etc/rc.conf文件。
- 我的/etc/rc.conf文件如下:(静态ip)
- # -- sysinstall generated deltas -- # Tue Jul 15 21:20:28 1997
- # Created: Tue Jul 15 21:20:28 1997
- # Enable network daemons for user convenience.
- # Please make all changes to this file, not to /etc/defaults/rc.conf.
- # This file now contains just the overrides from /etc/defaults/rc.conf.
- hostname="wwwx.3322.org" #主机域名
- defaultrouter="218.10.104.1" #服务商提供的路由器地址
- ifconfig_vr0="inet 218.10.104.188 netmask 255.255.255.0" #服务商提供的静态ip
- ifconfig_fxp0="inet 192.168.0.1 netmask 255.255.255.0" #内部网卡ip
- #vr0 和 fxp0 换成你网卡的名称
复制代码 |
|