PDA

View Full Version : netcardconfig?



Zak
08-28-2003, 01:50 PM
KNOPPIX v32 Release: 2003-07-26

I'm trying to get connected manually and netcardconfig needs 5 settings

1.IP address (ok)
2.Default Gateway (ok)
3.Network Mask (In windows I can only find subset mask is this the same thing)
4.Name Server (In Windows I have dns server is this the same thing)
5.Broadcast Address ( I don't know what this is or where to find it)


These are the settings I have on my windows connection.

ip address
default gateway
subsetmask
dns servers (X3)
dhcp server
mac address

any help much appreciated from an absolute beginner, thanks.

Tonka
08-28-2003, 05:27 PM
I think I can answer this for you, but please confrim with research
or if other here more experience would like to confrim please do


Quote:
*1.IP address (ok)
*2.Default Gateway (ok)

*3.Network Mask (In windows I can only find subset mask is this the same thing)

Netmask would be the same as your subsetmask from windows, normally something
like 255.255.255.0

*4.Name Server (In Windows I have dns server is this the same thing)

Yes DNS is the name server normally you just need the 1st DNS but you can also
put in the second DNS's IP as a backup

*5.Broadcast Address ( I don't know what this is or where to find it)

Broadcast is the actual network IP. ie. if your ip address is 192.168.1.100
your broadcast or network is 192.168.1.0


These are the settings I have on my windows connection.

ip address
default gateway
subsetmask
dns servers (X3)
dhcp server
mac address

any help much appreciated from an absolute beginner, thanks.

Hope that helps at least a little.

Tonka

Zak
08-28-2003, 06:06 PM
OK Tonka I will Input these settings and try again, I should add that I'm running the program directly from the CD, If I can get connected I will install it to the hard drive, will post back on the results, thanks.

Zak
08-28-2003, 07:51 PM
Still can't connect.

I boot from the CD and the auto-config screen says network device detected eth0.

Then I try to get a connection using DHCP broadcast but I get "operation failed" so I open shell konsole and input the internet settings which work with windows, but I still cannot get online, I get "error occured while loading page"" for all websites. These are the settings I put into the konsole.

IP address 82.35.xxx.208

default gateway 82.35.xxx.1

network mask 255.255.xxx.0

nameserver 62.30.xxx.39 (the first dns server listed in windows, but also tried others)

broadcast address = 82.35.xxx.0 also tried 82.35.xxx.208

Well I've been at this all day now without a result so if anyone knows wassup please let me know, cheers.
:?:

Tonka
08-28-2003, 11:07 PM
I did I little checking and as far as I can tell the only thing I was incorrect about was the bcast which should end with xxx.xxx.xxx.255 not xxx.xxx.xxx.0

I also boot and run From the CD, my setup has a router with DHCP tho and
I didn't have any problem at all with the net setup, I didn't have to do any
setup for it at all, it was all auto config'd.

I also have mandrake running dual-boot with win98 on another sys and it also
was no problem with the net config. This system's HD crashed and I decided to
just run from the CD intill I can get a new HD (time and money stop me so far)
It was XP till I lost the HD, But I like this OS so well I will more then likly set it
up for a dual boot with WinXP and Debian (Knoppix).

Good Luck with everything. and stick with it you'll get it going sooner or later
and then you'll know alot more when you do.

Tonka

ferreter
08-29-2003, 04:23 AM
I've seen this before, found out that you have to add some stuff to /etc/network/intefaces.

add

auto eth0
iface eth0 inet dhcp

at the bottom of this file, save it. Then type /etc/init.d/networking restart

Cheers.

paradocs
08-29-2003, 05:09 AM
Hi Zac,

Do you connect to a fixed IP address?
Or is you address assigned automatically
or by a firewall?

Do you boot from a floppy, the CD, or what kind of
hard drive install do you have?

I have a fixed address and work from the CD,
( actually the DVD) and no hard drive. I boot
from a KNOPPIX boot floppy with the configuration
files on it.

I use a script to start up the internet connection
each time I start up.

Place a script in /home/knoppix/.kde/Autostart after you have tested
it to make it automatic. Make it executable. It will be loaded from the floppy each time you boot.


#!/bin/sh
sudo ifconfig eth0 ###.##.###.### netmask 255.255.254.0
sudo route add default gw ###.###.###.###
sudo cp -fp /mnt/floppy/resolv.conf /etc/resolv.conf
The file
/etc/resolv.conf
needs to be changed to have one line in it and this
is automated with the cp copy command above
but for test purposes you can just edit it.

nameserver ###.###.###.###
Try this with your values. Later you can
automate it by booting with KNOPPIX-->Configure-->
Save KNOPPIX configuration.


If you are assigned an new address by your IP
each time you log on -- then netcardconfig
shoulb work automatically with a YES click.

Best Wishes
paradocs

ferreter
08-29-2003, 02:25 PM
I know that there is an easier (more debian) way to do the automatic eth configuring on boot. I'd really look into that interfaces file as it allows for many different scenerios including pump, dhcp, and manual configuration.

Zak
08-29-2003, 07:34 PM
sorry guys, this is now getting way over my head, thanks for the responses, I did try your suggestion ferreter but when I tried to edit /etc/network/intefaces. It said I didn't have permission to write to the file, (I'm working from the cd not the hard drive.) I could try installing knoppix to the hard drive but I can't see how that's gonna solve my connection problem. this is all about the TCP/IP settings, the numbers I input work in windows but not in Linux and it's not just knoppix, I tried the Demo Linux ISO earlier today, same result no internet connection. To add insult to injury, I e-mailed my ISP to get confirmation that these TCP/IP settings were correct, and they flat-out refused any help, saying that they
(Blueyonder.co.uk) did not support Linux, and that I use it at my own risk, time to call it a day methinks! (anyone know how to un-cap a blueyonder modem, :) thanks again to all who responded in this thread)

