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

[plamo:13807] Re: 2枚のNIC



神戸大学の辰己です。

> From: O.Y. <yoshi@v.email.ne.jp>
> RH系では以下のような書き方をすると思うのですが、plamo では
> 何処に書くのでしょう?そもそも概念から違うのでしょうか?

Plamo だと、普通に設定スクリプトを書き直せばいいです。
具体的には、 /etc/rc.d/rc.inet1 の以下の部分を書き直します。

---ここから---
# Edit for your setup.
IPADDR="133.30.224.62"  # REPLACE with YOUR IP address!
NETMASK="255.255.255.0" # REPLACE with YOUR netmask!
NETWORK="133.30.224.0"  # REPLACE with YOUR network address!
BROADCAST="133.30.224.255"      # REPLACE with YOUR broadcast address, if you
                        # have one. If not, leave blank and edit below.
GATEWAY="133.30.224.254"        # REPLACE with YOUR gateway address!

# Uncomment the line below to configure your ethernet card.
/sbin/ifconfig eth0 ${IPADDR} broadcast ${BROADCAST} netmask ${NETMASK}
---ここまで---

を、例えば以下のようにします。

---ここから---
# Edit for your setup.

# for innner net
IPADDR0="192.168.0.3"  # REPLACE with YOUR IP address!
NETMASK0="255.255.255.0" # REPLACE with YOUR netmask!
NETWORK0="192.168.0.0"  # REPLACE with YOUR network address!
BROADCAST0="192.168.0.255"      # REPLACE with YOUR broadcast address, if you
                        # have one. If not, leave blank and edit below.
GATEWAY="192.168.1.254"        # REPLACE with YOUR gateway address!

# for outer net
IPADDR1="192.168.1.7"  # REPLACE with YOUR IP address!
NETMASK1="255.255.255.0" # REPLACE with YOUR netmask!
NETWORK1="192.168.1.0"  # REPLACE with YOUR network address!
BROADCAST1="192.168.1.255"      # REPLACE with YOUR broadcast address, if you
                        # have one. If not, leave blank and edit below.

# Uncomment the line below to configure your ethernet card.
/sbin/ifconfig eth0 ${IPADDR0} broadcast ${BROADCAST0} netmask ${NETMASK0}
/sbin/ifconfig eth1 ${IPADDR1} broadcast ${BROADCAST1} netmask ${NETMASK1}
---ここまで---

これでどうでしょうか?

Follow-Ups
[plamo:13808] Re: 2枚のNIC, O.Y.
References
[plamo:13806] 2枚のNIC, O.Y.

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