LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-08-2005, 05:11 PM   #1
nasrudin
LQ Newbie
 
Registered: Jan 2005
Location: portugal
Distribution: Knoppix 3.7 [hd-installation]
Posts: 9

Rep: Reputation: 0
Configuring Static IP


hey ppl, i'm using knoppix 3.7 (hd-installation) and can't seem to configure a static ip
i'm using the experimental kernel 2.6.9 and have been trying what's described on the web... none of which seemed to work, can anyone plz help on this one plz?
 
Old 01-08-2005, 05:27 PM   #2
nasrudin
LQ Newbie
 
Registered: Jan 2005
Location: portugal
Distribution: Knoppix 3.7 [hd-installation]
Posts: 9

Original Poster
Rep: Reputation: 0
i used ifconfig to set my ip addr to what it should be, as well as my netmask
it won't work for some reason...
so eth0 seems to be working fine but in fact i can't ping or access web-pages :P
help needed...plz, anyone?
 
Old 01-08-2005, 05:32 PM   #3
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Hi nasrudin, welcome to lq. Have you ran the knoppix network configuration tool? What card do you have? Are the proper modules loaded?
good luck.
 
Old 01-08-2005, 05:33 PM   #4
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
What does your /etc/resolv.conf look like?
good luck.
 
Old 01-08-2005, 05:41 PM   #5
nasrudin
LQ Newbie
 
Registered: Jan 2005
Location: portugal
Distribution: Knoppix 3.7 [hd-installation]
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Peacedog
Hi nasrudin, welcome to lq. Have you ran the knoppix network configuration tool? What card do you have? Are the proper modules loaded?
good luck.
how do I do that,, maybe I have, I've tried everything i could find in the GUI before searching up console commands :P

Quote:
Originally posted by Peacedog
What does your /etc/resolv.conf look like?
good luck.
I'm on win now, so that i could come here and get some help, i'll be back in a few minutes with an answer
brb
 
Old 01-08-2005, 05:47 PM   #6
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
To find out what card you have and if the modules are loaded, issue the following commands from a terminal window.

/sbin/lspci -v

/sbin/lsmod

Your /etc/resolv.conf should have a nameserver entry that looks something like this.

nameserver xxx.xxx.xxx.xxx

Where xxx.xxx.xxx.xxx is an ip address.
good luck.
 
Old 01-08-2005, 05:47 PM   #7
nasrudin
LQ Newbie
 
Registered: Jan 2005
Location: portugal
Distribution: Knoppix 3.7 [hd-installation]
Posts: 9

Original Poster
Rep: Reputation: 0
/etc/resolv.conf:

#insert nameserver here
#nameserver 127.0.0.1


---
What should it look like? :P
 
Old 01-08-2005, 05:49 PM   #8
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
See above post. The ip address should either be the dns server of your isp, or the dns server of your local network.
good luck.
 
Old 01-08-2005, 05:50 PM   #9
nasrudin
LQ Newbie
 
Registered: Jan 2005
Location: portugal
Distribution: Knoppix 3.7 [hd-installation]
Posts: 9

Original Poster
Rep: Reputation: 0
my network admin gave me this:
IP Adress -> 192.168.1.34
Subnet Mask -> 255.255.255.0
Default Gateway -> 192.168.1.254

Preferred DNS
->213.228.128.6
-> .5


i easilly got win to work around this.... but can't seem to make it happen using linux :/
 
Old 01-08-2005, 05:50 PM   #10
nasrudin
LQ Newbie
 
Registered: Jan 2005
Location: portugal
Distribution: Knoppix 3.7 [hd-installation]
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Peacedog
See above post. The ip address should either be the dns server of your isp, or the dns server of your local network.
good luck.
i'm gonna try it out brb
 
Old 01-08-2005, 05:55 PM   #11
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Try this as your nameserver.

213.228.128.6

good luck.
 
Old 01-08-2005, 06:04 PM   #12
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
You can edit the file manually with an editor as root or su -, or you can su - and issue the following.

Code:
echo nameserver 213.228.128.6 >> /etc/resolv.conf
You'll have to restart all network services, or reboot for the changes to take effect.
good luck.
 
Old 01-09-2005, 08:03 AM   #13
nasrudin
LQ Newbie
 
Registered: Jan 2005
Location: portugal
Distribution: Knoppix 3.7 [hd-installation]
Posts: 9

Original Poster
Rep: Reputation: 0
no good.
/etc/resolv.conf now has the line nameserver 213.228.128.6 in it, but even after a reboot, i still can't ping ro brwose the net
NE1?!
 
Old 01-09-2005, 12:26 PM   #14
nasrudin
LQ Newbie
 
Registered: Jan 2005
Location: portugal
Distribution: Knoppix 3.7 [hd-installation]
Posts: 9

Original Poster
Rep: Reputation: 0
the ip adress and netmask, as well as the nameserver are dealt with, how do i set the default gateway?
any help would be welcome
 
Old 01-09-2005, 02:29 PM   #15
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
open your /etc/rc.d/rc.inet1.conf file and add the gatway here
 
  


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
Configuring Linux for static ip saravanan1979 Linux - Networking 2 02-23-2006 07:00 PM
Manually configuring DHCP for static IP -- cannot assign IP tristanlee85 Linux - Networking 3 10-16-2005 01:34 AM
problems with login,load graphical interface & configuring static ip june Linux - Security 1 10-18-2004 08:52 AM
"localhost login" problems, loading graphical enterface and configuring static ip june Mandriva 2 10-15-2004 02:46 PM
Configuring domain names on static IP addresses from SBC DSL redbasin Linux - Networking 4 02-10-2004 10:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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