LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-04-2009, 12:03 AM   #1
mattca
Member
 
Registered: Jan 2009
Distribution: Slackware 14.1
Posts: 333

Rep: Reputation: 56
network issues - new install


hi all, slackware newbie here.. can't seem to get the network up and running.. here is some hopefully helpful information:

Code:
bash-3.1# dmesg | grep eth
eth0 (ipw2200): not using net_device_ops yet
eth1: Broadcom 44xx/47xx 10/100BaseT Ethernet 00:14:22:ea:93:bb
b44: eth1: Link is up at 100 Mbps, full duplex.
b44: eth1: Flow control is off for TX and off for RX.
eth0: no IPv6 routers present
eth1: no IPv6 routers present
eth0: no IPv6 routers present
eth0: no IPv6 routers present
bash-3.1# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:13:ce:80:db:6e  
          inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::213:ceff:fe80:db6e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:11 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:3996 (3.9 KiB)
          Interrupt:17 Base address:0x4000 Memory:dfdfd000-dfdfdfff 

eth1      Link encap:Ethernet  HWaddr 00:14:22:ea:93:bb  
          inet addr:192.168.1.4  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::214:22ff:feea:93bb/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:52 errors:0 dropped:0 overruns:0 frame:0
          TX packets:29 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:18620 (18.1 KiB)  TX bytes:4310 (4.2 KiB)
          Interrupt:18 

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:41 errors:0 dropped:0 overruns:0 frame:0
          TX packets:41 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:4328 (4.2 KiB)  TX bytes:4328 (4.2 KiB)

bash-3.1# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
localnet        *               255.255.255.0   U     0      0        0 eth0
localnet        *               255.255.255.0   U     0      0        0 eth1
169.254.0.0     *               255.255.0.0     U     0      0        0 eth1
loopback        *               255.0.0.0       U     0      0        0 lo
default         192.168.1.1     0.0.0.0         UG    0      0        0 eth1

// relevant info from /etc/rc.d/rc.inet1.conf

# Config information for eth0:
IPADDR[0]="192.168.1.2"
NETMASK[0]="255.255.255.0"
USE_DHCP[0]=""
DHCP_HOSTNAME[0]="192.168.1.1"
# Config information for eth1:
IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]="yes"
DHCP_HOSTNAME[1]="192.168.1.1"

# Config information for eth2:
IPADDR[2]=""
NETMASK[2]=""
USE_DHCP[2]=""
DHCP_HOSTNAME[2]=""

# Config information for eth3:
IPADDR[3]=""
NETMASK[3]=""
USE_DHCP[3]=""
DHCP_HOSTNAME[3]=""

# Default gateway IP address:
GATEWAY="192.168.1.1"
i searched through the archives and followed the instructions on a wiki page i found, no luck. any ideas are appreciated

