LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 11-20-2010, 05:39 PM   #1
Rockstar420
Member
 
Registered: Nov 2010
Distribution: SlackWare 13.1
Posts: 44

Rep: Reputation: 2
Question No Internet on Slackware 13.1


Ran into a issue i installed slackware on my pc and before i had internet (last time) But i have run networkconfig and nothing has changed. If anybody could help that would be awesome. Is there something i can do different from when i install.
 
Old 11-20-2010, 05:42 PM   #2
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
Are we talking about a wired type of connection? Do you use a router?
What's the output of /sbin/lspci?
Static IP or DHCP?
 
Old 11-20-2010, 06:10 PM   #3
Rockstar420
Member
 
Registered: Nov 2010
Distribution: SlackWare 13.1
Posts: 44

Original Poster
Rep: Reputation: 2
dhcp wired connection have no idea on the /sbin/lspci?
 
Old 11-20-2010, 06:11 PM   #4
Rockstar420
Member
 
Registered: Nov 2010
Distribution: SlackWare 13.1
Posts: 44

Original Poster
Rep: Reputation: 2
going to reinstall slackware right now will be back on here if internet runs or i will have to flip in a live cd
 
Old 11-20-2010, 06:14 PM   #5
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
Quote:
Originally Posted by Rockstar420 View Post
going to reinstall slackware right now will be back on here if internet runs or i will have to flip in a live cd
I'm sure you don't have to reinstall Slackware to get the internet up and running?

what about the output of the command: /sbin/ifconfig?
Are you connected to a router?
 
Old 11-20-2010, 07:48 PM   #6
Rockstar420
Member
 
Registered: Nov 2010
Distribution: SlackWare 13.1
Posts: 44

Original Poster
Rep: Reputation: 2
I am dual booting ubuntu and slackware so with ubuntu i still have internet until slackware gets figured out. I looked in info and shows my ip address and mack on etho1 but cant dbl click on it to open it further so i dunno. i will look at the file quick will reply when i get a copy of it
 
Old 11-20-2010, 08:03 PM   #7
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
Are you connected to a router?
 
Old 11-20-2010, 08:38 PM   #8
Rockstar420
Member
 
Registered: Nov 2010
Distribution: SlackWare 13.1
Posts: 44

Original Poster
Rep: Reputation: 2
Yes i use a router. here is what i have coppied from the ifcfg text file>
#! /bin/bash

CheckForwarding () {
local sbase fwd
sbase=/proc/sys/net/ipv4/conf
fwd=0
if [ -d $sbase ]; then
for dir in $sbase/*/forwarding; do
fwd=$[$fwd + `cat $dir`]
done
else
fwd=2
fi
return $fwd
}

RestartRDISC () {
killall -HUP rdisc || rdisc -fs
}

ABCMaskLen () {
local class;

class=${1%%.*}
if [ "$1" = "" -o $class -eq 0 -o $class -ge 224 ]; then return 0
elif [ $class -ge 224 ]; then return 0
elif [ $class -ge 192 ]; then return 24
elif [ $class -ge 128 ]; then return 16
else return 8; fi
}

label="label $1"
ldev="$1"
dev=${1%:*}
if [ "$dev" = "" -o "$1" = "help" ]; then
echo "Usage: ifcfg DEV [[add|del [ADDR[/LEN]] [PEER] | stop]" 1>&2
echo " add - add new address" 1>&2
echo " del - delete address" 1>&2
echo " stop - completely disable IP" 1>&2
exit 1
fi
shift

CheckForwarding
fwd=$?
if [ $fwd -ne 0 ]; then
echo "Forwarding is ON or its state is unknown ($fwd). OK, No RDISC." 1>&2
fi


deleting=0
case "$1" in
add) shift ;;
stop)
if [ "$ldev" != "$dev" ]; then
echo "Cannot stop alias $ldev" 1>&2
exit 1;
fi
ip -4 addr flush dev $dev $label || exit 1
if [ $fwd -eq 0 ]; then RestartRDISC; fi
exit 0 ;;
del*)
deleting=1; shift ;;
*)
esac

ipaddr=
pfxlen=
if [ "$1" != "" ]; then
ipaddr=${1%/*}
if [ "$1" != "$ipaddr" ]; then
pfxlen=${1#*/}
fi
if [ "$ipaddr" = "" ]; then
echo "$1 is bad IP address." 1>&2
exit 1
fi
fi
shift

peer=$1
if [ "$peer" != "" ]; then
if [ "$pfxlen" != "" -a "$pfxlen" != "32" ]; then
echo "Peer address with non-trivial netmask." 1>&2
exit 1
fi
pfx="$ipaddr peer $peer"
else
if [ "$ipaddr" = "" ]; then
echo "Missing IP address argument." 1>&2
exit 1
fi
if [ "$pfxlen" = "" ]; then
ABCMaskLen $ipaddr
pfxlen=$?
fi
pfx="$ipaddr/$pfxlen"
fi

if [ "$ldev" = "$dev" -a "$ipaddr" != "" ]; then
label=
fi

