PDA

View Full Version : activate network problem


philippjosefric
2005-04-06, 11:31 PM CDT
I am using FC3 on both mashines of the network.
1.Question:
In order to have a local net I installe the 1. PC as a Server and thougth the second could be a workstation.
No I was told, that in LINUX this is not necessary: to run a network I can use two PCs, which are installed as workstation. Is tahat true? I thought i PC must work as a server, the others can be workstations.

2. Question: Because I want to make an other local somewere else, which I am testing at home
I had my 2nd PC(which will be the server of the other local network) installed as Server as well.
Now I have two FC3-servers linked together via crossed over cable (which had worked recently with Mandrake and Fedora). At the first PC eth0 is activated, at the 2nd PC I cannot activate eth0. And that is my problem.

On the first PC I am in the internet via ISDN-Modem.
[root@zentrale erwin]# route
Kernel IP Routentabelle
Ziel Router Genmask Flags Metric Ref Use Iface
LRIET032.highwa * 255.255.255.255 UH 0 0 0 ppp0
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
default LRIET032.highwa 0.0.0.0 UG 0 0 0 ppp0

[root@zentrale erwin]# ifconfig
eth0 Protokoll:Ethernet Hardware Adresse 00:0C:76:3D:0F:62
inet Adresse:192.168.0.1 Bcast:192.168.0.255 Maske:255.255.255.0
inet6 Adresse: fe80::20c:76ff:fe3d:f62/64 Gültigkeitsbereich:Verbindung
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:55 errors:0 dropped:0 overruns:0 frame:0
TX packets:83 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:1000
RX bytes:18810 (18.3 KiB) TX bytes:9213 (8.9 KiB)
Interrupt:11 Basisadresse:0xee00

lo Protokoll:Lokale Schleife
inet Adresse:127.0.0.1 Maske:255.0.0.0
inet6 Adresse: ::1/128 Gültigkeitsbereich:Maschine
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:91696 errors:0 dropped:0 overruns:0 frame:0
TX packets:91696 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:0
RX bytes:9436859 (8.9 MiB) TX bytes:9436859 (8.9 MiB)

ppp0 Protokoll:Punkt-zu-Punkt Verbindung
inet Adresse:62.46.221.183 P-z-P:195.3.89.121 Maske:255.255.255.255
UP PUNKTZUPUNKT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:719 errors:0 dropped:0 overruns:0 frame:0
TX packets:770 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:3
RX bytes:330560 (322.8 KiB) TX bytes:110774 (108.1 KiB)


On the second PC I want to connect via first PC to Internet and want to get access to files of the first PC and as well I want to be able to log into the first PC. In oder to make these three tasks
I created a new network-device with "Netzwerk-Konfiguration" and made it "automatic IP with DHCP" This should bi correct, because once I could run the network like this. But now system-config-network cannot activate this new device.
I thought, I did everything like bevor, but I cannot gain access to the network. What did I wrong?

PC2:
[root@philipp erwin]# ifconfig
eth0 Protokoll:Ethernet Hardware Adresse 00:0F:FE:0C:DF:02
inet6 Adresse: fe80::20f:feff:fe0c:df02/64 Gültigkeitsbereich:Verbindung
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:1000
RX bytes:0 (0.0 b) TX bytes:2128 (2.0 KiB)
Interrupt:177

lo Protokoll:Lokale Schleife
inet Adresse:127.0.0.1 Maske:255.0.0.0
inet6 Adresse: ::1/128 Gültigkeitsbereich:Maschine
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2281 errors:0 dropped:0 overruns:0 frame:0
TX packets:2281 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:0
RX bytes:1979480 (1.8 MiB) TX bytes:1979480 (1.8 MiB)

[root@philipp erwin]# route
Kernel IP Routentabelle
Ziel Router Genmask Flags Metric Ref Use Iface
169.254.0.0 * 255.255.0.0 U 0 0 0 lo


I realise, there is a strenge route: 169.254.0.0 Where does this come from?
I did not make it.
The adress of PC1 is 192.168.0.1 and PC2 192.169.0.10

What can I do to connect the two PCS correct?

Thanks
Philipp

Zigzagcom
2005-04-07, 02:26 AM CDT
Where is your DHCP server? Is it the ISDN modem or PC1?
I think that DHCP may be your problem, but a schematic of your network configuration would help.
Your second PC will have a hard time seeing the Router or ISDN modem if PC1 is not forwarding traffic. I also do not see an IPv4 address in the ifconfig of PC2.
169.254.0.0 is a default IP block when it cannot find one via DHCP. It's an APIPA address. :D

Schoenen Tag da drueben...

philippjosefric
2005-04-07, 05:57 AM CDT
Danke für die Antwort http://www.fedoraforum.org/forum/newreply.php?do=newreply&p=238085#

My local net:

PC2(philipp) <============>PC1(zentrale)=======>via ISDN-Modem to the internet (automatic IP with DHCP)
PC1 and PC2 run FC3 (installed as server)

"Where is your DHCP server? Is it the ISDN modem or PC1"

This is the first thing, that I do not understand exactly:
The first PC gains his adress-names from the Internet, I suppose from the provider.
The second, well, I do not know: I have written all my actual adresses plus all adresses of PCs in future of the planed local net in both /etc/hosts, these /etc/hosts of both PCs are equal and I thougth, both PCs fetch their PC-names from there:
cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.0.1 zentrale.roith.local zentrale z
192.168.0.10 philipp.ordination.local philipp ord
192.168.0.2 labtop.roith.local labtop l
192.168.0.22 anmNetDrk.ordination.local anmNetDrk
192.168.0.20 anmeldung.ordination.local anmeldung anm
192.168.0.21 eCardA.ordination.local ecardA

"PC1 is not forwarding traffic"

This is the second question:
With Mandrake10,0 I had to klick on "Internet freischalten" which mad the forwarding automatically. How do I do this function at FC3?

But without forwarding PC2(philipp) should gain acces to PC1 anywhere, isn't it?

How do I get an IPv4 adress?

There are some things which I do not understand good. But this is LINUX, it is not boring http://www.fedoraforum.org/forum/newreply.php?do=newreply&p=238085#


Danke für die Hilfe von drüben.
Drüben scheint der die schöne "Neue Welt" (Nordamerika) zu sein, die ich noch nicht kenne.zu sein, oder ? Ich bin aus dem kleinen Österreich. Klein, aber fein.

Freundliche Grüße
Philipp





:p

Zigzagcom
2005-04-07, 02:44 PM CDT
:)
Phillip, Austria is a nice place, been there many times.
Anyway, you have a configuration that may be overkill, but then who knows where that will lead you. By the time you have your two servers figured out, you'll be a guru.
Your questions are about a huge subject, and without you doing the hard work of reading as much as you can handle, it is difficult to help you in a forum where we have limited time.

The best thing you can do is to buy a "8-port switch" or a "4-port router". This will allow you to expand your network. I assume that you have only one output from the ISDN modem. That output would plug into the switch or router, and then you could plug your boxes into one of those devices. If your modem has a built in DHCP 'server', your boxes would be assigned private IP addresses via a switch, but your ethernet devices on each box would need to be configured to accept IP's via DHCP. On a router, it would most likely provide the DHCP service.You would also need to read the documentation of your modem to find out what type of cable to use to connect to the switch or router. It may be a cross-over cable.
Do not get the DHCP service on the WAN side of your modem confused with DHCP on you internal network. The WAN side is DHCP from your ISP, for their purposes.

On your previous Mandrake system you probably were using a feature called "Internet Connection sharing". You may be able to get that going via "Applications>SytemTools>Internet Configuration Wizard on PC1.

IPv4 is the current standard of IP addressing and it's associated protocols. It uses 32 bit addressing, and the decimal representation of such an address is 192.168.1.1 for example. IPv6 or IPnG is a 128 bit standard, and many networks do not support it yet, but some softwares have it built in for future compatibility. It can get confusing.

PC2 appears not to have a static IPv4 address assigned to its network interface card, so no matter how many hosts and IP's you put into the hosts file, you won't be able to communicate with PC1 or any other PC's on the inside network. Try going to Applications>SystemTools>NetworkDeviceControl and assigning an IP address to the eth0 interface, and make sure it is activated. The address to assign might be 192.168.0.10, but I'm not sure about your network. Remember to "save" the configuration.
A restart may be required.

Hope it helps... :D

...wipes sweat from his brow...LOL

philippjosefric
2005-04-07, 11:38 PM CDT
Thanks for this answer.
Unfortunately IMy Tango1000 ISDN-Modem has not got an jack for the net, only the telephone-jack. It is a serial Modem.

But aour informatin is important for me becaus in my work (I am General practitian) I will have to install a LAN as well. Austria is now making a medical intranet and the insurance will give me a router, from which I will be abel to
enter this secure intranet. There will be a second line to a peering-point where we will have access to the internet.
We will see, how this will work. The whole thing is verry new for us.

Now I gave the PC2 a static adress(192.168.0.10) and ping does work :-))
Ping from both sides OK.

Now I will have to connect this Eth0-line from PC2 to PC1 to the running internet-connection
of PC1 via serial modem. That means, PC1 should work as a gatway for PC2.
I Suppose, I would have to do this by adding an adequate route in PC2. Something likt that it must be the solution. Propably Mandrake did this for me with one Click.

Thands for ideas
Philipp

Zigzagcom
2005-04-08, 12:13 AM CDT
Phillip, now that you explained about your ISDN modem, your network makes more sense.
I am a bit lost with linux as well, so I cannot tell you exactly how to link your nics in PC1, other than that you could point the nic in PC1 (which is connected to PC2), towards the interface (serial?) that is connected to the modem. Hope that gives you some ideas.

Tschuess und viel spass.