Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
11-08-2005, 11:42 PM
|
#1
|
LQ Newbie
Registered: Nov 2005
Posts: 4
Rep:
|
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
|
|
|
11-09-2005, 05:26 AM
|
#2
|
Member
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 891
Rep:
|
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.
|
|
|
11-09-2005, 10:37 AM
|
#3
|
LQ Newbie
Registered: Nov 2005
Posts: 4
Original Poster
Rep:
|
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...
|
|
|
11-11-2005, 07:46 AM
|
#4
|
LQ Newbie
Registered: Nov 2005
Posts: 4
Original Poster
Rep:
|
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 07:49 AM.
|
|
|
11-11-2005, 08:21 AM
|
#5
|
Member
Registered: May 2004
Location: Cornwall, UK
Distribution: Ubuntu 8.04
Posts: 464
Rep:
|
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?
|
|
|
11-11-2005, 11:15 AM
|
#6
|
LQ Newbie
Registered: Nov 2005
Posts: 4
Original Poster
Rep:
|
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?
|
|
|
All times are GMT -5. The time now is 01:17 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|