LinuxQuestions.org
Visit Jeremy's Blog.
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 11-08-2005, 10:42 PM   #1
dugu98cxw
LQ Newbie
 
Registered: Nov 2005
Posts: 4

Rep: Reputation: 0
another routing problem...


Hi, I'm not sure if similar threads have been posted here before so mmm here's my problem...
I'm running fc4 trying to set up an ftp server on my laptop behind a westell versalink 327w router/modem.
But when i boot into fedora, and ping my WAN address i got these messages:
From 192.168.1.1: icmp_seq=0 Redirect Host(New nexthop: 192.168.1.47)
From 192.168.1.1: icmp_seq=1 Redirect Host(New nexthop: 192.168.1.47)
From 192.168.1.1: icmp_seq=2 Redirect Host(New nexthop: 192.168.1.47)
From 192.168.1.1: icmp_seq=3 Redirect Host(New nexthop: 192.168.1.47)
4 packets transmitted, 0 received, 100% packet loss, time 3012ms

where 192.168.1.47 is the static ip for my laptop and it's always 100% packet loss in fc.
So when i try to connect to my ftp (vsftpd) i can only access it using the internal ip 192.168.1.47 but gives me time out msg when i use the WAN ip.
However i can ping my WAN address in winXP normally and receive all packets. I believe the router configuration with static ip and port forwarding is correct because the ftp daemon runs fine in my winXP.
I tried turning off fc firewall and selinux but didn't help.
Anyone know what might be wrong in my fc network configurations? or is it the router settings?

here's a summary of my config printed by system-config-network-cmd:
#configured with static ip, not DHCP
DeviceList.Ethernet.eth0.AutoDNS=false
DeviceList.Ethernet.eth0.Hostname=cxw2097
DeviceList.Ethernet.eth0.HardwareAddress=00:0F:20: 28:AD:16
DeviceList.Ethernet.eth0.Type=Ethernet
DeviceList.Ethernet.eth0.IPv6Init=false
DeviceList.Ethernet.eth0.Netmask=255.255.255.0
DeviceList.Ethernet.eth0.BootProto=dhcp
DeviceList.Ethernet.eth0.Device=eth0
DeviceList.Ethernet.eth0.OnBoot=true
DeviceList.Ethernet.eth0.IP=192.168.1.47
DeviceList.Ethernet.eth0.DeviceId=eth0
DeviceList.Ethernet.eth0.AllowUser=false
DeviceList.Ethernet.eth0.Gateway=192.168.1.1
HardwareList.Ethernet.eth0.Status=ok
HardwareList.Ethernet.eth0.Name=eth0
HardwareList.Ethernet.eth0.Type=Ethernet
HardwareList.Ethernet.eth0.Card.ModuleName=natsemi
HardwareList.Ethernet.eth0.Description=National Semiconductor Corporation DP83815 (MacPhyter) Ethernet Controller
ProfileList.default.ActiveDevices.1=eth0
ProfileList.default.HostsList.1.IP=127.0.0.1
ProfileList.default.HostsList.1.Hostname=localhost .localdomain
ProfileList.default.HostsList.1.AliasList.1=localh ost
ProfileList.default.HostsList.1.AliasList.2=cxw209 7
ProfileList.default.DNS.SecondaryDNS=151.203.0.84
ProfileList.default.DNS.SearchList.1=myhome.westel l.com
ProfileList.default.DNS.Domainname=
ProfileList.default.DNS.Hostname=cxw2097
ProfileList.default.DNS.TertiaryDNS=
ProfileList.default.DNS.PrimaryDNS=141.155.0.68
ProfileList.default.Active=true
ProfileList.default.ProfileName=default

thx in advance for your time reading this through
 
Old 11-09-2005, 04:26 AM   #2
baldy3105
Member
 
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 876

Rep: Reputation: 184Reputation: 184
What you are seeing here is the effect of ICMP redirection. This is done when the router you are using as your default gateway thinks that the best route for the destination you are trying to reach is via another router on the same LAN. Obviously theres no point in you sending packets to router A only for it to forward them to router B when you can send straight to router B yourself. So router A will do an ICMP redirect causing your host to temporarily enter a host specific route for the destination with a next hop of router B.

In your case your router appears to think that the packets you are sending are best forwarded by your laptop. The confusion is occuring on the router so you should look there. I'm guessing you may have inadvertantly configured a route with your laptop as next-hop, either that or your laptop has been configured as a default gateway.
 
Old 11-09-2005, 09:37 AM   #3
dugu98cxw
LQ Newbie
 
Registered: Nov 2005
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for your analysis Pete. I think it's probably not my router's problem. It's more likely my fc4 network configuration problem, since I have both winXP and fc4 on my laptop and my router works for XP. But how exactly should i set up my network in fc4 so my laptop won't be a default gateway or nexthop? I'm really new to linux...
 
