LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-15-2005, 10:12 AM   #1
derajer
LQ Newbie
 
Registered: Dec 2004
Location: Ankeny, Iowa
Distribution: Redhat 9.0
Posts: 12

Rep: Reputation: 0
Static won't work - DHCP does


I just setup a slackware 10.1 machine. I am a complete newb to linux. I run a SmoothWall firewall with DHCP and a Cisco PIX 501. I can access the internet (web browser, ping, etc...) when I use DHCP. When I use static with either the SmoothWall or the PIX I can access anything on the network, but can't get out. Is there something I'm doing wrong with setting up my gateway? That's the only thing I can think of.
 
Old 12-15-2005, 10:18 AM   #2
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,213

Rep: Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848
As long as the gateway is on the same network and same mask, you should be O.K. You may have to manually configure DNS settings with DHCP. Have a look to see what you have in your /etc/resolv.conf file. You can (as root) add your DNS IP addresses there.
 
Old 12-15-2005, 10:53 AM   #3
derajer
LQ Newbie
 
Registered: Dec 2004
Location: Ankeny, Iowa
Distribution: Redhat 9.0
Posts: 12

Original Poster
Rep: Reputation: 0
My name resolution is functioning, I have a local DNS server. I can resolve google to 72.14.203.99, but the packets don't make it out of the network. It seems like the SmoothWall is treating me as an external system.
 
Old 12-15-2005, 11:06 AM   #4
okmyx
Member
 
Registered: May 2004
Location: Cornwall, UK
Distribution: Ubuntu 8.04
Posts: 464

Rep: Reputation: 31
Then you'll need to specify a default gateway.

i.e. the route that packets take if the address isn't on your local subnet or no other routes are applicable in your routing table.

The default gateway will more than likely be the ip of your smoothwall server.
 
Old 12-15-2005, 12:05 PM   #5
derajer
LQ Newbie
 
Registered: Dec 2004
Location: Ankeny, Iowa
Distribution: Redhat 9.0
Posts: 12

Original Poster
Rep: Reputation: 0
I did specify the SmoothWall as my gateway, that is what is so confusing. Is it possible that the netconfig utility isn't properly configuring my gateway?

I also tried the PIX as my gateway and that didn't work either. I have several servers and workstations setup static, and I setup the SmoothWall myself so I know that static works on this network.
 
Old 12-15-2005, 01:20 PM   #6
justanothersteve
Member
 
Registered: Aug 2005
Location: Missouri, USA
Distribution: Gentoo
Posts: 161

Rep: Reputation: 30
I had a similar problem when I installed slackware 10.2 a few days back. When I ran the route command as root it didnt show my gateway even though I added it during netconfig. I ran:

route add default gw 192.168.1.1

and it solved my problem. if you dont see your gateway when running route then try the above command (the IP being your gateway of course)

Last edited by justanothersteve; 12-15-2005 at 01:22 PM.
 
Old 12-15-2005, 02:05 PM   #7
derajer
LQ Newbie
 
Registered: Dec 2004
Location: Ankeny, Iowa
Distribution: Redhat 9.0
Posts: 12

Original Poster
Rep: Reputation: 0
I checked route and it had my gateway, I tried the command anyway but I still can't get out.
 
  


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
Using DHCP with a static IP ninmonkeys Linux - Networking 9 11-30-2004 07:32 AM
FC2 Overriding static if in favor of dhcp system set for static pkraus109 Linux - Networking 8 09-21-2004 11:13 AM
DHCP to static IP ?? davepal Linux - Networking 1 04-21-2004 09:34 AM
RH9 / DHCP Doesn't Work / Static Does mfriedkin Linux - Wireless Networking 1 02-06-2004 02:18 PM
static ip machine attached to dhcp router? will this work? herron Linux - Networking 7 04-16-2003 06:52 PM

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

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