LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-10-2011, 03:42 PM   #1
nova49
Member
 
Registered: Nov 2010
Distribution: Slackware
Posts: 74

Rep: Reputation: 0
Static IP


I am trying to get a Slackware server up and running. I got a static IP working kinda. The computer gets a response when I ping the router but not the internet. Basically it can communicate with other computers on the network but nothing outside of the network. Its not a problem with the router because I have a couple other computer with static IPs. Also the network card works fine as it can get on the internet fine normally.

ifconfig results:
Code:
eth0      Link encap:Ethernet  HWaddr 6C:F0:49:15:4D:81  
          inet addr:192.168.1.100  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::6ef0:49ff:fe15:4d81/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:116 errors:0 dropped:0 overruns:0 frame:0
          TX packets:19 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:14372 (14.0 Kb)  TX bytes:1146 (1.1 Kb)
          Interrupt:21 Base address:0x8000 

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:880 (880.0 b)  TX bytes:880 (880.0 b)
 
Old 01-10-2011, 03:44 PM   #2
tsg
Member
 
Registered: Mar 2008
Posts: 155

Rep: Reputation: 30
What is the output of
Code:
route -n
?

<edit>

Also, how did you configure this ethernet port? Did you go through netconfig, edit rc.inet1.conf, or through ifconfig directly?

Last edited by tsg; 01-10-2011 at 03:47 PM.
 
Old 01-10-2011, 03:53 PM   #3
nova49
Member
 
Registered: Nov 2010
Distribution: Slackware
Posts: 74

Original Poster
Rep: Reputation: 0
I used netconfig.

route -n
Code:
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
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         192.168.1.1     0.0.0.0         UG    1      0        0 eth0
 
Old 01-10-2011, 04:00 PM   #4
tsg
Member
 
Registered: Mar 2008
Posts: 155

Rep: Reputation: 30
I'm assuming that 192.168.1.1 is the address of the router and, based on what you said, that you can ping it from the Slackware machine. Have you tried pinging a machine on the internet by IP address? If you can, but 'ping google.com' doesn't work, it may be a DNS issue. If it doesn't work, what is the error you're getting, if any?

Do you have any iptables rules set up?
 
Old 01-10-2011, 04:06 PM   #5
nova49
Member
 
Registered: Nov 2010
Distribution: Slackware
Posts: 74

Original Poster
Rep: Reputation: 0
I can ping other computers on the network and the router but not other websites.

Code:
ping: unknown host google.com
EDIT
no I have not set up ip tables. Is this something I need to look into? I never needed to set them up prior to Slackware so I'm not familiar with them.

Last edited by nova49; 01-10-2011 at 04:09 PM.
 
Old 01-10-2011, 04:19 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
So this is just a dns issue? No servers listed in /etc/resolv.conf?
 
Old 01-10-2011, 04:27 PM   #7
nova49
Member
 
Registered: Nov 2010
Distribution: Slackware
Posts: 74

Original Poster
Rep: Reputation: 0
Yeah nothing is listed. Any suggestions on how to fix my little DNS issue?
 
Old 01-10-2011, 04:31 PM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
erm... add one...
 
Old 01-10-2011, 04:39 PM   #9
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
You'll have to configure /etc/dhcpcd.conf with "nohook resolv.conf". This prevents dhcpcd from overwriting the /etc/resolv.conf file.

Don't forget to insert a nameserver in /etc/resolv.conf

Markus

Last edited by markush; 01-10-2011 at 05:12 PM. Reason: wrong word ;)
 
Old 01-10-2011, 05:00 PM   #10
nova49
Member
 
Registered: Nov 2010
Distribution: Slackware
Posts: 74

Original Poster
Rep: Reputation: 0
Ok thanks guys its working fine now.
 
  


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
Java non-static variable cannot be referenced from a static context issue rickrvo Programming 2 02-12-2010 03:26 PM
How to initialize a static array of a class in a static member function lali.p Programming 9 02-16-2008 09:27 AM
Howto Assign Multiple Static Public IP Addresses under SBC's PPPoE Static Ip system o trekgraham Linux - Networking 8 04-17-2007 10:51 AM
Java: non-static variable this cannot be referenced from a static context chief_officer Programming 4 05-29-2006 01:37 PM
FC2 Overriding static if in favor of dhcp system set for static pkraus109 Linux - Networking 8 09-21-2004 11:13 AM

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

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