PDA

View Full Version : I need help setting up a network


cardinal II
2004-12-23, 10:09 PM CST
Hi all.

I am running Fedora Core 3 on my pc, I have two network cards. One runs directly to another pc running Windows XP. I have searched the forum and googled for a few weeks trying to set it up. My internet works fine on my Fedora box (the gateway). Both NICS are enabled, one is dynamically assigned, the other static. I have installed DHCP and BIND. I have only tried using firestarter at this stage.

Any ideas?

*ifconfig* generates these results.

-------------------------------------------------

eth0 Link encap:Ethernet HWaddr 00:50:BA:F8:E7:25
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::250:baff:fef8:e725/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:163 errors:0 dropped:0 overruns:0 frame:0
TX packets:135 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:27094 (26.4 KiB) TX bytes:12656 (12.3 KiB)
Interrupt:10 Base address:0xdc00

eth1 Link encap:Ethernet HWaddr 00:E0:29:68:48:30
inet addr:211.28.69.165 Bcast:211.28.69.255 Mask:255.255.255.0
inet6 addr: fe80::2e0:29ff:fe68:4830/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:70323 errors:0 dropped:0 overruns:0 frame:0
TX packets:6829 errors:0 dropped:0 overruns:0 carrier:0
collisions:43 txqueuelen:1000
RX bytes:9219074 (8.7 MiB) TX bytes:1011711 (987.9 KiB)
Interrupt:11 Base address:0xd800

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:1803 errors:0 dropped:0 overruns:0 frame:0
TX packets:1803 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2065011 (1.9 MiB) TX bytes:2065011 (1.9 MiB)



-------------------------------------------------

Thanks in advance.

Vinny
2004-12-24, 08:23 AM CST
from your snap shot can see that there are errors on the rx packets. that the ip add is 211.28.69.165 i would guess that it is not set up correctly.
i would hope you have samba set up. i believe that samba can get your windows box talking to your fedora box.
i have tried to set up a server and there is more work needed than normal plug and go. try pinging from fedora box to win box and show results.
regards Vinny

cardinal II
2004-12-27, 12:49 AM CST
Hi Vinny. That ip address 211.* is assigned by my ISP on my external adapter. I have not set up samba, do I need to in order to enable internet connection sharing? I have no idea how to set up samba neither :s

At this stage pinging the other pc results in a time out.

Thanks again. Any other ideas?

- Card

Vinny
2004-12-27, 08:01 AM CST
if you can not ping then there is a problem with
nic card
ip not set up
protocols
routing
config
id suggest a search for setting up the pc same as someone else. to compare config and settings. if you cant ping ip add its not going to work.
Vinny

yakleo3
2004-12-27, 08:07 AM CST
There is no need to set up Samba if you simply want your FC3 to works at your gateway. Samba is for file & print sharing with windows machines. Did you configure your windows machine to run DHCP?

harlequin
2004-12-27, 03:35 PM CST
I found this (http://www.linuxquestions.org/questions/showthread.php?s=&threadid=269969) yesterday, it may be of some use, it sounds to be almost exactrly the same as what you're trying to do.

cardinal II
2004-12-30, 08:35 AM CST
There is no need to set up Samba if you simply want your FC3 to works at your gateway. Samba is for file & print sharing with windows machines. Did you configure your windows machine to run DHCP?


Nope. I don't know how. Can you help me there?

I found this (http://www.linuxquestions.org/questions/showthread.php?s=&threadid=269969) yesterday, it may be of some use, it sounds to be almost exactrly the same as what you're trying to do.

That is very similar. However the guy doesn't really go on to explain much :s

harlequin
2004-12-30, 08:37 PM CST
My Xp box is connected to a router (and thus the internet) via a wireless connection, I wanted to set it up so that I could acces the net via my FC3 Box connected via ethernet.

I went in to the networking page in XP, and told it to allow other netwroks to share the wireless connection (I forget the exact phrase, but I think it's under advanced, and it'll only show up if there is another netwrok card installed). Once you do that, it'll tell you that it's setting the IP address of the Ethernet card to (in my case) 192.168.0.1. I then allowed FC3 to get the address by DCHP, and it works. This post was written using my FC3 box.

I hope that helps.

DRE.ORGY.NET
2004-12-31, 11:32 PM CST
On your XP box you will need to do the following

seeing as your NIC which connects to your lan has an IP address of 192.168.0.1 your windows XP machine will also need to have an IP address of the same range.

I suggest giving your windows XP a static IP this will just make things eaiser eg 192.168.0.2. You will need to set your default gateway as the NIC which connects to your LAN on your fc3 box (192.168.0.1)

what this does is your windows xp machine will firstly have an ipaddress in the same range so both pcs will be able to communicate, secondly it will use 192.168.0.1 as the gateway to access any external sites.

The next part you will need to do is route NIC1 to NIC2 (your internal nick to your external nick) you are pretty much making your fc3 machine the router.

you can find more info on how to do this here http://www.linuxquestions.org/questions/showthread.php?threadid=26013

its pretty straight forward but let us know how you go.