LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   CentOS5.5- Eth1 to router ping is not working. (https://www.linuxquestions.org/questions/linux-networking-3/centos5-5-eth1-to-router-ping-is-not-working-814108/)

kp35 06-14-2010 02:19 PM

CentOS5.5- Eth1 to router ping is not working.
 
Hi,

I am novice to linux setup. Any help related to this issue will be appreciated.

I have static route for eth1:

[root@perseus anvltest]# ifconfig eth1
eth1 Link encap:Ethernet HWaddr 00:0C:29:51:37:B5
inet addr:13.3.3.2 Bcast:13.3.3.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe51:37b5/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:240 (240.0 b) TX bytes:868 (868.0 b)


eth1 (13.3.3.2) is connected to router port 2/0 (13.3.3.1).
I am trying to ping from eth1 to router or vice versa. None of them is not working. Don't know what is problem.

[root@perseus anvltest]# ping 13.3.3.1
PING 13.3.3.1 (13.3.3.1) 56(84) bytes of data.

--- 13.3.3.1 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2000ms

[root@perseus anvltest]#
[root@perseus anvltest]#
[root@perseus anvltest]# arp -a
? (13.3.3.1) at <incomplete> on eth1




[root@perseus anvltest]# netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
13.3.3.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
10.11.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
0.0.0.0 10.11.197.62 0.0.0.0 UG 0 0 0 eth0

AlucardZero 06-14-2010 02:26 PM

Run 'ethtool eth1', what is returned?

How did you set up the interface? With commands? What commands? Or editing a file? Which file?

What distro is this?

kp35 06-14-2010 02:46 PM

Thanx for reply,

[root@perseus anvltest]# ethtool eth1
Settings for eth1:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: d
Wake-on: d
Current message level: 0x00000007 (7)
Link detected: yes


** I have used "ifconfig eth1 13.3.3.2 netmask 255.255.255.0 up" command to configure eth1 ip address.

[root@perseus network-scripts]# pwd
/etc/sysconfig/network-scripts
[root@perseus network-scripts]# cat ifcfg-eth1
# Intel Corporation 82545EM Gigabit Ethernet Controller (Copper)
DEVICE=eth1
BOOTPROTO=none
HWADDR=00:0C:29:51:37:B5
ONBOOT=no
HOTPLUG=no
DHCP_HOSTNAME=perseus.xyz.com
TYPE=Ethernet
IPADDR=13.3.3.2
NETMASK=255.255.255.0
USERCTL=no
IPV6INIT=no
PEERDNS=yes
GATEWAY=10.11.197.62



[root@perseus ~]# cat /etc/redhat-release
CentOS release 5.5 (Final)

AlucardZero 06-14-2010 02:48 PM

It should work. Try removing the GATEWAY=10.11.197.62 line and restarting networking.

How do you know the router is working? Try a different cable.

kp35 06-14-2010 02:53 PM

I restared network by removing gateway. Still same result. My router is working, i am sure about that and I changed cable too(crossover & ethernet cable)

[root@perseus network-scripts]# cat ifcfg-eth1
# Intel Corporation 82545EM Gigabit Ethernet Controller (Copper)
DEVICE=eth1
BOOTPROTO=none
HWADDR=00:0C:29:51:37:B5
ONBOOT=no
HOTPLUG=no
DHCP_HOSTNAME=perseus.xyz.com
TYPE=Ethernet
IPADDR=13.3.3.2
NETMASK=255.255.255.0
USERCTL=no
IPV6INIT=no
PEERDNS=yes
#GATEWAY=10.11.197.62
[root@perseus network-scripts]#
[root@perseus network-scripts]# ifdown eth1
[root@perseus network-scripts]# ifup eth1
[root@perseus network-scripts]#
[root@perseus network-scripts]#
[root@perseus network-scripts]# ping 13.3.3.1
PING 13.3.3.1 (13.3.3.1) 56(84) bytes of data.

--- 13.3.3.1 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1000ms


I re


All times are GMT -5. The time now is 05:52 PM.