ferreter
08-29-2003, 09:47 PM
do this:

Select a konsole in the lower left corner. At the prompt type in:

sudo ifconfig

and give use the results.

Also, do you know what kind of network card you are using? Does your cable/DSL modem connect to your computer via a usb connector or a larger version of the phone connector (called RJ-45)? In windows if you go to the device manager you should be able to find out what kind of ethernet controller you have.

Don't give up yet :)

Edit: Most ISPs don't support linux, that's why there are so many online boards to goto for help.

Zak
08-29-2003, 10:48 PM
SiS 900 PCI Fast Ethernet Adapter (connecter is RJ-45)


sudo ifconfig looks like this>


knoppix@ttyp0[knoppix]$ sudo ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0


UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX

packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:400 (400.0 b) TX

bytes:400 (400.0 b)

knoppix@ttyp0[knoppix]$

Zak
08-30-2003, 09:30 AM
think I see the problem, I entered the command ifconfig -a, the return shows

Ethernet HWaddr 00:00:00:00:00:00

I think this is my MAC Address (physical address) and the string of 12 zeros
shows it's missing, also, this was the only address that was NOT asked for when
I set up the connection, I'm sure this is it, but how do I enter the MAC address
manually, I have the 12 digit string.

here's the return for ifconfig -a

knoppix@ttyp0[knoppix]$ ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
BROADCAST MULTICAST

MTU:1500 Metric:1
RX packets:982 errors:0 dropped:0 overruns:0 frame:0
TX packets:5 errors:0 dropped:0

overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:59790 (58.3 KiB) TX bytes:1710 (1.6 KiB)


Interrupt:3 Base address:0xd800

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0


UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX

packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:400 (400.0 b) TX

bytes:400 (400.0 b)

knoppix@ttyp0[knoppix]$

ferreter
08-30-2003, 05:41 PM
Nah, the lo stands for loopback which is a local only address used for testing. Your network card is not getting detected and the module is not getting loaded. If you do a 'sudo lsmod' command we can see which modules are getting loaded. Also do a 'sudo lspci' (both w/o the quotes) to find out exactly how linux is seeing your network card.

Unfortunately I wouldn't know how to install this card from the live CD. Anyone else able to assist?

Zak
08-30-2003, 06:26 PM
yes, ferreter my brother, I can see the card needs to get detected, but I don't think it's gonna happen, will run those commands & post back here, (probably after much beer) maybe a eureka moment will ensue! can I add that using windows the same thing happens nothing connects until I input the MAC address, from the moment the MAC is entered everything fires up.

Zak
08-30-2003, 07:33 PM
lsmod

knoppix@ttyp0[knoppix]$ sudo lsmod
Module Size Used by Not tainted
autofs4 8724 1 (autoclean)
af_packet 13448 0 (autoclean)
ext3 62912 0 (autoclean)
jbd 45716 0 (autoclean) [ext3]
nls_iso8859-1 2876 1 (autoclean)
nls_cp437 4380 1 (autoclean)
agpgart 34592 0 (unused)
cmpci 33428 0
soundcore 3364 4 [cmpci]
sis900 12460 0
serial 51844 0 (autoclean)
usb-ohci 18152 0 (unused)
usbcore 57376 1 [usb-ohci]
apm 9768 2
rtc 6908 0 (autoclean)
cloop 7940 2
knoppix@ttyp0[knoppix]$

...........

lspci

knoppix@ttyp0[knoppix]$ sudo lspci
00:00.0 Host bridge: Silicon Integrated Systems [SiS] 730 Host (rev 02)
00:00.1 IDE interface: Silicon Integrated Systems [SiS] 5513 [IDE] (rev d0)
00:01.0 ISA bridge: Silicon Integrated Systems [SiS] 85C503/5513
00:01.1 Ethernet controller: Silicon Integrated Systems [SiS] SiS900 10/100 Ethernet (rev 82)
00:01.2 USB Controller: Silicon Integrated Systems [SiS] SiS7001 USB Controller (rev 07)
00:01.3 USB Controller: Silicon Integrated Systems [SiS] SiS7001 USB Controller (rev 07)
00:02.0 PCI bridge: Silicon Integrated Systems [SiS] SiS 530 Virtual PCI-to-PCI bridge (AGP)
00:09.0 Multimedia audio controller: C-Media Electronics Inc CM8738 (rev 10)
01:00.0 VGA compatible controller: nVidia Corporation NV11DDR [GeForce2 MX 100 DDR/200 DDR] (rev b2)
knoppix@ttyp0[knoppix]$

Stephen
08-30-2003, 07:41 PM
yes, ferreter my brother, I can see the card needs to get detected, but I don't think it's gonna happen, will run those commands & post back here, (probably after much beer) maybe a eureka moment will ensue! can I add that using windows the same thing happens nothing connects until I input the MAC address, from the moment the MAC is entered everything fires up.

I took a quick look at man interfaces there seems to be a couple of ways to set the MAC address you may want to try hwaddress ether mac_address_needed as a line in your interfaces file for the eth0 maybe with the pre-up command included as well on the line.

Zak
09-16-2003, 10:36 AM
tried to add the line " hwaddress ether mac_address_needed " to the interfaces file, but wasn't allowed, keep getting " you do not have write permission". I guess because I'm using the evaluation CD. Is there a way around this?
:(

Zak
09-16-2003, 12:39 PM
Finally, I'm connected. I swapped the NIC connection on the modem to a USB connection,
when I ran ifconfig -a it showed the HWaddr had been assigned and I got online straight away.
Thanks to everyone who responded in this thread.


eth0 Link encap:Ethernet HWaddr 00:40:xx:7E:76:17
inet addr:82.35.xxx.67 Bcast:255.255.255.255 Mask:255.255.248.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:117047 errors:0 dropped:0 overruns:0 frame:0
TX packets:826 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:7514486 (7.1 MiB) TX bytes:120197 (117.3 KiB)

:wink:

Megagun
09-16-2003, 05:32 PM
:o that hard to add inet connection?

well... congratulations anyways :)

LinuxGozer
09-23-2003, 01:00 PM
help me. . . :(
i got the same problem as zak HAD
:( i can't connect :S
i enter all the info correct but i just can't connect to the web :(
plz help me... :(
i got cable and all the info i need