View previous topic :: View next topic |
Author |
Message |
xafwodahs n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 17 Oct 2005 Posts: 21
|
Posted: Thu Nov 16, 2006 2:42 pm Post subject: Networking newbie question here. |
|
|
Hi guys and girls, beeing the noobie I am, I can not solve this problem; hope somebody can suggest a solution.
In my office there is a LAN connected via router/modem to a server abroad.Local machines are running XP with Novell client for login.
I would like to set up a local server (gentoo if possible) to be accessed by local machines only.
I tried to connect a machine running gentoo to the local network but for now I did not even succesfully manage to ping other pcs. I checked network cable and ethernet card and they are both ok, so there must be something else.Can anybody help, at least to solve the ping problem.
Thanx in advance.Have a nice day |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
xoomix Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/404368753f421b62b1063.gif)
Joined: 02 Jan 2003 Posts: 489
|
Posted: Thu Nov 16, 2006 2:51 pm Post subject: |
|
|
We're gonna need network info from you - subnet info, ip addresing, and your Gentoo system's 'ifconfig' output + 'route -n' output. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
batistuta Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/gallery/Monkey Island/Monkey_Island_-_Lechuck3.gif)
Joined: 29 Jul 2005 Posts: 1384 Location: Aachen
|
Posted: Thu Nov 16, 2006 2:54 pm Post subject: |
|
|
are you running dhcp? Make sure you have a valid ip address and that the mask is correct. Also make sure your router allows connection between the various machines. There is usually an option for that.
Another reason why the ping might not be answered is if the machine your are trying to ping has a firewall. Check if machines can ping with each other |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
heavydwitstyle n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Cars/3.gif)
Joined: 24 Nov 2005 Posts: 44
|
Posted: Thu Nov 16, 2006 2:57 pm Post subject: |
|
|
Also could you please specify if you are trying to ping these other computers by name or by IP address.
If you are trying to ping by name it could also be a name resolution problem.
Code: | cat /etc/resolv.conf |
Thanks ![Smile :)](images/smiles/icon_smile.gif) _________________ Dual Core - Pentium D 805 - 2 x 2.66Ghz
2048MB DDR533 Crucial Memory
2x 320Gb WD SATA2
---
MacBook Pro running OS X 10.4.8 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
xafwodahs n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 17 Oct 2005 Posts: 21
|
Posted: Thu Nov 16, 2006 4:07 pm Post subject: |
|
|
First of all thank you all for your replies.
For xoomix:
ifconfig:
eth0 Link encap:Ethernet HWaddr 00:50:FC:08:92:BC
inet addr:10.5.75.50 Bcast:10.5.75.255 Mask:255.255.255.0
inet6 addr: fe80::250:fcff:fe08:92bc/64 Scope:Link
UP BROADCAST NOTRAILERS MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:75 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:10466 (10.2 Kb)
Interrupt:11 Base address:0x7000
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:740 errors:0 dropped:0 overruns:0 frame:0
TX packets:740 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:44922 (43.8 Kb) TX bytes:44922 (43.8 Kb)
route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.5.75.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.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 10.5.75.1 0.0.0.0 UG 0 0 0 eth0
For batistuta:
We have static IP addresses withi the local network. WWith the XP machines we can ping any machine from anyother machine. Some of us have shared files on their machine which can be accessed from within the local network without any problem. I am sure the IP I use is a valid one simply because I unplugged my XP machine from the local network and used the TCP/IP settings for the Linux machine.
For heavydwitstyle:
I only tried pinging by IP address |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
xoomix Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/404368753f421b62b1063.gif)
Joined: 02 Jan 2003 Posts: 489
|
Posted: Thu Nov 16, 2006 4:16 pm Post subject: |
|
|
Can you ping your own gateway, being 10.5.75.1 ? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
xafwodahs n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 17 Oct 2005 Posts: 21
|
Posted: Fri Nov 17, 2006 7:39 am Post subject: |
|
|
No, I can't. I get a "Destination Host Unreachable" message. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Rad Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 11 Feb 2004 Posts: 401 Location: Bern, Switzerland
|
Posted: Fri Nov 17, 2006 8:11 am Post subject: |
|
|
Are you sure the gateway does not associate certain ips with their respective mac address and drops all other combinations?
Also, is there anything in dmesg / mii-tool that would indicate that the link negotiation between the NICs failed? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
batistuta Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/gallery/Monkey Island/Monkey_Island_-_Lechuck3.gif)
Joined: 29 Jul 2005 Posts: 1384 Location: Aachen
|
Posted: Fri Nov 17, 2006 8:23 am Post subject: |
|
|
Do you have a spare hub somewhere? You could try hooking two machines to a hub, and then the hub to the router rather than both machines to the router. In this case you would know if the problem is the router dropping packages or the host configuration. You could also try a crossover cable between two machines. Also, can you ping localhost? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
xafwodahs n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 17 Oct 2005 Posts: 21
|
Posted: Fri Nov 17, 2006 9:11 am Post subject: |
|
|
For rad (thank you for getting involved):
Quote: | Are you sure the gateway does not associate certain ips with their respective mac address and drops all other combinations? |
I have changed IP address on one of the XP machines and everything works fine; I can ping other machines and access internet through the server abroad. I guess (but I am not sure) that this means that IPs and MAC addresses are not associated. Am I right?
Quote: | Also, is there anything in dmesg / mii-tool that would indicate that the link negotiation between the NICs failed? |
The use of dmesg |mii-tool leads to a message stating "operation not supported no MII interfaces found"
For batistuta:
I do not have a spare hub and the machines are connected to the router via a 24 port 10/100 Mbps switch.
I did not try the crossover cable option. Concerning pinging localhost, I was successful. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
xafwodahs n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 17 Oct 2005 Posts: 21
|
Posted: Fri Nov 17, 2006 9:54 am Post subject: |
|
|
For batistuta:
I tried the crossover cable connection; the XP machine can succesfully ping the Linux machine.
The ping command from Linux to Xp looks like this:
---------------------------------------------------
linux: ~# ping 10.5.75.11
PING 10.5.75.11 (10.5.75.11) 56(84) bytes of data
---------------------------------------------------
no further message is displayed |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
batistuta Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/gallery/Monkey Island/Monkey_Island_-_Lechuck3.gif)
Joined: 29 Jul 2005 Posts: 1384 Location: Aachen
|
Posted: Fri Nov 17, 2006 10:14 am Post subject: |
|
|
If you can ping XP and linux machine each other using the crossover cable, that looks like a switch issue to me. I'm not sure if you've said this: but can other machines ping you (when connected via the switch)?
I'm starting to think the problem is your switch. The thing is that switches route based on MAC addresses, while routers route based on IP addresses. Your switch is routing via MAC address, which might be the reason why changing the IP address on an XP machine does not brake the layout, but recycling a working IP address on your linux box does brake it. It would be interesting to boot your linux box on XP (if you have a dual boot setup) and see if that works.
I don't have any experience configuring switches, but I suspect the problem is somewhere there. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
xafwodahs n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 17 Oct 2005 Posts: 21
|
Posted: Fri Nov 17, 2006 10:27 am Post subject: |
|
|
update.
I forgot that the XP machines are firewalled , that is why the ping command with crossed over cable would not work from linux to xp. Once the firewall is disabled the ping command works fine both ways.
Thank you for explaining the difference between routing via switch and via router (I did not know that); I will try and find out information concerning the configuration of the switch; |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
xafwodahs n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 17 Oct 2005 Posts: 21
|
Posted: Fri Nov 17, 2006 10:31 am Post subject: |
|
|
I forgot one:
Quote: | I'm not sure if you've said this: but can other machines ping you (when connected via the switch)? |
No, other machines will get the "Destination host unreachable" reply after pinging the linux box while connected to the switch. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
batistuta Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/gallery/Monkey Island/Monkey_Island_-_Lechuck3.gif)
Joined: 29 Jul 2005 Posts: 1384 Location: Aachen
|
Posted: Fri Nov 17, 2006 10:34 am Post subject: |
|
|
xafwodahs wrote: | Thank you for explaining the difference between routing via switch and via router (I did not know that) | Please not that what I've said is based on theorerical university course that I've taken 5 years ago. Things might have changed by now, and switches might do more than the "pure switch". For example, home routers are also switches, but they never say that.
So take that as a guide, but not as a truth and check with your switch! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
xafwodahs n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 17 Oct 2005 Posts: 21
|
Posted: Fri Nov 17, 2006 1:21 pm Post subject: |
|
|
I checked both the installation guide and the maker's site (usr), but found nothing. Infact when we first bought the device we did not configure anything. Perhaps the problem is with the router... |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|