View previous topic :: View next topic |
Author |
Message |
BennyP Guru
Joined: 09 May 2003 Posts: 503 Location: Jerusalem, Israel
|
Posted: Sun Jan 30, 2005 1:07 am Post subject: [SOLVED] Home Router (X, IRQ, DHCP) |
|
|
I have two NICs in my gentoo box, an ne2000 card and a card that uses 8139too. I have an iBook connected to the gentoo box and a cable modem.
My connection is Cable/DHCP.
I followed the gentoo home router guide, and had both computers online, but then I tried to switch TTYs to the GDM screen, and my gentoo box had a hard panic. I rebooted, and now eth1 wont come up!!!!!!
What can I do? _________________ Could it be?
Last edited by BennyP on Mon Jan 31, 2005 2:10 am; edited 2 times in total |
|
Back to top |
|
|
teknomage1 Veteran
Joined: 05 Aug 2003 Posts: 1239 Location: Los Angeles, CA
|
Posted: Sun Jan 30, 2005 1:23 am Post subject: |
|
|
what happens if you type (as root) '/etc/init.d/net.eth1 start' ? |
|
Back to top |
|
|
BennyP Guru
Joined: 09 May 2003 Posts: 503 Location: Jerusalem, Israel
|
Posted: Sun Jan 30, 2005 1:27 am Post subject: |
|
|
it hangs at the "bringing eth1 up via DHCP" _________________ Could it be? |
|
Back to top |
|
|
BennyP Guru
Joined: 09 May 2003 Posts: 503 Location: Jerusalem, Israel
|
Posted: Sun Jan 30, 2005 2:25 am Post subject: |
|
|
is there a log file i should check for specific errors??
i checked the log in /var/log/everything/current but that didn't give any usefull info _________________ Could it be? |
|
Back to top |
|
|
teknomage1 Veteran
Joined: 05 Aug 2003 Posts: 1239 Location: Los Angeles, CA
|
Posted: Sun Jan 30, 2005 3:05 am Post subject: |
|
|
not sure, i guess make sure the modules for eth1's NIC are loaded and double check that all the info in the configs you editted before the lock up are correct. Maybe it lost an edit or something. |
|
Back to top |
|
|
BennyP Guru
Joined: 09 May 2003 Posts: 503 Location: Jerusalem, Israel
|
Posted: Sun Jan 30, 2005 3:23 am Post subject: |
|
|
i double checked everything in the guide - no good. I know it's not the modem because i just unplugged the gentoo box and plugged in the ibook and now i'm posting.
I will try swapping the NICs _________________ Could it be? |
|
Back to top |
|
|
BennyP Guru
Joined: 09 May 2003 Posts: 503 Location: Jerusalem, Israel
|
Posted: Sun Jan 30, 2005 3:42 am Post subject: Tip: Styles can be applied quickly to selected text. |
|
|
ok i swapped the nics and now I can connect using my gentoo box, but not my iBook. here is some output from dhcp initscript Code: | etc/init.d/dhcp start
Jan 29 22:09:01 [dhcpd] Wrote 1 leases to leases file.
Jan 29 22:09:01 [dhcpd] No subnet declaration for eth0 (0.0.0.0).
Jan 29 22:09:01 [dhcpd] ** Ignoring requests on eth0. If this is not what
Jan 29 22:09:01 [dhcpd] you want, please write a subnet declaration
Jan 29 22:09:01 [dhcpd] in your dhcpd.conf file for the network segment
Jan 29 22:09:01 [dhcpd] to which interface eth0 is attached. **
Jan 29 22:09:01 [dhcpd] Not configured to listen on any interfaces!
Jan 29 22:09:01 [dhcpd] If you did not get this software from ftp.isc.org, please
Jan 29 22:09:01 [dhcpd] get the latest from ftp.isc.org and install that before
Jan 29 22:09:01 [dhcpd] requesting help.
Jan 29 22:09:01 [dhcpd] If you did get this software from ftp.isc.org and have not
Jan 29 22:09:01 [dhcpd] yet read the README, please read it before requesting help.
Jan 29 22:09:01 [dhcpd] If you intend to request help from the dhcp-server@isc.org
Jan 29 22:09:01 [dhcpd] mailing list, please read the section on the README about
Jan 29 22:09:01 [dhcpd] submitting bug reports and requests for help.
Jan 29 22:09:01 [dhcpd] Please do not under any circumstances send requests for
Jan 29 22:09:01 [dhcpd] help directly to the authors of this software - please
Jan 29 22:09:01 [dhcpd] send them to the appropriate mailing list as described in
Jan 29 22:09:01 [dhcpd] the README file.
Jan 29 22:09:01 [dhcpd] exiting. | here is /etc/dhcp/dhcpd.conf Code: | authoritative;
ddns-update-style ad-hoc;
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.100 192.168.0.250;
default-lease-time 259200;
max-lease-time 518400;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.250;
option routers 192.168.0.1;
option domain-name-servers 192.168.0.1;
} | here is ifconfig -a Code: | eth0 Link encap:Ethernet HWaddr 00:50:BA:C2:B0:CF
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:11 Base address:0xe000
eth1 Link encap:Ethernet HWaddr 00:80:C8:DE:C8:95
inet addr:70.24.159.36 Bcast:70.24.159.255 Mask:255.255.254.0
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1320 errors:0 dropped:0 overruns:0 frame:0
TX packets:172 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:351606 (343.3 Kb) TX bytes:17042 (16.6 Kb)
Interrupt:5 Base address:0xe400
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:280 (280.0 b) TX bytes:280 (280.0 b) |
Once I get this problem solved, there is another serious problem: every time I start X with the eth1 up, the system hard-locks. I am using 2.6.10
I don't understand... perhaps my network card has been blown out... _________________ Could it be? |
|
Back to top |
|
|
teknomage1 Veteran
Joined: 05 Aug 2003 Posts: 1239 Location: Los Angeles, CA
|
Posted: Sun Jan 30, 2005 3:48 am Post subject: |
|
|
what happens if you run 'ifconfig eth0 192.168.0.1' ? |
|
Back to top |
|
|
SavageMindz Tux's lil' helper
Joined: 28 Oct 2002 Posts: 87 Location: The bit of hell that has frozen over.
|
Posted: Sun Jan 30, 2005 6:03 am Post subject: |
|
|
I think you problem is this.
If you want to run a dhcp server (looks like you do) then you need to fix the ip address on the server interface (in this case that looks like eth0)
So teknomage1 is correct that you have to run ifconfig before you bring up you dhcp server.
I'm not quite sure how you have this wired. What do you mean when you say....
BennyP wrote: | ok i swapped the nics and now I can connect using my gentoo box, but not my iBook. |
I take it you have the ibook on the same lan as eth0? Is this correct?
also why have this line in /etc/dhcp/dhcpd.conf
Code: | option broadcast-address 192.168.0.250; |
Using strange broadcast addresses is best avoided unless you really know what you are doing.
Btw if you want to test dhcpd manually then you can.
Remove eth1 for the current runlevel (probably rc-update del net.eth1 default)
then once the machine is up login as root and run "dhcpcd -d eth1".
The -d should send debug messages to /var/log/syslog or equivalent.
Anyway hope some of that helps.
Savage |
|
Back to top |
|
|
BennyP Guru
Joined: 09 May 2003 Posts: 503 Location: Jerusalem, Israel
|
Posted: Sun Jan 30, 2005 7:53 pm Post subject: |
|
|
ok here's the phylical setup:
cable modem connects to the bottom ethernet card on my gentoo box(eth1) (which i also use as a desktop/audio production machine)
ibook connects to the top card on gentoo(eth0)
I ran ipconfig eth0 192.168.0.1 and /etc/init.d/dhcp restart and now both machines are online, thanks!! How do i rig it so that i will not have to run these two commands each time I start up?
As for the broadcast line, I just capied it right out of the home router guide. Could you please explain what it means?
after posting this I will attempt to startx on the gentoo box, but I'm afraid it will probably freeze the whole system
p3 800
384 mb ram
voodoo 5 5500 agp graphics
latest xorg
ALSA
I suspoct the problem may be with ALSA/X conflict, but can't confirm this. _________________ Could it be? |
|
Back to top |
|
|
teknomage1 Veteran
Joined: 05 Aug 2003 Posts: 1239 Location: Los Angeles, CA
|
Posted: Sun Jan 30, 2005 9:15 pm Post subject: |
|
|
You mean the broadcast address of 192.168.0.255? All IP address blocks have at least two reserved numbers .0 represents that network itself and .255 which represent all computers in that block. It gets more complicated with trickier subnet masks but that's the gist of the broadcast line.
Double check the contents of your /etc/conf.d/net file to make sure that eth0 is set to the static IP of 192.168.0.1 and that eth1 is set to dhcp.
here's the entire /etc/conf.d/net from my router
Code: | iface_eth0="192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0"
iface_eth1="dhcp" |
|
|
Back to top |
|
|
BennyP Guru
Joined: 09 May 2003 Posts: 503 Location: Jerusalem, Israel
|
Posted: Sun Jan 30, 2005 9:23 pm Post subject: |
|
|
Ok I checked /etc/conf.d/net and made the neccesary changes.
I Think it might be better for me to dredge up one of the old boxen in my garage that i found on the street and turn it into the router instead of trying to use one computer as a desktop and a router all at once, but the major problem with that is extra power consumption, and possible lack of NICs
I'm going to go over to a friend's place later on in the week and grab some parts and computers from them, so my collection of junked out motherboards and skeleton computers will grow and grow mwahahahah
*recycle cycle, coming down the road*
*recycle cycle, with your recycle load*
*just find a treasure, throw it in the bin*
*recycle cycle, and use it over again!* _________________ Could it be? |
|
Back to top |
|
|
teknomage1 Veteran
Joined: 05 Aug 2003 Posts: 1239 Location: Los Angeles, CA
|
Posted: Sun Jan 30, 2005 11:35 pm Post subject: |
|
|
Good luck with that. My router's a 75Mhz pentium SX so it doesn't really take all that much to be a nice firewalling router. |
|
Back to top |
|
|
BennyP Guru
Joined: 09 May 2003 Posts: 503 Location: Jerusalem, Israel
|
Posted: Mon Jan 31, 2005 2:09 am Post subject: |
|
|
I Fixed the problem of the hard locking. It was an IRQ conflict.
I had it set up like this, in order from top down on the PCI bus:
Graphics card
Sound Card
eth0
eth1
--
--
--
The NICs had to duke it out with the GFX and snd chips for priority access to CPU time and memory, thus locking the system. I replaced the NICs in their bottom slots and zoom zoom zoom away we go! Now it looks like this:
Graphics Card
Sound Card
--
--
--
eth0
eth1
Now on to the next problem: Samba! _________________ Could it be? |
|
Back to top |
|
|
iainvt Guru
Joined: 12 Sep 2004 Posts: 462 Location: UK
|
Posted: Tue Apr 05, 2005 7:52 am Post subject: |
|
|
How do I see if this will solve the system freeze I get trying to bring eth1 up, eth0 is fine but not eth1, if it is how do I change the positions? _________________ iain |
|
Back to top |
|
|
|