LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 05-23-2006, 07:10 AM   #1
GatorBlade
LQ Newbie
 
Registered: Apr 2006
Location: /usr/bin
Posts: 12

Rep: Reputation: 0
destination port unreachable error.


Hello, i am running fc4 on amd 64. with firewall and SELinux disabled.
i am connected to internet through ethernet card. My IP address is 10.19.44.102 and gateway is 10.19.44.1. now when i try to ping my gateway..i get:-

Destination port unreachable error from 10.19.44.102

I am clueless. any sort of help would be great..

Thanks.
 
Old 05-23-2006, 07:16 AM   #2
dimis
LQ Newbie
 
Registered: May 2006
Posts: 20

Rep: Reputation: 0
Can you post 'ifconfig' and 'route' output pls
 
Old 05-23-2006, 07:41 AM   #3
GatorBlade
LQ Newbie
 
Registered: Apr 2006
Location: /usr/bin
Posts: 12

Original Poster
Rep: Reputation: 0
Here is ifconfig output
Code:
eth0      Link encap:Ethernet  HWaddr 00:02:44:70:21:40  
          inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::202:44ff:fe70:2140/64 Scope:Link
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:5 Base address:0xdf00 

eth1      Link encap:Ethernet  HWaddr 00:11:09:BC:ED:81  
          inet addr:10.19.44.102  Bcast:10.19.44.255  Mask:255.255.255.0
          inet6 addr: fe80::211:9ff:febc:ed81/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:9576 errors:0 dropped:0 overruns:0 frame:0
          TX packets:74 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:953419 (931.0 KiB)  TX bytes:6312 (6.1 KiB)
          Interrupt:5 Base address:0xde00 

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:1194 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1194 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:1203050 (1.1 MiB)  TX bytes:1203050 (1.1 MiB)
route output

Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.19.44.0      *               255.255.255.0   U     0      0        0 eth1
192.168.0.0     *               255.255.255.0   U     0      0        0 eth0
169.254.0.0     *               255.255.0.0     U     0      0        0 eth0
 
Old 05-23-2006, 07:59 AM   #4
dimis
LQ Newbie
 
Registered: May 2006
Posts: 20

Rep: Reputation: 0
You can try:

route add -net -n 192.168.0.0 netmask 255.255.255.0 dev eth0
route add -net -n 10.19.44.0 netmask 255.255.255.0 dev eth1
route add -net default gw 10.19.44.1

Last edited by dimis; 05-23-2006 at 08:01 AM.
 
Old 05-23-2006, 08:26 AM   #5
GatorBlade
LQ Newbie
 
Registered: Apr 2006
Location: /usr/bin
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks dimis! It works:d ah! thanks again.

btw, could you plz describe it a little..i mean i had configured it with netconfig, the gateway and all. but it didnt work.
 
Old 05-23-2006, 08:48 AM   #6
dimis
LQ Newbie
 
Registered: May 2006
Posts: 20

Rep: Reputation: 0
It should work with netconfig maybe you just missed something there, i always hated these automated tools so i just prefer giving the commands myself.

here you're just adding static routes, specifying a network for every NIC you use and adding a default gateway for both NIC's unless other specified.

What you should check is if it works after reboot, if it doesn't you can just add these lines to your startup script

For Slackware for example is /etc/rc.local
 
  


Reply



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
Ping error "Destination Host Unreachable" from the gateway cristi_ro Linux - Networking 4 10-30-2006 04:32 PM
help ! Destination Unreachable ernvb Linux - Hardware 3 10-23-2005 11:09 PM
destination host unreachable javpra Linux - Networking 1 03-30-2005 05:44 AM
sendmail transmit timed out error -destination host unreachable KTCommander04 Linux - Networking 2 12-23-2003 09:59 AM
tftp - "Destination Unreachable" due to "Port Unreachable" renjithgopal Linux - Security 5 07-24-2003 10:36 AM

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

All times are GMT -5. The time now is 03:54 AM.

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