Linux - NetworkingThis 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.
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.
I set both network cards for DHCP. Then I typed "service network restart"
Here is my address according to ifconfig:
eth0: 192.168.1.103
eth1: 192.168.1.102
These are DHCP addresses, because the DHCP server gives out addresses in the range 192.168.1.100 to 192.168.1.199
I ping each of those addresses from Windows ME:
Code:
Pinging 192.168.1.102 with 32 bytes of data:
Reply from 192.168.1.102: Destination port unreachable.
Reply from 192.168.1.102: Destination port unreachable.
Reply from 192.168.1.102: Destination port unreachable.
Reply from 192.168.1.102: Destination port unreachable.
Ping statistics for 192.168.1.102:
Packets: sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip time in milliseconds:
Minimum = 0 ms, Maximum = 0 ms, Average = 0 ms
If I ping the router from the server:
Code:
[root@localhost] # ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) from 192.168.1.103 : 56(84) bytes of data.
--- 192.168.1.1 ping statistics ---
5 packets transmitted, 0 packets received, 100% packet loss
[root@localhost] #
Have you tried rebooting the box? That will reload the kernel and, since everything looks OK but still doesn't work, that is definitely something worth trying at this stage.
Could ICMP be disabled somehow? How can I test to see if other protocols are working? I can get an IP after all...
Yes ICMP could be turned off. There is a file in /proc/net I think you do a echo "1">/proc/net/somefile but I cant find it on my system right now. I'll look some more.
I already modified this file (previous page)... it gave me the ability to ping 127.0.0.1 and my own IP. Before that i couldn't even ping myself, but now I can.
Still can't ping anyone else though. What puzzles me is how can I get an IP address from the router but not be able to ping it? And I can not access the Linux server from Windows using https:?
I'd suggest job #1 is to disable the NIC you intend to use for the ADSL modem, and get the Linux box working as an ordinary network client. Something like "ifconfig eth1 down". That should also kill any forwarding for now. To eliminate all possible confusion you could go as far as removing the card from the server.
Only after the Linix machine can play ball with the XP boxes, without sulking, would it be safe to use it as a firewall/router.
The job it will need to do is to convince all the XP machines that IT is an ADSL modem/router. That means it must provide the same services: DHCP and routing/NAT.
It is difficult tracking down problems on a live network, so always try to isolate and identify each problem. Make things a simple as possible. I see the second NIC as a continual source of uncertainty, so I'd suggest removing it until it's needed.
Sorry for not paying attention. I have read this whole thread but I have read several more just like it and I sometimes forget the specifics of what has and hasn't been done.
You could try tcpdump. Here is what it might look like if you sent one ping out to your router on eth0:
1. Here is how my network is currently set up. I have 20 Windows XP Professional workstations. Currently, they are cabled into a 3Com hub in a shared server room. The hub is connected to the DSL modem which also acts as a router AND a DHCP server for 192.168.1.1XX. Most of my XP computers are set up to use DHCP from the router.
Is this still how the routing table looks because if so then your default route is wrong.
You have eth1 -> 192.168.2.1 = default gateway and I think it should be eth0. You could try changing GATEWAYDEV=eth1 to eth0 in /etc/sysconfig/network .
(found this command in another thread) nmap -sP 192.168.1.0/24
says "Host (192.168.1.XXX) appears to be up"
Nmap run completed -- 256 IP addresses (20 hosts up) scanned in 6 seconds
AND, I have both shorewall and what seems to be a huge iptables file. Could these be interfereing with my connectivity somehow? How can I disable/test this?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.