LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Router > LAN (https://www.linuxquestions.org/questions/linux-networking-3/router-lan-452464/)

linmix 06-07-2006 12:20 PM

Router > LAN
 
I have just installed a Sagem F@st 1500WG router for my ADSL connection. linked up to the router with a crossover cable is my FC4 box and my second box, WinXP is connected to the same router via a WiFi card.

I can connect to the internet from both boxes, but would now like to learn if and how I can use the router to create a LAN so I can share files between boxes.

I'm at a loss where to start (reading) and would greatly appreciate any good pointers.

WorldBuilder 06-07-2006 12:48 PM

A router doesn't "create" a LAN. It allows one LAN, WAN, etc to talk to other LAN's, WAN's, etc.

If you want to share files between FC4 and XP, use Samba. www.samba.org

HTH,

Chris

linmix 06-07-2006 12:59 PM

Thanks for responding so quickly.
I didn't think the router would just magically create a LAN, but since I'm not connecting two PCs directly i.e. networkcard>networkcard but there's a router in between I thought there might be other things to keep into consideration.

EvilC0P 06-07-2006 01:05 PM

IPs... as long as your machine are configured properly, then both shoudl be able to see each other.
do a ping test. try to ping your Windows machien from your linux and vice versa. if you can reach it, then you are fine.

to share files, on your Linux, you'll have to configure Samba.

georider 06-07-2006 01:12 PM

Since no one else has mentioned yet, your Sagem F@st 1500WG should have a 4 port switch.

This is for your LAN.

HTH

g

linmix 06-08-2006 07:00 AM

Quote:

Originally Posted by EvilC0P
IPs... as long as your machine are configured properly, then both shoudl be able to see each other.
do a ping test. try to ping your Windows machien from your linux and vice versa. if you can reach it, then you are fine.

to share files, on your Linux, you'll have to configure Samba.

Thanks! I'll have to learn to ping then...

linmix 06-08-2006 07:01 AM

Quote:

Originally Posted by georider
Since no one else has mentioned yet, your Sagem F@st 1500WG should have a 4 port switch.

This is for your LAN.

HTH

g

Yes, but as I explained in my initial post One PC is connected to the switch, the other through WiFi, but I imagine it shouldn't make a difference (or should it?)

WorldBuilder 06-08-2006 07:14 AM

No, that shouldn't make a difference. The wifi is still part of the same switch (which is also your router). To ping, type "ping xxx.xxx.xxx.xxx" where the X's are the IP address of the other machine. If you get replies, you can see the other box.

Then look into configuring Samba to share files between FC4 and XP.

Chris

linmix 06-08-2006 07:33 AM

I've been able to find my linux box's IP, now for the WinXP part...

EvilC0P 06-08-2006 07:59 AM

in Linux, console you type this command : "ifconfig"

in windows XP, Start->Run...->cmd
and in the dos prompt, type : "ipconfig"

all commands without the quotes " "

then you get your results. type them here, we can tell you if it's fine.

WorldBuilder 06-08-2006 10:17 AM

Yes, in linux the command is "ifconfig /a" and in XP it's "ipconfig /all"

linmix 06-08-2006 04:45 PM

XP: 'ipconfig' or 'ipconfig /all' => a dos window pops open and closes instantaneously ??

Linux: ipconfig isn't installed... I'm looking for the rpm

linmix 06-08-2006 05:04 PM

winXp: I should have issued the command from the dos prompt! I've got some IP info now.

WorldBuilder 06-08-2006 05:37 PM

Linmix,

On linux, the command is "ifconfig /a" "iF", not "iP". And while you're at it on the linux box, ping your XP machine with "ping the.xp.ip.ady". Example: "ping 192.168.1.2" since you're probably on a 192 range.

Chris

linmix 06-08-2006 11:48 PM

Thanks. That did it.
FC4: ifconfig -a tells me inet addr: 192.168.0.10 and Bcast:192.168.0.225
if I run ping 192.168.0.10 from XP it works.

XP: ipconfig /all tells me IP addr: 192.168.0.11
if I run ping 192.168.0.11 frm FC4 all packets get lost. Ping works, because I can ping the router at 192.168.0.1

where do I go from here?


All times are GMT -5. The time now is 04:28 PM.