LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 07: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, 09: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, 12: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, 09:21 AM   #4
kirukan
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
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,

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



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

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

All times are GMT -5. The time now is 11:43 AM.

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