[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[plamo:13808] Re: 2枚のNIC



こんばんわ。
速攻のレスありがとうございます。
理解できました。助かりました。
さっそく試してみます。

tatsumi> Plamo だと、普通に設定スクリプトを書き直せばいいです。
tatsumi> 具体的には、 /etc/rc.d/rc.inet1 の以下の部分を書き直します。
tatsumi> 
tatsumi> ---ここから---
tatsumi> # Edit for your setup.
tatsumi> IPADDR="133.30.224.62"  # REPLACE with YOUR IP address!
tatsumi> NETMASK="255.255.255.0" # REPLACE with YOUR netmask!
tatsumi> NETWORK="133.30.224.0"  # REPLACE with YOUR network address!
tatsumi> BROADCAST="133.30.224.255"      # REPLACE with YOUR broadcast address, if you
tatsumi>                         # have one. If not, leave blank and edit below.
tatsumi> GATEWAY="133.30.224.254"        # REPLACE with YOUR gateway address!
tatsumi> 
tatsumi> # Uncomment the line below to configure your ethernet card.
tatsumi> /sbin/ifconfig eth0 ${IPADDR} broadcast ${BROADCAST} netmask ${NETMASK}
tatsumi> ---ここまで---
tatsumi> 
tatsumi> を、例えば以下のようにします。
tatsumi> 
tatsumi> ---ここから---
tatsumi> # Edit for your setup.
tatsumi> 
tatsumi> # for innner net
tatsumi> IPADDR0="192.168.0.3"  # REPLACE with YOUR IP address!
tatsumi> NETMASK0="255.255.255.0" # REPLACE with YOUR netmask!
tatsumi> NETWORK0="192.168.0.0"  # REPLACE with YOUR network address!
tatsumi> BROADCAST0="192.168.0.255"      # REPLACE with YOUR broadcast address, if you
tatsumi>                         # have one. If not, leave blank and edit below.
tatsumi> GATEWAY="192.168.1.254"        # REPLACE with YOUR gateway address!
tatsumi> 
tatsumi> # for outer net
tatsumi> IPADDR1="192.168.1.7"  # REPLACE with YOUR IP address!
tatsumi> NETMASK1="255.255.255.0" # REPLACE with YOUR netmask!
tatsumi> NETWORK1="192.168.1.0"  # REPLACE with YOUR network address!
tatsumi> BROADCAST1="192.168.1.255"      # REPLACE with YOUR broadcast address, if you
tatsumi>                         # have one. If not, leave blank and edit below.
tatsumi> 
tatsumi> # Uncomment the line below to configure your ethernet card.
tatsumi> /sbin/ifconfig eth0 ${IPADDR0} broadcast ${BROADCAST0} netmask ${NETMASK0}
tatsumi> /sbin/ifconfig eth1 ${IPADDR1} broadcast ${BROADCAST1} netmask ${NETMASK1}
tatsumi> ---ここまで---
tatsumi> 
tatsumi> これでどうでしょうか?

横川

References
[plamo:13806] 2枚のNIC, O.Y.
[plamo:13807] Re: 2枚のNIC, 辰己丈夫

[検索ページ] [メール一覧]
Plamo ML 公開システム