okaです、お世話になります。
pingでエラーがでます。どこの設定が間違っているのでしょうか。
/etc/hosts(linux)と/etc/lmhosts(w.nt)や
gateway addressの設定のところでしょうか。
他の設定でしょうか。
間違い個所の指摘と、その正解例を教えてもらえないでしょうか。
ルーターに繋がったPC(win nt)(linux )の内
linux でturbolinux w6.0を使っています。
(イントール済みのものをそのまま使用)
ネットワークアドレスはbiz−ip8のCクラス未満/29です。
アドレスやルーターの設定
address(グローバル)
aaa.bbb.ccc.ddd ntw address
dd1 router address
dd2 server address
dd5 nat address
dd7 bdc address
router
primary address 192.168.0.1/24(プライベート)
secondary address aaa.bbb.ccc.dd1/29
nat/masquerade on
nat address aaa.bbb.ccc.dd5
router 192.168.0.1(プライベート)=aaa.bbb.ccc.dd1(グローバル)
client-2 192.168.0.2 (win nt)(プライベート)=aaa.bbb.ccc.dd3(グローバ
ル)
client-3 192.168.0.3 (win 2000)(プライベート)(現在停止)
client-4 192.168.0.4 (linux servsr)(プライベート)=aaa.bbb.ccc.dd2(グ
ローバ
ル)
(client-1は無し)
domain名はabcd.co.jp
各clientsからはインターネットに繋げます。
教えていただきたいことですが、
1.
ルーターに繋がっているclient-2(win nt)より linux へ
ping aaa.bbb.ccc.dd2 (linux sever)(global address) とすると
pinging aaa.bbb.ccc.dd2 with 32 byte of data:
request timed out.
reply from 192.168.0.1:destination host unreachable. とエラーが表示されま
す。
(192.168.0.1はルーターのprivate address です。)
又、
ping 192.168.0.4 (linux sever)(private address) とすると
pinging 192.168.0.4 with 32 byte of data:
reply from 192.168.0.4: bytes=32 time<10ms ttl=255 でOK
2.
ルーターに繋がっているlinux よりclient-2(win nt)へ
ping aaa.bbb.ccc.dd3 (global address) とすると
ping aaa.bbb.ccc.dd3( aaa.bbb.ccc.dd3) from 192.168.0.4 :56(84) byte of data
from 192.168.0.1:destination host unreachable.
とエラーが表示されます。
又、
ping 192.168.0.2(win nt)(private address) とすると
ping 192.168.0.2( 192.168.0.2) from 192.168.0.4 :56(84) byte of data
64 bytes from 192.168.0.2:icmp_seq=0 ttl=128 time=0.6ms でOK
3.
ルータへのping は、win nt からとlinux からとの両方ともOKです。
(private address と global address への両方ともOKです。)
ping aaa.bbb.ccc.dd1(router address)(global address) とすると
pinging aaa.bbb.ccc.dd1 with 32 byte of data:
reply from aaa.bbb.ccc.dd1: bytes=32 time<10ms ttl=64 でOK
4.
linux servsrのaaa.bbb.ccc.dd2(グローバル)へのwin nt からとlinux からとの
ping は
両方ともエラーです。
linux の方は
ping aaa.bbb.ccc.dd2( aaa.bbb.ccc.dd2) from 192.168.0.4 :56(84) byte of data
from f4-0.0.-kanda-gw1.sphere.ad.jp(202.239.114.65):destination host
unreachable とエラー
又、ping www.abcd.co.jpは
ping:unknown host www.abcd.co.jp
となります。
win nt の方は
pinging aaa.bbb.ccc.dd2 with 32 byte of data:
request timed out.
reply from 192.168.01:destination host unreachable. とエラー となります。
又、ping www.abcd.co.jpは
bad ip address www.abcd.co.jp.
となります。
5.
エラー の原因として
5−1.
Linux 側のglobal address の設定が上手く設定されていないのかなあ、とか、
それには/etc/hosts(linux)と/etc/lmhosts(w.nt)の設定を行うのかなあ、とか
gateway address: の 設定のがおかしいのかなあ、とか思いますが、
どこの設定が間違っているのでしょうか。
具体的にはどのような設定になるのでしょうか。
ping が通らないのが正解なのでしょうか。
以下の様に設定していますがpingは上手くいっていません。
又は、関係は無いのでしょうか。
linuxの/etc/hosts (w.ntの/etc/lmhostsも同じ内容です)
127.0.0.1 localhost.localdomain localhost
192.168.02 nth-wel.goka nth-wel (privateaddress )
192.168.04 h-wel.goka h-wel (privateaddress)
(注・・・192.168.0.2 ,192.168.04 はprivate address )
5−2.
Gateway Address の設定がおかしいのでは。
Global Address の Gateway Address (aaa.bbb.ccc.dd1)の設定とは。
gateway address: は
現在は次のようになっていますが、gateway address: 192.168.0.1のところを
なおのすのでしょうか。
ひとつのPCにprivate addressと global addressをつけるのはどうするのでしょ
うか。
つけられないのでしょうか。addressの重複となるのでしょうか。
Linux 側の設定(turbo linux 6.0w)(private address になっています)
(turbonetcfg での確認)
ホスト名: gh-wel
ドメイン名:goka
FQDN:gh-wel.goka
gateway機器: eth0
gateway address: 192.168.01
nameserver :192.168.0.1
DNSのセカンダリーのaddress(ここだけがglobal
addressになっている)
検索ドメイン:goka
インターフェース
eth0(*) :192.168.04
localhost(*):127.0.01
6.
NTマシンで、ipconfigと叩くと
6−1
ipconfig /all
windows nt ip configuration
host name :nth-wel.abcd.co.jp
dns server :aaa.bbb.ccc.dd2
node type broadcast
netbios scope id :
ip routing enable :no
wins proxy enable :no
netbios resolution uses dns :no
ethernet adapter e190x1 :
description :3com 3c90x ethernet adapter
physical address :**-**-**-**-**-**-**
dhcp enabled :yes
ip address 192.168.0.2
subnet mask :255.255.255.0
default gateway 192.168.01
dhcp server :192.168.0.1
lease obtained :2001.7.30.......
lease expires :2001.8.2............
ppp adapter ndiswan4 :
description : ndiswan4 adapter
physical address :00-00-00-00-00-00
dhcp enabled :no
ip address :0.0.0.0
subnet mask :0.0.0.0
default gateway:
6−2
ping 192.168.04 の後の OK 後に
arp -a とすると
interface: 192.168.0.2 on interface 2
internet address physical type
192.168.04 **-**-**-**-**-**-** dynamic
又、
ping aaa.bbb.ccc.dd1 の後の OK 後に
arp -a とすると
interface: 192.168.0.2 on interface 2
internet address physical type
192.168.01 **-**-**-**-**-**-** dynamic
7.
netstat -r
win nt の方は
route table
active routes
network address netmask gateway address interface
metric
0.0.0.0 0.0.0.0 192.168.0.1 192.168.0.2 1
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
192.168.0.0 255.255.255.0 192.168.0.2 192.168.0.2 1
192.168.0.2 255.255.255.255 127.0.0.1 127.0.0.1 1
192.168.0.255 255.255.255.255 192.168.0.2 192.168.0.2 1
224.0.0.0 224.0.0.0 192.168.0.2 192.168.0.2 1
255.255.255.255. 255.255.255.255 192.168.0.2 192.168.10.2 1
active connections
proto local address foreign address state
tcp nth-wel:1025 localhost.localdomain:1028 established
tcp nth-wel:1028 localhost.localdomain:1025 established
linux の方は
kernel ip routing table
destination gateway genmask flags mss window irtt iface
192.0.0.0 * 255.0.0.0 u 0 0 0 eth0
default 192.168.0.1 0.0.0.0 ug 0 0 0 eth0
8.
/etc/resolve.conf
domain abcd.co.jp
nameserver aaa.bbb.ccc.dd2
nameserver セカンダリ(プロバイダーに置いてあります)
/etc/host.conf(デイフォルトのまま)
order hosts,bind
multi on
Follow-Ups:
- [linux-users:85938] Re: ping でエラーAkinori AIZAWA
- [linux-users:85975] Re: pingでエラー早間義博
- [linux-users:86028] pingでエラーoka
- [linux-users:86234] pingでエラーoka
- Prev by Subject: [linux-users:85923] Re: フロッピードライブの認識について
- Next by Subject: [linux-users:85925] Re: 情報交換について(was Re: ショップブランドの信頼性)
- Previous by thread: [linux-users:85920] Re: [ANN]ALUG(Aomori Linux UsersGroup)情報セキュリティ勉強会のご案内
- Next by thread: [linux-users:85938] Re: ping でエラー
- Indexes:[Main][Thread]