[wiki page: http://alien.slackbook.org/dokuwiki/...kware:network]

[also, doh, eth0 is a wifi card and eth1 is a wired adapter. i'm trying to get eth1 up and running first.]

Last edited by mattca; 12-04-2009 at 12:11 AM.
 
Old 12-04-2009, 01:15 AM   #2
ddaemonunics
Member
 
Registered: May 2008
Location: Romania
Distribution: Debian
Posts: 242

Rep: Reputation: 41
ok eth1 is configured with an IP...please specify more about your network
what gateway, nameserver you have?
 
Old 12-04-2009, 05:42 AM   #3
stoggy
Member
 
Registered: Jun 2008
Location: Dallas, TX
Distribution: Slackware and FC
Posts: 113

Rep: Reputation: 22
it looks like it should be working.

when are you having problems? connecting to stuff on your local network or when you go to something outside of your network? Do you get any network?

try:

traceroute 192.168.1.1
traceroute google.com

sudo /sbin/ifconfig eth0 down # then try connecting to something



do a `route -n` or `netstat -rn` same output in this case but you cant make a mistake with netstat if you put a wrong switch with route you can blow your route table away. Nothing a reboot or re-config cant fix but its your box.

Last edited by stoggy; 12-04-2009 at 05:52 AM.
 
Old 12-04-2009, 09:15 PM   #4
mattca
Member
 
Registered: Jan 2009
Distribution: Slackware 14.1
Posts: 333

Original Poster
Rep: Reputation: 56
sorry, as you can tell i'm a network noob as well..

about my network.. i have a netgear wireless router.. the slackware box is connected to it via a wired connection. there is also a debian server connected (wired) as well.

i used my router (192.168.1.1) as the gateway and name server.. not sure if that was the right choice. or if anything i set up is correct at all.

as for what i am able to do or not do... can't even ping within my own network, so not much

here is some output:

Code:
root@bacon:~# traceroute 192.168.1.1
traceroute to 192.168.1.1 (192.168.1.1), 30 hops max, 38 byte packets
 1  192.168.1.2 (192.168.1.2)  3001.003 ms !H  3000.939 ms !H  3001.967 ms !H
root@bacon:~# traceroute google.com
traceroute: unknown host google.com
root@bacon:~# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
From 192.168.1.2 icmp_seq=2 Destination Host Unreachable
From 192.168.1.2 icmp_seq=3 Destination Host Unreachable
From 192.168.1.2 icmp_seq=4 Destination Host Unreachable
From 192.168.1.2 icmp_seq=6 Destination Host Unreachable
From 192.168.1.2 icmp_seq=7 Destination Host Unreachable
From 192.168.1.2 icmp_seq=8 Destination Host Unreachable
From 192.168.1.2 icmp_seq=10 Destination Host Unreachable
From 192.168.1.2 icmp_seq=11 Destination Host Unreachable
From 192.168.1.2 icmp_seq=12 Destination Host Unreachable
From 192.168.1.2 icmp_seq=14 Destination Host Unreachable
From 192.168.1.2 icmp_seq=15 Destination Host Unreachable
From 192.168.1.2 icmp_seq=16 Destination Host Unreachable

--- 192.168.1.1 ping statistics ---
16 packets transmitted, 0 received, +12 errors, 100% packet loss, time 15005ms, pipe 3
root@bacon:~# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
i'm sure the fact that it's got 192.168.1.2 and 192.168.1.4 for the same device is causing a problem.. is it confused with my wireless card?
 
Old 12-04-2009, 10:00 PM   #5
mattca
Member
 
Registered: Jan 2009
Distribution: Slackware 14.1
Posts: 333

Original Poster
Rep: Reputation: 56
update: yes it was getting confused with my wireless card. i disabled it and now i can ping both my router and my server. but i can't ping google so dns isn't working.. which is odd because my server has 192.168.1.1 in resolv.conf too..

[it works now.. default gateway was the last missing piece]

Last edited by mattca; 12-04-2009 at 11:07 PM.
 
Old 12-05-2009, 08:27 AM   #6
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

Your 'DNS' from the ISP should be included in the '/etc/resolv.conf';


Code:
 sample '/etc/resolv.conf';

search 192.168.1.1     

nameserver xxx.xxx.xxx.xxx   #ISP DSN 'replace xxx.xxx.xxx.xxx
                             #with IP from your ISP
nameserver 4.2.2.1           #Verizon third level DNS
nameserver 4.2.2.2
nameserver 4.2.2.3
nameserver 4.2.2.4
You could add the third level DNS without probllems. I do this as a fallback. You could google for third level but 'Listed DNS Servers' is a reliable list.


The above link and others can be found at 'Slackware-Links'. More than just SlackwareŽ links!
 
  


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
Dell m1210 Linux issues (having issues getting network working under Ubuntu) thebert Linux - Newbie 4 03-14-2008 03:47 PM
Network install issues kudos Ubuntu 1 07-13-2007 06:42 PM
Network issues 24giovanni Linux - Networking 18 11-19-2006 09:54 AM
help install gentoo (network issues) alchemist2 Linux - Newbie 1 12-08-2004 03:27 PM
Network issues kingkrill Linux - Newbie 14 05-29-2004 08:57 AM

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

All times are GMT -5. The time now is 01:48 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