Old 11-11-2005, 06:46 AM   #4
dugu98cxw
LQ Newbie
 
Registered: Nov 2005
Posts: 4

Original Poster
Rep: Reputation: 0
after a few more testing i got the following results:
#the router is configured using single static ip for my laptop

when i use dhcp i get this routing table:
Destination Gateway Genmask Flags Metric Ref Use Iface
68.237.53.0 * 255.255.255.0 U 0 0 0 eth0
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
default 68.237.53.1 0.0.0.0 UG 0 0 0 eth0
#192.168.1.0 line is manually added otherwise network unreachable when pinging my private ip

and when i ping my wan and private ip address:
PING 68.237.53.15 (68.237.53.15) 56(84) bytes of data.
64 bytes from 68.237.53.15: icmp_seq=0 ttl=64 time=0.126 ms
64 bytes from 68.237.53.15: icmp_seq=1 ttl=64 time=0.103 ms
64 bytes from 68.237.53.15: icmp_seq=2 ttl=64 time=0.101 ms
64 bytes from 68.237.53.15: icmp_seq=3 ttl=64 time=0.102 ms

and when i ping my wan and private ip address:
PING 192.168.1.47 (192.168.1.47) 56(84) bytes of data.
From 68.237.53.15 icmp_seq=0 Destination Host Unreachable
From 68.237.53.15 icmp_seq=1 Destination Host Unreachable
From 68.237.53.15 icmp_seq=2 Destination Host Unreachable
From 68.237.53.15 icmp_seq=3 Destination Host Unreachable


when i use static ip 192.168.1.47 on my laptop i get this routing table:
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
68.237.53.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
#68.237.53.0 line is manually added otherwise it will say new nexthop 192.168.1.47 and all packets lost

PING 68.237.53.15 (68.237.53.15) 56(84) bytes of data.
From 192.168.1.47 icmp_seq=0 Destination Host Unreachable
From 192.168.1.47 icmp_seq=1 Destination Host Unreachable
From 192.168.1.47 icmp_seq=2 Destination Host Unreachable
From 192.168.1.47 icmp_seq=3 Destination Host Unreachable

PING 192.168.1.47 (192.168.1.47) 56(84) bytes of data.
64 bytes from 192.168.1.47: icmp_seq=0 ttl=64 time=0.129 ms
64 bytes from 192.168.1.47: icmp_seq=1 ttl=64 time=0.104 ms
64 bytes from 192.168.1.47: icmp_seq=2 ttl=64 time=0.105 ms
64 bytes from 192.168.1.47: icmp_seq=3 ttl=64 time=0.104 ms

anyone know what's going on? =0
my ftp server can't be reached from the internet in either case, i supposed it's correctly set up when i can ping both my wan and private ip address?

Last edited by dugu98cxw; 11-11-2005 at 06:49 AM.
 
Old 11-11-2005, 07:21 AM   #5
okmyx
Member
 
Registered: May 2004
Location: Cornwall, UK
Distribution: Ubuntu 8.04
Posts: 464

Rep: Reputation: 31
The second configuration is more correct than the first one

In the first one your gateway is set to 68.237.53.1 which is odd.

Your router should be configured with a 68.237.XX.XX address for its external adapter and a 192.168.XX.XX address for the internal network (hence 192.168.1.1 as the gateway in the second config). The router should then be configured for NAT to act has a firewall separating your internal network from the outside world.

As for accessing your ftp for the outside, have you setup any port forwarding rules on your router? i.e mapping the external 68.237.XX.XX address to your internal 192.168.1.47 address.

internet <--> router <--> port forwarding rule <--> ftp server

Also have you tried copying the network config from xp to FC4?
 
Old 11-11-2005, 10:15 AM   #6
dugu98cxw
LQ Newbie
 
Registered: Nov 2005
Posts: 4

Original Poster
Rep: Reputation: 0
finally i got my ftp working by assigning WAN address to my NIC in addition to it's internal ip from static ip setting by using the command:
ifconfig eth0:0 68.237.53.15 netmask 255.255.255.0 up

so now i can connect to my ftp from both internal and external. how odd....
will there be any kinda problem with this set up though?
 
  


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
Routing problem Infernal211283 Linux - Networking 3 02-28-2005 02:59 AM
Serious problem of routing exalik Linux - Networking 1 05-03-2003 06:21 PM
Help With Routing Problem LAR12345 Linux - Networking 6 02-04-2003 02:40 PM
routing problem manthram Linux - Networking 6 04-01-2002 07:42 PM
Routing Problem mkhan Linux - Networking 1 07-01-2001 04:09 AM


All times are GMT -5. The time now is 05:11 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration