PDA

View Full Version : How to get my IP address from knoppix



jenniferosterlau
10-28-2005, 12:07 PM
Hi all,

please can I know which command to type at the Shell Konsole to know my IP address? thanks.

Also what command do I type to change my Domain name?

thanks
Jen

Blackbomb
10-28-2005, 12:34 PM
ifconfig

This will show you stats for all your config'd net adaptors (including IP addy)... if you want to see just a specific one type

ifconfig (interface)

example:
# ifconfig eth0
eth0 Link encap 10Mbps Ethernet HWaddr 00:00:C0:90:B3:42
inet addr 172.16.1.2 Bcast 172.16.1.255 Mask 255.255.255.0
UP BROADCAST RUNNING MTU 1500 Metric 0
RX packets 3136 errors 217 dropped 7 overrun 26
TX packets 1752 errors 25 dropped 0 overrun 0

rwcitek
10-28-2005, 06:08 PM
Hello and welcome to Knoppix.net.

We hope that you enjoy your use of Knoppix and hope you become an active member of the community. There's no membership fee. We just ask that you help us and others by becoming familiar with Knoppix, posting questions, and letting the rest of us know how things go. Also, I noticed that you joined recently and so was wondering if you wouldn't mind answering a few questions.

1. - How did you hear about Knoppix?
2. - How did you discover Knoppix.net?
3. - What versions of Knoppix have you tried?
4. - What type of system are you running Knoppix on?
5. - What operating system is currently installed on that system?
6. - How long have you been using computers, or how familiar are you with computers?
7. - Have you used linux before? If so, how long?
8. - What do you hope to do with Knoppix or Linux?
9. - Are you familiar with a wiki? If so, have you used a wiki before, e.g wrote some content?


please can I know which command to type at the Shell Konsole to know my IP address? thanks.
As Blackbomb already mentioned, ifconfig is the command. IIRC, there is also a commnd ipaddress (or similar) that will also diplay the IP address. BTW, did you know that a single interface can have more than one IP address?


Also what command do I type to change my Domain name?

Your domain name is stored in a few places and usually assigned via DHCP if you run Knoppix from the LiveCD. Two places to look are here:

hostname -d
cat /etc/resolv.conf

Domain name can mean many different things under Linux, so those two commands are just a start. For more information, 'man hostname'. It's not the best-written documentation, but it's a start.

If you have more questions, please do post back.

Regards,
- Robert
http://www.cwelug.org

jenniferosterlau
10-29-2005, 08:12 PM
Hello Robert and Blackbomb,
Thank a lot for replying.

1. - How did you hear about Knoppix?
I heard about it from a friend studying in the same university as me.

2. - How did you discover Knoppix.net?
I typed knoppix network in google and found it.

3. - What versions of Knoppix have you tried?
ver 3.9

4. - What type of system are you running Knoppix on?
NEC Versa E680 PIV 1.5GHz 512MB

5. - What operating system is currently installed on that system?
Windows XP, I performed a Knoppix HD install on VMWare

6. - How long have you been using computers, or how familiar are you with computers?
It's been 8years long, Im doing my Bsc in Computer Science right now. Im very familiar with Windows but when it comes to Linux, I'm not very brilliant.

7. - Have you used linux before? If so, how long?
Never ever before.

8. - What do you hope to do with Knoppix or Linux?
I am trying to use Knoppix to host an Asterisk PBX because for my final year project I have to build a softphone that uses IAX protocol.

9. - Are you familiar with a wiki? If so, have you used a wiki before, e.g wrote some content?
No, I am not familiar with wiki. I just know its definition that's all

Hey I have a question,
50% of the time when I start my machine, I get the msg "another pump is running". I have to power off my machine and restart to be able to get access to Internet. Do you know why I am getting this? thanks a lot.
Jen

rwcitek
10-29-2005, 08:57 PM
9. - Are you familiar with a wiki? If so, have you used a wiki before, e.g wrote some content?
No, I am not familiar with wiki. I just know its definition that's all
Thanks for your replies. I highly recommend not only browsing through the documentation (http://www.knoppix.net/wiki/), which is a wiki, but also putting your notes on the knoppix wiki. You can do that by creating a new account (http://www.knoppix.net/wiki/Special:Userlogin) on the wiki and then add your content there. Here's my page (http://www.knoppix.net/wiki/User:Rwcitek) and here's a list of other people's pages (http://www.knoppix.net/wiki/Special:Listusers).

Your PBX project sounds interesting. I'm sure many others would like to see your notes on how you do it. They may even be able help you get it working. A quick Google (http://www.google.com/search?q=site%3Aknoppix.net%2Fforum+Asterisk) shows that others have tried Asterick under Knoppix. Dunno how successful they were.


Hey I have a question,
50% of the time when I start my machine, I get the msg "another pump is running". I have to power off my machine and restart to be able to get access to Internet. Do you know why I am getting this? thanks a lot.
Dunno. When you say "start my machine" do you mean your virtual machine within VMWare or the physical machine?

A possible solution might be to open a root terminal, type "pump -k", and then "pump -i eth0".

Give that a try and let us know how it goes.

Regards,
- Robert
http://www.cwelug.org

jenniferosterlau
10-30-2005, 04:53 AM
Hello Rob,

Yes I meant Virtual machine. I will try it now and give feedback. thank you again very much for helping me out!:)
Jen

jenniferosterlau
10-30-2005, 06:40 AM
Hi Rob,

I typed ifconfig and obtained the following:

eth0 Link encap:Ethernet HWaddr 00:0C:29:8F:1D:F6
inet addr:192.168.1.244 Bcast:255.255.255.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:26 errors:0 dropped:0 overruns:0 frame:0
TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3373 (3.2 KiB) TX bytes:2826 (2.7 KiB)
Interrupt:18 Base address:0x1080

Using Samba I can access every shared folder in WiNXP SP2. However when I type "\\192.168.1.244" in WINXP SP2 I am told that the "network path cannot be found"! Is there a way to access my Knoppix VM from Windows? I am asking that question because I have to provide my Asterisk IP Address to a softphone I installed in WinXP. I tried 192.168.1.244 but it says connection failed. thanks a lot
Jen