change local network

|**|

setup pc1

では 設定替えをしていきます

$ su -
Password: 
# cd /etc/
# cp hosts 028_hosts
# vi host 
# diff -s hosts 028_hosts 
19c19
< 192.168.2.8     nyanta.no-ip.info nyanta
---
> 192.168.0.8   nl.bcnet.ne.jp nl
# cp hosts.allow 029_hosts.allow 
# vi hosts.allow 
# diff -s hosts.allow 029_hosts.allow
13,14c13
< ipop3d : 192.168.0.0/255.255.255.0:allow
< ipop3d : 192.168.2.0/255.255.255.0:allow
---
> ipop3d : 192.168.0.5,192.168.0.6,192.168.0.7,192.168.0.8,192.168.0.9
# cp resolv.conf 030_resolv.conf 
# vi resolv.conf 
# diff -s resolv.conf 030_resolv.conf 
3a4
> nameserver 192.168.0.8
5d5
< nameserver 192.168.2.8

# cd mail
# cp access 005_access-1net  
# vi access
# diff -s access 005_access-1net
5,6d4
< 192.168.2 RELAY
< nyanta.no-ip.info RELAY
# cp local-host-names 005_local-host-names-1net
# vi local-host-names 
# diff -s local-host-names 005_local-host-names-1net
6c6
< 192.168.2.8
---
> 
# ls -l access.db
-rw-r-----    1 root     root        12288 Sep  5  2004 access.db
# makemap hash /etc/mail/access < /etc/mail/access 
# ls -l access.db 
-rw-r-----    1 root     root        12288 Nov 19 13:10 access.db
# cd ../rc.d/
# cp rc.inet1 009_rc.inet1_eth1-192-168-1-1
# vi rc.inet1
# diff -s rc.inet1 009_rc.inet1_eth1-192-168-1-1 
38c38
<   IPADDR="192.168.2.1"                # REPLACE with YOUR IP address!
---
>   IPADDR="192.168.1.1"                # REPLACE with YOUR IP address!
40,41c40,41
<   NETWORK="192.168.2.0"               # REPLACE with YOUR network address!
<   BROADCAST="192.168.2.255"   # REPLACE with YOUR broadcast address, if you
---
>   NETWORK="192.168.1.0"               # REPLACE with YOUR network address!
>   BROADCAST="192.168.1.255"   # REPLACE with YOUR broadcast address, if you
78c78
< # add one line add 2005年 5月 2日 (月) 22:57:47 JST
---
> # add one line add 2005年 5月 2日 (月) 22:57:47 JST

named 関連は 取り敢えず 無視しておいて 後 pc2 の 設定を 変更 しよう。

にゃんたろう 拝!

2005年11月 4日 (金) 21:55:23 JST 作成

|**|


change local network

Copyright © 2004.-2007. nyantarou All Rights Reserved.