一張網卡兩個ip - BBS
By Franklin
at 2006-04-08T04:09
at 2006-04-08T04:09
Table of Contents
我的設定
rc.conf
# -- sysinstall generated deltas -- # Sat Apr 8 00:03:09 2006
ifconfig_rl0="inet 140.115.204.89 netmask 255.255.255.0"
gateway_enable="YES"
defaultrouter="140.115.204.254"
hostname="saxxas.twbbs.org "
# Net
ifconfig_rl0_alias0="inet 192.168.0.1 netmask 255.255.255.0"
firewall_enable="YES"
firewall_type="OPEN"
natd_interface="rl0"
natd_enable="YES"
# -- sysinstall generated deltas -- # Sat Apr 8 03:23:23 2006
sshd_enable="YES"
inted_enable="YES"
rc.firewall
#!/bin/sh
/sbin/ipfw -f -flush
/sbin/ipfw add divert natd all from any to any via rl0
/sbin/ipfw add pass all from any to any
然後 net下的電腦ip設定為 192.168.0.2
gateway 192.168.0.1
netmask 255.255.255.0
dns 140.115.1.31
可是失敗了 (-^-)d
不清楚還有哪裡應該修正
我參考的資料
http://www.twbsd.org/cht/book/index.php?ch=12
--
rc.conf
# -- sysinstall generated deltas -- # Sat Apr 8 00:03:09 2006
ifconfig_rl0="inet 140.115.204.89 netmask 255.255.255.0"
gateway_enable="YES"
defaultrouter="140.115.204.254"
hostname="saxxas.twbbs.org "
# Net
ifconfig_rl0_alias0="inet 192.168.0.1 netmask 255.255.255.0"
firewall_enable="YES"
firewall_type="OPEN"
natd_interface="rl0"
natd_enable="YES"
# -- sysinstall generated deltas -- # Sat Apr 8 03:23:23 2006
sshd_enable="YES"
inted_enable="YES"
rc.firewall
#!/bin/sh
/sbin/ipfw -f -flush
/sbin/ipfw add divert natd all from any to any via rl0
/sbin/ipfw add pass all from any to any
然後 net下的電腦ip設定為 192.168.0.2
gateway 192.168.0.1
netmask 255.255.255.0
dns 140.115.1.31
可是失敗了 (-^-)d
不清楚還有哪裡應該修正
我參考的資料
http://www.twbsd.org/cht/book/index.php?ch=12
--
Tags:
BBS
All Comments
Related Posts
一張網卡兩個ip
By Frederica
at 2006-04-08T03:28
at 2006-04-08T03:28
一張網卡兩個ip
By Joseph
at 2006-04-08T02:33
at 2006-04-08T02:33
安裝samba失敗
By Cara
at 2006-04-08T01:42
at 2006-04-08T01:42
Re: SpeedyCGI的問題請教
By Olga
at 2006-04-06T10:43
at 2006-04-06T10:43
安裝時的磁碟分割
By Joe
at 2006-04-06T04:10
at 2006-04-06T04:10