if [ $deleting -ne 0 ]; then
ip addr del $pfx dev $dev $label || exit 1
if [ $fwd -eq 0 ]; then RestartRDISC; fi
exit 0
fi


if ! ip link set up dev $dev ; then
echo "Error: cannot enable interface $dev." 1>&2
exit 1
fi
if [ "$ipaddr" = "" ]; then exit 0; fi

if ! arping -q -c 2 -w 3 -D -I $dev $ipaddr ; then
echo "Error: some host already uses address $ipaddr on $dev." 1>&2
exit 1
fi

if ! ip address add $pfx brd + dev $dev $label; then
echo "Error: failed to add $pfx on $dev." 1>&2
exit 1
fi

arping -q -A -c 1 -I $dev $ipaddr
noarp=$?
( sleep 2 ;
arping -q -U -c 1 -I $dev $ipaddr ) >& /dev/null </dev/null &

ip route add unreachable 224.0.0.0/24 >& /dev/null
ip route add unreachable 255.255.255.255 >& /dev/null
if [ `ip link ls $dev | grep -c MULTICAST` -ge 1 ]; then
ip route add 224.0.0.0/4 dev $dev scope global >& /dev/null
fi

if [ $fwd -eq 0 ]; then
if [ $noarp -eq 0 ]; then
ip ro append default dev $dev metric 30000 scope global
elif [ "$peer" != "" ]; then
if ping -q -c 2 -w 4 $peer ; then
ip ro append default via $peer dev $dev metric 30001
fi
fi
RestartRDISC
fi

exit 0
 
Old 11-20-2010, 09:33 PM   #9
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
I think you misunderstood sycamorex. Open a terminal and type /sbin/ifconfig and then hit enter. Then post the output of that command.

Brian
 
Old 11-20-2010, 09:59 PM   #10
Rockstar420
Member
 
Registered: Nov 2010
Distribution: SlackWare 13.1
Posts: 44

Original Poster
Rep: Reputation: 2
here is what i got out of terminal

root@slackware:~# /sbin/ifconfig
eth0 Link encap:Ethernet HWaddr 00:4c:69:6e:75:59
inet addr:169.254.108.187 Bcast:169.254.255.255 Mask:255.255.0.0
inet6 addr: fe80::24c:69ff:fe6e:7559/64 Scope:Link
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)
Interrupt:22 Base address:0x2c00

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:16 errors:0 dropped:0 overruns:0 frame:0
TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:840 (840.0 B) TX bytes:840 (840.0 B)
 
Old 11-20-2010, 10:12 PM   #11
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
It looks like you are online. Perhaps you have a DNS problem. Try "ping 74.125.19.147" (this is a google server).
 
Old 11-20-2010, 10:53 PM   #12
rfernandez
Member
 
Registered: Mar 2010
Location: Brazil
Distribution: Slackware64
Posts: 264

Rep: Reputation: 41
No, he's not. This

Code:
inet addr:169.254.108.187 Bcast:169.254.255.255 Mask:255.255.0.
is an invalid ip address that dhcp{cd,client} sets after a timeout or something like that.


Rockstar420, how do you connect to your internet server? Through a router or directly through the modem?
 
Old 11-20-2010, 10:54 PM   #13
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 232Reputation: 232Reputation: 232
Quote:
here is what i got out of terminal

root@slackware:~# /sbin/ifconfig
eth0 Link encap:Ethernet HWaddr 00:4c:69:6e:75:59
inet addr:169.254.108.187 Bcast:169.254.255.255 Mask:255.255.0.0
The address 169.254.108.187 looks like an APIPA address - a self assigned address generated from dhcpcd when a dhcp server is not found. Check the output of :
Code:
/sbin/ifconfig -a
to see that your network port hasn't changed. This should show all network ports - maybe you now have eth1 ?

Last edited by bgeddy; 11-20-2010 at 10:58 PM.
 
Old 11-21-2010, 06:48 AM   #14
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
Also, make sure you've got the relevant entry in /etc/resolv.conf
For example, the IP address of my router is 192.168.1.1 so I added
the following line to resolv.conf:

Code:
nameserver 192.168.1.1
 
Old 11-21-2010, 10:11 AM   #15
Rockstar420
Member
 
Registered: Nov 2010
Distribution: SlackWare 13.1
Posts: 44

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by rfernandez View Post
No, he's not. This

Code:
inet addr:169.254.108.187 Bcast:169.254.255.255 Mask:255.255.0.
is an invalid ip address that dhcp{cd,client} sets after a timeout or something like that.


Rockstar420, how do you connect to your internet server? Through a router or directly through the modem?

I connect threw my router and directly to the internet via dsl modem
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
=( cant get internet in Slackware!!!! joel_quiles Slackware 20 04-18-2007 06:17 PM
No internet in slackware. WayneS Linux - Newbie 3 09-02-2006 09:57 PM
Slackware 10.1 and internet Anak1n Linux - Wireless Networking 1 01-16-2006 06:41 PM
HELP with Internet On Slackware 10.0 thomasplock Linux - Hardware 7 10-01-2004 07:16 PM
no internet in slackware 9.1.. tehnick Linux - Networking 1 05-10-2004 05:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:29 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration