LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 12-20-2003, 01:00 AM   #1
wh33t
Member
 
Registered: Oct 2003
Location: Canada
Posts: 924

Rep: Reputation: 61
Setting a Static IP


Hey Mandy Gurus out there.

Im running 9.2, no Xserver, just the Shell. I think it might be Bash, I'm not too sure, my knowledge of the opensource world is still quite minimal, but Im looking to try and set my ip to be static. I'm behind an openBSD gateway firewall computer running packetfilter. I did not set that up. Some uber bsd freak did that for me, and hes not readily available right now. So if anyone out there crusing the boards can help me, i'd really appreicate that. Please keep in mind, i have no graphical interface what so ever, and I plan on doing all of this from a win32 putty client. Thanks.
 
Old 12-20-2003, 05:04 AM   #2
ac_dispatcher
Member
 
Registered: Aug 2003
Location: Ohio, USA
Distribution: Kubuntu
Posts: 60

Rep: Reputation: 15
No guru here but may this will work. I got this from Gentoo when I did it:


# ifconfig $IFACE $IPNUM broadcast $BCAST netmask $NMASK
# route add -net default gw $GTWAY netmask 0.0.0.0 metric 1 $IFACE

Definitions
$IFACE = usually- eth0
$IPNUM = Your static address
$BCAST = usually 192.168.1.255
$NMASK = usually 255.255.255.0
$GTWAY = Gateway address - usually 192.168.0.1


Then edit your /etc/resolv.conf file to:

domain mydomain.com
nameserver 10.0.0.1
nameserver 10.0.0.2

Of course you would replace the 10.0.0.1 with your DNS

Then try it out:

ping -c 3 www.yahoo.com
 
  


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
Setting a static IP dreakon SUSE / openSUSE 2 10-02-2005 03:08 PM
setting a static IP roenstad Linux - Newbie 1 10-02-2005 02:56 AM
Setting a static IP hongman Linux - Networking 6 02-22-2005 05:07 AM
Setting Static IP smurfix Debian 6 02-20-2005 03:07 PM
setting a static IP EMHagerty Linux - Networking 1 09-09-2004 03:15 PM

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

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