LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 05-15-2009, 08:55 AM   #1
munishwar
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

Thanks
Munishwar
 
Old 05-15-2009, 10:34 AM   #2
Poetics
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, 01:59 AM   #3
munishwar
LQ Newbie
 
Registered: May 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Unhappy config



see i want 1) local ip add. like 192.168.1.254. Thru this ip client pc would communicate in lan.
2) static ip like 122.68.75.99/28. 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:

eth0:0 192.168.1.254
eth0:1 122.68.75.99/28

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.

Thanks
Munishwar Thakur
+91-9990517122
mani22in2004@gmail.com
 
Old 05-16-2009, 10:21 AM   #4
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,275

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, 10:38 AM   #5
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,892
Blog Entries: 27

Rep: Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182
Hi,

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.
 
  


Reply


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 11:31 AM
configure server use a static IP address limit_me Linux - Server 3 11-09-2008 12:42 AM
static ip adrres on linux and server name vap824 Linux - Networking 3 11-01-2005 05:31 PM
can we configure a Linux server with mail server,file server and web server kumarx Linux - Newbie 5 09-09-2004 07:21 AM
Setting up a Linux Server (static ip) rajeshdorai Linux - Networking 1 10-10-2003 03:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06: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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration