Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-15-2009, 07:55 AM   #1
LQ Newbie
Registered: May 2009
Posts: 2

Rep: Reputation: 0
Unhappy how to configure my static ip in my slacware linux server

Hi all,

Please help me out in this :-

I have one lan card in my linux server,slacware (os:linux)and one bandwidth
from spectranet.i want one local ip for my local network and static ip for internet and client pc would ping internet thru linux server..
How could i do that

Please tell me

Old 05-15-2009, 09:34 AM   #2
Senior Member
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
If you only have one LAN interface in your server, how will it connect both to the internet and to another computer?

As for giving Slackware a static IP, look at the manpage for ifconfig (`man ifconfig`) as well as looking at the file /etc/rc.d/rc.inet1.conf where you can specify interface-specific options, such as DHCP or static IP addressing.
Old 05-16-2009, 12:59 AM   #3
LQ Newbie
Registered: May 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Unhappy config

see i want 1) local ip add. like Thru this ip client pc would communicate in lan.
2) static ip like Thru this ip my server will communicate the internet.
All i need to do in a single lan card so, if i could edit the eth0 like:


and i need slackware command also.
how could i do that plz tell me.

If you can provide me your cell no. and mail id that will be greatfull to me.
thanks for promt reply.

Munishwar Thakur
Old 05-16-2009, 09:21 AM   #4
Senior Member
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
Dont you use any network devices in between your local LAN and WAN, if you have network devices like router then why cant you use NAT facility to map the local ip and public ip?
Old 05-16-2009, 09:38 AM   #5
Registered: Jan 2005
Location: Summer Midwest USA, Central Illinois, Winter Central Florida
Distribution: SlackwareŽ
Posts: 13,434
Blog Entries: 31

Rep: Reputation: 2605Reputation: 2605Reputation: 2605Reputation: 2605Reputation: 2605Reputation: 2605Reputation: 2605Reputation: 2605Reputation: 2605Reputation: 2605Reputation: 2605

If I get your configuration right then you have a server that is Slackware based with a single NIC as eth0. This is connected via a WAN connection on your 'spectranet' (whatever that is). You want to share this connection via your server. If you want 'NAT' then you either need to add another NIC to your server then setup NAT for your LAN via this server. Or provide another LAN device like a router to provide the NAT via the 'spectranet' device. If the 'spectranet' device has multiple ports then it's just the matter of properly setting that device up else you will need to setup as I mentioned.

You can do a LQ search as this has been covered a lot.


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
configure Mail Server with 1 Static ip on sendmail wasanthaya Linux - Server 1 02-19-2009 10:31 AM
configure server use a static IP address limit_me Linux - Server 3 11-08-2008 11:42 PM
static ip adrres on linux and server name vap824 Linux - Networking 3 11-01-2005 04:31 PM
can we configure a Linux server with mail server,file server and web server kumarx Linux - Newbie 5 09-09-2004 06:21 AM
Setting up a Linux Server (static ip) rajeshdorai Linux - Networking 1 10-10-2003 02:09 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:40 PM.

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