LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 12-27-2008, 02:52 PM   #1
tronayne
Senior Member
 
Registered: Oct 2003
Location: Michigan
Distribution: Slackware 32- & 64-bit Stable
Posts: 1,723

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
Slackware 12.2: Static IP Addressing, Can't See Gateway


I've just done a full installation of Slackware 12.2 on a Dell Inspiron 6000 (which was running Slackware 12.1 just fine) and cannot get to my router; i.e., I cannot ping the gateway at address 192.168.1.1 (or, of course, anything else). Been scanning through all the blurbs and I don't find anything about not being able to use (or some special something you have to do to use) static IP addressing -- I traditionally use static addressing on my internal network).

Gotta be something I'm not seeing or missing somewhere -- like, is wireless trying to take over instead of hard wire?

Any advice more than welcome and thank you.
 
Old 12-27-2008, 03:05 PM   #2
astrogeek
Member
 
Registered: Oct 2008
Distribution: Slackware: 12.1, 12.2, 13.0, 13.1, 64
Posts: 416

Rep: Reputation: 62
What does route say?

What does the route command say?

It should have a default route using the device that connects to your router, something like:

Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
...
default         192.168.1.1   0.0.0.0         UG    0      0        0 eth0
If not there you can add it manually as root:

Code:
route add default gw 192.168.1.1
and set it permanently by editing /etc/rc.d/rc.inet1.conf

(assuming your interfaces are up and configured).

Post the output of route and ifconfig if you can't get it going.

Last edited by astrogeek; 12-27-2008 at 03:08 PM.
 
Old 12-27-2008, 03:19 PM   #3
tronayne
Senior Member
 
Registered: Oct 2003
Location: Michigan
Distribution: Slackware 32- & 64-bit Stable
Posts: 1,723

Original Poster
Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
Hmm. Executing route takes about 30 seconds to display the "default" line in the output! "localnet" and "loopback" display immedately, "default" takes forever plus a week.

ifconfig, doing a line-by-line compare to another is... well, line-by-line the same.

Mumble grumble.

Dang if I know -- netconfig is set up exactly the way it always is (with address 192.168.1.20, netmask 255.255.255.0, gateway 192.168.1.1) and I haven't fiddled with anything else.

Thanks for the replay.
 
Old 12-27-2008, 03:33 PM   #4
astrogeek
Member
 
Registered: Oct 2008
Distribution: Slackware: 12.1, 12.2, 13.0, 13.1, 64
Posts: 416

Rep: Reputation: 62
Quote:
Originally Posted by tronayne View Post
Executing route takes about 30 seconds to display the "default" line in the output!
It takes a long time if the destination is not reachable... which is of course, your problem.

You might try manually cycling the device that the default route is on, like
Code:
ifconfig eth0 down/up
 
Old 12-27-2008, 03:33 PM   #5
antman
LQ Newbie
 
Registered: Jun 2008
Distribution: Scientific Linux - AntiX - Fedora
Posts: 16

Rep: Reputation: 0
Try setting your /etc/resolv.conf file to match your router IP/Gateway. That got me up and running with static.
Code:
nameserver 192.168.1.1

Last edited by antman; 12-27-2008 at 03:34 PM.
 
Old 12-27-2008, 04:09 PM   #6
tronayne
Senior Member
 
Registered: Oct 2003
Location: Michigan
Distribution: Slackware 32- & 64-bit Stable
Posts: 1,723

Original Poster
Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
A little digging in /var/log/messages: eth0 seems to be assigned to the damnfool wireless and eth1 assigned to Broadcom 44xx/47xx 10/100BaseT Ethernet (which is the hardwire Ethernet connection). Dammit!

