LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-14-2010, 02:19 PM   #1
kp35
LQ Newbie
 
Registered: Jun 2010
Posts: 3

Rep: Reputation: 0
Red face 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
 
Old 06-14-2010, 02:26 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
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?
 
Old 06-14-2010, 02:46 PM   #3
kp35
LQ Newbie
 
Registered: Jun 2010
Posts: 3

Original Poster
Rep: Reputation: 0
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)

Last edited by kp35; 06-14-2010 at 02:56 PM. Reason: added distribution
 
Old 06-14-2010, 02:48 PM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
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.
 
Old 06-14-2010, 02:53 PM   #5
kp35
LQ Newbie
 
Registered: Jun 2010
Posts: 3

Original Poster
Rep: Reputation: 0
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

Last edited by kp35; 06-14-2010 at 02:56 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
centos5.1 won't recognise eth1 nic card shussain44 Linux - Newbie 5 05-24-2009 05:01 PM
Cannot ping router - DHCP not working PieSquared Linux - Networking 35 03-27-2007 10:51 PM
NIC Not Working In 10.1 - Cannot Ping Router, Access Internet contillion SUSE / openSUSE 6 09-08-2006 02:46 PM
LAN/ADSL Router ping working but DNS ping fails R N Ghosh Linux - Networking 1 01-13-2006 07:44 AM
networking not working, nic is loaded, can ping router dns21 Slackware 11 02-16-2005 12:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration