 |
 |
 |
 |
| Networking Networking with Fedora such as dhcp, IP numbers, wlan, modems, etc. |

2008-06-02, 01:42 PM CDT
|
|
Registered User
|
|
Join Date: May 2008
Location: Wiltshire, UK
Posts: 32

|
|
|
How to network
Hi
I have just installed Fedora 9 on two machines. Both fresh installs. No dual boot; just Fedora.
I now wish to create a wired network between the two. I have a hub and two cat5 cables. All are connected. From here, I'm stuck!
I've been fiddling about for ages with the various iwconfig and ifconfig commands but all I've ended up doing is brining down my wireless internet connection which isn't very handy!
Can anyone point me in the right direction!?!
Here's my ifconfig if it helps:
Code:
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:12886 errors:0 dropped:0 overruns:0 frame:0
TX packets:12886 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:644460 (629.3 KiB) TX bytes:644460 (629.3 KiB)
wlan0 Link encap:Ethernet HWaddr 00:17:3F:8E:03:33
inet addr:192.168.1.64 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::217:3fff:fe8e:333/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1531 errors:0 dropped:0 overruns:0 frame:0
TX packets:1501 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:760806 (742.9 KiB) TX bytes:297465 (290.4 KiB)
wmaster0 Link encap:UNSPEC HWaddr 00-17-3F-8E-03-33-F4-CF-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Regards,
Jon
|

2008-06-02, 02:14 PM CDT
|
 |
Registered User
|
|
Join Date: Oct 2006
Location: Lincoln, NE
Age: 51
Posts: 420

|
|
Quote:
|
Originally Posted by reeksy
Hi
I have just installed Fedora 9 on two machines. Both fresh installs. No dual boot; just Fedora.
I now wish to create a wired network between the two. I have a hub and two cat5 cables. All are connected. From here, I'm stuck!
I've been fiddling about for ages with the various iwconfig and ifconfig commands but all I've ended up doing is brining down my wireless internet connection which isn't very handy!
Can anyone point me in the right direction!?!
Here's my ifconfig if it helps:
Code:
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:12886 errors:0 dropped:0 overruns:0 frame:0
TX packets:12886 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:644460 (629.3 KiB) TX bytes:644460 (629.3 KiB)
wlan0 Link encap:Ethernet HWaddr 00:17:3F:8E:03:33
inet addr:192.168.1.64 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::217:3fff:fe8e:333/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1531 errors:0 dropped:0 overruns:0 frame:0
TX packets:1501 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:760806 (742.9 KiB) TX bytes:297465 (290.4 KiB)
wmaster0 Link encap:UNSPEC HWaddr 00-17-3F-8E-03-33-F4-CF-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Regards,
Jon
|
You said wired and all we see is wireless. This only shows one system. What does the other system's ifconfig look like?
__________________
lost in hypertime...
Registered Linux User #329061
|

2008-06-02, 11:55 PM CDT
|
|
Registered User
|
|
Join Date: May 2008
Location: Wiltshire, UK
Posts: 32

|
|
Ah right, that's probably because i ran ifconfig eth1 down and forgot to bring it back up! Sorry!
As requested; here's both ifconfigs:
Code:
[root@localhost jon]# /sbin/ifconfig
eth0 Link encap:Ethernet HWaddr 00:14:85:79:65:59
inet6 addr: fe80::214:85ff:fe79:6559/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:468 (468.0 b)
Interrupt:21 Base address:0x6000
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:12332 errors:0 dropped:0 overruns:0 frame:0
TX packets:12332 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:616760 (602.3 KiB) TX bytes:616760 (602.3 KiB)
wlan0 Link encap:Ethernet HWaddr 00:17:3F:8E:03:33
inet addr:192.168.1.64 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::217:3fff:fe8e:333/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3710 errors:0 dropped:0 overruns:0 frame:0
TX packets:3570 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3051194 (2.9 MiB) TX bytes:668306 (652.6 KiB)
wmaster0 Link encap:UNSPEC HWaddr 00-17-3F-8E-03-33-F4-CF-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Code:
[root@localhost serveradmin]# /sbin/ifconfig
eth0 Link encap:Ethernet HWaddr 00:04:4B:80:80:03
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:22 Base address:0x8000
eth1 Link encap:Ethernet HWaddr 00:60:08:54:46:38
inet6 addr: fe80::260:8ff:fe54:4638/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:168 (168.0 b)
Interrupt:16 Base address:0xc000
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:2950 errors:0 dropped:0 overruns:0 frame:0
TX packets:2950 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:147660 (144.1 KiB) TX bytes:147660 (144.1 KiB)
Any help would be great,
Regards,
Jon
|

2008-06-03, 01:52 AM CDT
|
 |
Registered User
|
|
Join Date: Apr 2006
Location: Ohio, USA
Posts: 4,610

|
|
|
So what exactly are you trying to do - draw us a picture.
Is your wireless connection part of the same LAN as the wired ? It's a really bad idea to put two interfaces on the same LAN unless you are doing binding.
As a quick thumbnail ... You can assign compatible IP addresses and masks to each interface on the LAN. Then you should be able to send IP traffic (ping or telnet or ssh) between systems using the IP address.
You might setup an interface on system1 like
ip link set eth0 up
ip addr add 192.168.40.7/24 dev eth0
and the other on system2 like
ip link set eth0 up
ip addr add 192.168.40.8/24 dev eth0
If there is a router connected to the internet or another lan you'll need to setup an "ip route" command for it.
So then system1 can do "ping 192.168.40.8" or ssh to the contact system2.
--
If would be nicer to use the system names and there are two ways to do this. If you r LAN has fixed IP assignment you can just make entries in /etc/hosts like
192.168.40.7 system1
192.168.40.8 system2
then you can do "ping system2" or "ssh me@system2" to connect to system2.
========
If you have a dhcp/dns serving router or want to setup dnsmasq you can avoid the static assignments and "do things right".
|

2008-06-03, 12:47 PM CDT
|
|
Registered User
|
|
Join Date: May 2008
Location: Wiltshire, UK
Posts: 32

|
|
|
OK, I don't have Wine and Photoshop installed yet so I'll have to 'write' you a picture! I'll be as descriptive as possible!
I have a workstation (computer A) with a wireless USB card. This card then connects to a my 'BT Internet home hub' (hub A) so I can connect to the internet using computer A.
I recently acquired a new computer (computer B), which I now want to network with computer A. Once I've achieved this I''ll use the computer B as my main file storage system.
To link computer A and computer B together I've got two cat5 cables and a separate hub (hub B). Both computers have cat5 cables connected from them into hub B. So my question is; how do I get computer A connected to computer B using hub B? I'm not precious about computer B having an internet connection.
Regards,
Jon
|

2008-06-03, 01:42 PM CDT
|
|
Registered User
|
|
Join Date: May 2008
Location: Yorkshire, UK
Age: 30
Posts: 68

|
|
Firstly......try Dia, Inkscape and GIMP....
Secondly, the easiest way, given that it looks like your wireless card is working and configured ok already on Comp A is just to configure Comp B to be part of that network....
I'm guessing this is where the problem lies as confusion between the 2 interfaces on Comp B. Its likely that you've assigned addresses to a card that isn't connected....
The good news is the the BT Home Hub behaves as a DHCP server as well, so all you need to do is configure both eth0 and eth1 to get an address via DHCP then connect a Cat5 cable to the Home Hub...
|

2008-06-03, 11:56 PM CDT
|
|
Registered User
|
|
Join Date: May 2008
Location: Wiltshire, UK
Posts: 32

|
|
Quote:
|
Originally Posted by roachy
Secondly, the easiest way, given that it looks like your wireless card is working and configured ok already on Comp A is just to configure Comp B to be part of that network....
|
OK, how do you suggest I do that? Would I do this with a separate wireless USB adapter? Or can i achieve this with the Cat5 cable and Hub B?
Regards,
Jon
|

2008-06-04, 12:26 AM CDT
|
|
Registered User
|
|
Join Date: May 2008
Location: Yorkshire, UK
Age: 30
Posts: 68

|
|
|
If I remember rightly, BT Home Hubs have 4 ethernet ports, so you shouldn't need Hub B......
If this isn't the case, there is definitely 1 ethernet port, so assuming you might want to add extra computers in future, you can connect as follows:
.................................................. ................................. /----CAT5-->COMP B
WWW -> BT HOME HUB --CAT5--> HUB B--
...........................|...................... ..................................\-----CAT5-->COMP C
.........................WIFI
...........................|
...........................V
.....................COMP A
NOTE - If you don't want to add extra computers in future, you can disregard HUB B and replace that in the diagram with Comp B
If all are set to DHCP, you should be able to see each of the computers IP address. Try pinging the respective computers from each other (for example comp A was given an address of 192.168.1.64 in your previous post, so you could go to a command line and type:
ping 192.168.1.64
from Comp B
This should give you a response....if you can do this, then you should be able to connect to the net from both machines and share files between them....just reply to this thread if that all works and I'll explain how to do that
Hope this helps
Last edited by roachy; 2008-06-04 at 12:30 AM CDT.
Reason: BAD SPACING IN ASCII DIAGRAM
|

2008-06-04, 01:46 PM CDT
|
|
Registered User
|
|
Join Date: May 2008
Location: Wiltshire, UK
Posts: 32

|
|
Fantastic!
I'm getting somewhere! Thanks for all the help! I'm now able to SSH to from one computer to the other and visa versa!
I still have a question though! I want to be able to navigate the Apache's files on computer B from computer A within a web browser.
Computer A has an IP address of 192.168.40.7
Computer B has an IP address of 192.168.40.8
So, my thought was; if (on computer A) I go to http://192.168.40.8/ I would see the localhost files of computer B - but this isn't the case. I receive a 'Failed to Connect' error stating: 'Firefox can't establish a connection to the server at 192.168.40.8.'
So my question is; how to I configure computer A to be able to navigate the Apache's files on computer B via a web browser?
Regards,
Jon
|

2008-06-04, 01:52 PM CDT
|
 |
Registered User
|
|
Join Date: Oct 2006
Location: Lincoln, NE
Age: 51
Posts: 420

|
|
|
"http://192.168.40.8" is like trying to access a WEB page. Are you excepting to see like, files and directories, or what? I'm confused.
__________________
lost in hypertime...
Registered Linux User #329061
|

2008-06-04, 01:57 PM CDT
|
|
Registered User
|
|
Join Date: May 2008
Location: Wiltshire, UK
Posts: 32

|
|
|
I'm hoping to see computer B's (192.168.40.8) local web pages.
What I mean by this is; if I'm on computer B and navigate to "http://127.0.0..1" I see Apache's default web pages. So then if i go to computer A and type "http://192.168.40.8" i want to see computer B's local web pages that i viewed on "http://127.0.0..1".
I hope that makes sense!
|

2008-06-04, 02:08 PM CDT
|
|
Registered User
|
|
Join Date: Apr 2008
Location: Tewksbury, MA
Posts: 77

|
|
|
Sounds like either a firewall or apache config issue. I'd check to see if the firewall is enabled on 192.168.40.8. If it is check to see if remote http connections are allowed. If that looks OK check the apache config to make sure that it is setup to listen on all interfaces, not just the loopback.
|

2008-06-04, 02:17 PM CDT
|
 |
Registered User
|
|
Join Date: Oct 2006
Location: Lincoln, NE
Age: 51
Posts: 420

|
|
Quote:
|
Originally Posted by reeksy
I'm hoping to see computer B's (192.168.40.8) local web pages.
What I mean by this is; if I'm on computer B and navigate to "http://127.0.0..1" I see Apache's default web pages. So then if i go to computer A and type "http://192.168.40.8" i want to see computer B's local web pages that i viewed on "http://127.0.0..1".
I hope that makes sense!
|
It does. I was confused. Sorry.
__________________
lost in hypertime...
Registered Linux User #329061
|

2008-06-04, 03:14 PM CDT
|
|
Registered User
|
|
Join Date: May 2008
Location: Wiltshire, UK
Posts: 32

|
|
Quote:
|
Originally Posted by soxfan
Sounds like either a firewall or apache config issue. I'd check to see if the firewall is enabled on 192.168.40.8. If it is check to see if remote http connections are allowed.
|
How do I do both of the above?
Quote:
|
Originally Posted by soxfan
If that looks OK check the apache config to make sure that it is setup to listen on all interfaces, not just the loopback
|
And how do i do that!?
Thanks,
Jon
|

2008-06-04, 03:46 PM CDT
|
|
Registered User
|
|
Join Date: Apr 2008
Location: Tewksbury, MA
Posts: 77

|
|
|
For the firewall, I'm on KDE so to get to the configuration I go to KDE menu --> Applications --> Administration --> Firewall. There should be a similar program under GNOME, and you could also do it at the command line, but I don't have the specifics at this point. Others may disagree, but if you are already behind a firewall then I would recommend totally disabling the local firewall on your PC. Under the Firewall GUI you can do this just by clicking the "Disable" button and then click "Apply". If you would rather not disable the firewall then look in the list of Trusted Services and make sure WWW and probably Secure WWW are checked. To be safe you might want to reboot after making any changes to the firewall settings.
As far as Apache, I only know how to edit the config file at the command line level. On Fedora 9 the config file iis in /etc/httpd/conf.d and is called httpd.conf. Open the file with your favorite text editor and then look for a line that starts with "Listen". Make sure it does not say something like "Listen 127.0.0.1:80".
I think it is probably the firewall over the Apache config. By default Fedora turns on the firewall and prohibits http/https connections, but Apache defaults to listen on all network interfaces. So unless you or someone else has changed this your Apache config is probably OK.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Automatic Translations (Powered by  ):
All times are GMT -7. The time now is 05:50 PM CST.
|
|
 |
 |
 |
 |
|
|