OK, it's gotten a little past me here. I think it's something to do with this new(?) ESSID stuff and, so far, I've no clue what to to do assign eth0 where I want it instead of to a radio controller that I just flat don't use (or, if I was going to, it would be on eth1 so it doesn't interfere with eth0).

Is there some thing to comment out, turn off, whatever to get the services flipped?
 
Old 12-27-2008, 04:46 PM   #7
mRgOBLIN
Slackware Contributor
 
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 954

Rep: Reputation: 185Reputation: 185
Maybe try swapping the "Names" in /etc/udev/rules.d/70-persistent-net.rules
 
Old 12-27-2008, 04:57 PM   #8
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 8,994
Blog Entries: 1

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
Hi,
Quote:
Originally Posted by tronayne View Post
A little digging in /var/log/messages: eth0 seems to be assigned to the damnfool wireless and eth1 assigned to Broadcom 44xx/47xx 10/100BaseT Ethernet (which is the hardwire Ethernet connection). Dammit!

OK, it's gotten a little past me here. I think it's something to do with this new(?) ESSID stuff and, so far, I've no clue what to to do assign eth0 where I want it instead of to a radio controller that I just flat don't use (or, if I was going to, it would be on eth1 so it doesn't interfere with eth0).

Is there some thing to comment out, turn off, whatever to get the services flipped?
If you don't want to use the wlan device then just goto your BIOS and disable the onboard device. When you reboot then the eth device should be recognized. You can always edit '/etc/rc.d/rc.inet1.conf' file. Then restart the inet with '/etc/rc.d/rc.inet1 restart' from the 'cli' as root.
 
Old 12-27-2008, 05:56 PM   #9
tronayne
Senior Member
 
Registered: Oct 2003
Location: Michigan
Distribution: Slackware 32- & 64-bit Stable
Posts: 1,723

Original Poster
Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
Thank you for the suggestion. I edited the BIOS and disabled the wireless device and, well, I still can't access the network (...Destination Host Unreachable... when I ping -c 5 192.168.1.1). Sigh.

In /var/log/messages where eth0 is mentioned there are lines about iwconfig eth0 essid "any" -- never seen these before (they're not in my 12.1 systems). Near as I can figure, this has to do with iwconfig, so I scanned through all the stuff I could in /etc/rc.d and changed the mode of rc.wireless (executed from /etc/rc.d/rc.inet1 to 644 to see if that would fix it. It did not: eth1 is the NIC, eth0 is the wireless, there is no joy in Mudville (yeah, it's really muddy right now).

So, I dunno. Looks to me like and un-Slackware-like "do it for (to!) me" or I am missing something really, really simple here like maybe I'm not allowed to have a fixed IP address any more or something. S'pect I'm going back to 12.1 to get back in business.

Thanks again for all the advice.
 
Old 12-27-2008, 06:27 PM   #10
mRgOBLIN
Slackware Contributor
 
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 954

Rep: Reputation: 185Reputation: 185
Did you try what I suggested?
 
Old 12-27-2008, 06:47 PM   #11
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 8,994
Blog Entries: 1

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
Hi,
Quote:
Originally Posted by tronayne View Post
Thank you for the suggestion. I edited the BIOS and disabled the wireless device and, well, I still can't access the network (...Destination Host Unreachable... when I ping -c 5 192.168.1.1). Sigh.

In /var/log/messages where eth0 is mentioned there are lines about iwconfig eth0 essid "any" -- never seen these before (they're not in my 12.1 systems). Near as I can figure, this has to do with iwconfig, so I scanned through all the stuff I could in /etc/rc.d and changed the mode of rc.wireless (executed from /etc/rc.d/rc.inet1 to 644 to see if that would fix it. It did not: eth1 is the NIC, eth0 is the wireless, there is no joy in Mudville (yeah, it's really muddy right now).

So, I dunno. Looks to me like and un-Slackware-like "do it for (to!) me" or I am missing something really, really simple here like maybe I'm not allowed to have a fixed IP address any more or something. S'pect I'm going back to 12.1 to get back in business.

Thanks again for all the advice.
You did run 'netconfig'? What does your '/etc/rc.d/rc.inet1.conf' contain?

What does the 'dmesg |grep i eth' from the cli show?

If you delete '/etc/udev/rules.d/70-persistent-net.rules' it will be regenerated at boot now that you have disabled the wireless device in the BIOS.
 
Old 12-28-2008, 07:29 AM   #12
tronayne
Senior Member
 
Registered: Oct 2003
Location: Michigan
Distribution: Slackware 32- & 64-bit Stable
Posts: 1,723

Original Poster
Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
Quote:
Originally Posted by mRgOBLIN View Post
Maybe try swapping the "Names" in /etc/udev/rules.d/70-persistent-net.rules
Wow, zowie: that worked (both NIC and transceiver are active)! Thank you.

Now, the question is why did it work; i.e., why does the installation default to the transceiver instead of the the NIC and what can be done to not have this happen on the other five systems I'll be updating. I cannot imagine that I'm the only guy on the plant that's using fixed IP addressing with a mixture of both NIC and transceiver on one or more machines (and I usually assume that I'm doing something incorrectly when things don't go as the should).

Enough whining -- thanks to all for the help.
 
Old 12-28-2008, 07:40 AM   #13
mRgOBLIN
Slackware Contributor
 
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 954

Rep: Reputation: 185Reputation: 185
The /etc/udev/rules.d/70-persistent-net.rules is created by a script.
The order that the devices are found and the modules are loaded on the first boot will determine the ordering of the ethX devices.
 
Old 12-28-2008, 07:49 AM   #14
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 8,994
Blog Entries: 1

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
Hi,
Quote:
Originally Posted by mRgOBLIN View Post
The /etc/udev/rules.d/70-persistent-net.rules is created by a script.
The order that the devices are found and the modules are loaded on the first boot will determine the ordering of the ethX devices.
Yes it is created by a script. If you are having naming issues sometimes you can delete that file and it will be regenerated when you select or de-select a device;

Code:
excerpt from '/etc/udev/rules.d/70-persistent-net.rules';

# This file was automatically generated by the /lib/udev/write_net_rules
# program run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single line.
 
Old 12-28-2008, 08:09 AM   #15
tronayne
Senior Member
 
Registered: Oct 2003
Location: Michigan
Distribution: Slackware 32- & 64-bit Stable
Posts: 1,723

Original Poster
Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
Ah, but there's the rub: the script that does the setup defaults to transceiver first, NIC second; the result of which is the problem I've experienced. That makes life difficult and that ain't the "Slackware Way" methinks. I kind of suspect that if I'd done netconfig with DHCP then manually edited /etc/rc.d/rc.inet1.conf to add the fixed IP addresses to eth1 that it might just have worked -- but how in blazes would I know to do that (or, for that matter, to manually edit /etc/udev/rules.d/70-persistent-net.rules)?

I may just try the DHCP-manual-edit thing after I get everything else done just to see but right now things work and that's good enough for the moment.

Again, I thank you for your help and advice and wish you a happy, healthy and prosperous new year.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Static routes using routes/ifroutes-eth-id.. files and default gateway disabled TimtheEagle Linux - Networking 0 06-02-2008 04:44 AM
linux gateway with static IP on dsl modem fragenstein Linux - Networking 8 04-26-2006 09:09 AM
IP Addressing static and dynamic Hockeyfan Linux - Networking 1 10-24-2005 08:06 PM
Static IP problem with ndiswrapper + Slackware 10 Reekkor Linux - Wireless Networking 5 01-26-2005 04:58 AM
Static Public IP on Linux gateway behind ADSL router Eivissa Linux - Networking 2 11-16-2004 08:10 AM


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

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration