walkerdba
asked on
ping machines
I have two machines mac and term2
for mac machine
[root@mac ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:9D:71:D2
inet addr:192.168.1.12 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe9d:71d2/6 4 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:726 errors:0 dropped:0 overruns:0 frame:0
TX packets:42 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:83493 (81.5 KiB) TX bytes:7566 (7.3 KiB)
Interrupt:67 Base address:0x2024
eth1 Link encap:Ethernet HWaddr 00:0C:29:9D:71:DC
inet addr:10.0.0.6 Bcast:10.0.0.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe9d:71dc/6 4 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:727 errors:0 dropped:0 overruns:0 frame:0
TX packets:86 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:83554 (81.5 KiB) TX bytes:12101 (11.8 KiB)
Interrupt:67 Base address:0x20a4
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2110 errors:0 dropped:0 overruns:0 frame:0
TX packets:2110 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4527442 (4.3 MiB) TX bytes:4527442 (4.3 MiB)
[root@mac ~]#
# Do not remove the following line, or various programs
# that require network functionality will fail.
192.168.1.12 mac.localdomain mac
192.168.1.16 wtu.localdomain wtu
192.168.2.44 term2.localdomain term2
127.0.0.1 localhost.localdomain localhost
~
~
in term2
[root@term2 ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:D0:FF:86
inet addr:192.168.2.44 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fed0:ff86/6 4 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:783 errors:0 dropped:0 overruns:0 frame:0
TX packets:148 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:98689 (96.3 KiB) TX bytes:12696 (12.3 KiB)
Interrupt:67 Base address:0x2024
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2096 errors:0 dropped:0 overruns:0 frame:0
TX packets:2096 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4861320 (4.6 MiB) TX bytes:4861320 (4.6 MiB)
[root@term2 ~]#
# Do not remove the following line, or various programs
# that require network functionality will fail.
192.168.2.44 term2.localdomain term2
192.168.2.18 term1.localdomain term1
192.168.1.12 mac.localdomain mac
127.0.0.1 localhost.localdomain localhost
but,
machines cannot ping each other,
[root@term2 ~]# ping mac
PING mac.localdomain (192.168.1.12) 56(84) bytes of data.
[2]+ Stopped ping mac
[root@term2 ~]#
[root@mac ~]# ping term2
PING term2.localdomain (192.168.2.44) 56(84) bytes of data.
Machines cannot ping each other
..
for mac machine
[root@mac ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:9D:71:D2
inet addr:192.168.1.12 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe9d:71d2/6
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:726 errors:0 dropped:0 overruns:0 frame:0
TX packets:42 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:83493 (81.5 KiB) TX bytes:7566 (7.3 KiB)
Interrupt:67 Base address:0x2024
eth1 Link encap:Ethernet HWaddr 00:0C:29:9D:71:DC
inet addr:10.0.0.6 Bcast:10.0.0.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe9d:71dc/6
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:727 errors:0 dropped:0 overruns:0 frame:0
TX packets:86 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:83554 (81.5 KiB) TX bytes:12101 (11.8 KiB)
Interrupt:67 Base address:0x20a4
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2110 errors:0 dropped:0 overruns:0 frame:0
TX packets:2110 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4527442 (4.3 MiB) TX bytes:4527442 (4.3 MiB)
[root@mac ~]#
# Do not remove the following line, or various programs
# that require network functionality will fail.
192.168.1.12 mac.localdomain mac
192.168.1.16 wtu.localdomain wtu
192.168.2.44 term2.localdomain term2
127.0.0.1 localhost.localdomain localhost
~
~
in term2
[root@term2 ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:D0:FF:86
inet addr:192.168.2.44 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fed0:ff86/6
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:783 errors:0 dropped:0 overruns:0 frame:0
TX packets:148 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:98689 (96.3 KiB) TX bytes:12696 (12.3 KiB)
Interrupt:67 Base address:0x2024
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2096 errors:0 dropped:0 overruns:0 frame:0
TX packets:2096 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4861320 (4.6 MiB) TX bytes:4861320 (4.6 MiB)
[root@term2 ~]#
# Do not remove the following line, or various programs
# that require network functionality will fail.
192.168.2.44 term2.localdomain term2
192.168.2.18 term1.localdomain term1
192.168.1.12 mac.localdomain mac
127.0.0.1 localhost.localdomain localhost
but,
machines cannot ping each other,
[root@term2 ~]# ping mac
PING mac.localdomain (192.168.1.12) 56(84) bytes of data.
[2]+ Stopped ping mac
[root@term2 ~]#
[root@mac ~]# ping term2
PING term2.localdomain (192.168.2.44) 56(84) bytes of data.
Machines cannot ping each other
..
They are in different subset. Try move one of them to the same subnet and ping again.
How are these machines setup? Are these the only machines that you are having problem?
How are these machines setup? Are these the only machines that you are having problem?
ASKER
I ran all the commands please help me which one is appropriate
[root@mac ~]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
[root@mac ~]# iptables -F
[root@mac ~]# chkconfig iptables off
[root@mac ~]# ping term2
PING term2.localdomain (192.168.2.44) 56(84) bytes of data.
[4]+ Stopped ping term2
[root@mac ~]# ethtool eth0
Settings for eth0:
Supported ports: [ TP ]
Supported link modes: 1000baseT/Full
Supports auto-negotiation: No
Advertised link modes: Not reported
Advertised auto-negotiation: No
Speed: 1000Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
Auto-negotiation: off
Link detected: yes
[root@mac ~]# ping term2
PING term2.localdomain (192.168.2.44) 56(84) bytes of data.
[5]+ Stopped ping term2
[root@mac ~]#
[root@mac ~]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
[root@mac ~]# iptables -F
[root@mac ~]# chkconfig iptables off
[root@mac ~]# ping term2
PING term2.localdomain (192.168.2.44) 56(84) bytes of data.
[4]+ Stopped ping term2
[root@mac ~]# ethtool eth0
Settings for eth0:
Supported ports: [ TP ]
Supported link modes: 1000baseT/Full
Supports auto-negotiation: No
Advertised link modes: Not reported
Advertised auto-negotiation: No
Speed: 1000Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
Auto-negotiation: off
Link detected: yes
[root@mac ~]# ping term2
PING term2.localdomain (192.168.2.44) 56(84) bytes of data.
[5]+ Stopped ping term2
[root@mac ~]#
ASKER
Sir ping is working..
I changed 1 to 2
subnetmask
new ip is 198.168.2.18
I changed 1 to 2
subnetmask
new ip is 198.168.2.18
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
yes
Have you checked if iptables ( firewall ) is enabled ?
iptables -L -- >list rules, must probably you have a rule on the firewall that is not allowing icmp
iptables -F -- > will flush all rules of firewall
chkconfig iptables off -- > disable iptables permanently
if this is not you problem, check if your network interfaces has link
ethtool eth0
I hope this fix ur problem