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.
My Intel (865GBF) system runs Mandrake 10.0 Official. It was having one D-Link LAN Card and worked fine as our server. We wanted to attach an ADSL to it and so we have added another LAN Card (This time Realtek). The configuration of the new LAN Card is all right, i suppose. But, later, both of the LAN cards refuse to work. I have removed the new Lan Card but, still my Lan does not work.
I am able to ping 127.0.0.1 and the server IP 192.168.2.3 (original IP of the same server).
When I ping other machine on the Lan, I am getting the following error:
From 192.168.2.3 icmp_seq=1 Destination Host Unreachable
Ping: sendmsg: Operation not permitted
Here is the ifconfig result. As the server on which the linux runs is not networked, I had to type the ifconfig output manually to post it here.... ( So, please forgive the spelling mistakes, if any.
-----------
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:80:48:35:EC:64
inet addr:192.168.2.3 Bcast:192.168.2.255 Mask: 255.255.255.0
inet6 addr: fe80::280:48ff:fe35:ec64/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:763 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:61237 (59.8 Kb) TX bytes:678 (678.0 b)
Interrupt:18 Base address:0xec00
If I have to change the lo's Mask, how can I do that?
Secondly, the cable are tested and good ones. I restarted my Linux box several times. The output of 'route -n' is given below.
------
#route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
------
I think the output of route -n must be something more. But, I dont get any result than the above. I logged in as root user only to generate this empty output.!!!
I applied ifconfig to change the netmask of lo. It did change the netmask.
I tried applying the commands "route add 192.168.2.0 netmask 255.255.255.0 gw 0.0.0.0" etc, but, it did not get through. I got the error message while running the above command.
It is :
---
route: netmask 000000ff doesn't make sense with host route.
---
The rest of the error message is the "man" pages of route.
I searched the man pages and found that 'route add' command example. I modified your command to look like the following.
--
route add -net 192.168.2.0 netmask 255.255.255.0 eth0
--
Note that I have added -net portion on your command and removed gw portion, instead added eth0. When I tried the above command, I got the following error:
I read the man pages carefully and ran the commands to create routes. Now my route -n looks like this. What next has to be done? Can you makeout anything further?
----------
# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.2.3 0.0.0.0 UG 0 0 0 eth0
----------
Good, glad you got some routing tables set up. Now... what happens when you try to connect? Like if you try to ping another computer on the same subnet? Ping 192.168.2.XXX?
When I ping'ed 192.168.2.80, I got the following (same) reply.
-----
Ping: sendmsg: Operation not permitted
From 192.168.2.3 icmp_seq=1 Destination Host Unreachable.
-----
Please help.
What about IPTABLES? Do you have a firewall running and if so, try clearing it. Check with the command "iptables -L INPUT" and "iptables -L OUTPUT" to see if there are any DENY rules.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.