LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Mandrake 9.1 & connecting to Internet (https://www.linuxquestions.org/questions/linux-networking-3/mandrake-9-1-and-connecting-to-internet-70143/)

polonator 07-04-2003 04:15 PM

Mandrake 9.1 & connecting to Internet
 
Greetings,

I am currently dual booting on Mandrake 9.1 and Win2k. Everything works fine in Win2k, I can access the internet, configure my router etc.
Anyway, I'm using Mandrake 9.1 and I have been attempting to connect to the internet for over a week now. According to the documentation, my network card, SiS900, is supported, and Mandrake even detects it. After running the wizard, DrakConnect states the following:

Type: LAN
Gateway:
Status: Not connected
LAN configuration
Interface: eth0
IP address:
Protocol: dhcp
Drive: sis900
Status up

[root@localhost /]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:E0:18:88:3D:39
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:27 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:10 Base address:0xb000

eth0:9 Link encap:Ethernet HWaddr 00:E0:18:88:3D:39
inet addr:169.254.16.167 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:10 Base address:0xb000

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:290 errors:0 dropped:0 overruns:0 frame:0
TX packets:290 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:29386 (28.6 Kb) TX bytes:29386 (28.6 Kb)


I am also using a router, a D-LINK DI-704P. I have the newest firmware installed from Win2K.
I am unable to access the router from Linux. As a matter of fact, I cannot ping anything.

[root@localhost /]# ping 192.168.0.1 (my router)
connect: Network is unreachable
[root@localhost /]# ping 192.168.0.122 (this computer)
connect: Network is unreachable

This led D-LINK tech support to believe that my network card was not configured properly. Therefore, I tried to install two SiS900 drivers that I found on the Internet, one from a site I've forgotten about, and one from Asus.


The first one had the following instructions.

The recommended kernel version is 2.2.X. You should also comfirm the
Linux kernel is built with network and module supports. Other required
packages (libraries, linker, ...) with the kernel version can be found
in the Document\Changes file of the Linux kernel source .

1. Now enter the following commands at the UNIX prompt. Remember, UNIX
is case sensitive.

# mkdir /temp
# mcopy a:sis900.c /temp

Note: a. copies from DOS disk to current working directory.
b. mcopy is mtools if you don't have mtools, you can
mount -t /dev/fd0 and use cp command

# mcopy a:trans /temp
# cd /temp
# chmod 777 * (add all right to all file)

***what is the line above attempting to explain? what does chmod 777 *. do?***

2. run trans file to complie and copy driver to linux source code:
/temp/trans

***when I actually do this, I get the following...
Compling driver...
gcc: sis900.c: No such file or directory
gcc: no input files
Done!

***I don't how know to fun netconfig either

3. Run netconfig to set you network parameter (like ip, gateway), This
will create '/etc/rc.d/inet1' and 'inet2' files.

***I haven't been able to get to this part yet.
4. you must modify /etc/rc.d/rc.inet1 to insmod driver. This file will
run at boot time. add a line in rc.inet1:

# cd /etc/rc.d
# vi rc.inet1
# insmod /your driver'path/sis900.o

ex: insmod /usr/src/linux/modules/sis900.o
(must before bind protocal)

# shutdown -h now

(then your driver will work every time you boot.)


The second driver I downloaded from Asus, my motherboard's manufacturer.

The following is copied from the txt file...
I know, I am using Mandrake 9.1, not Redhat. But this was the only Linux driver offered on the Asus site. The instructions don't work for me because the /usr/src/2.4.19 directory doesn't exist on my computer. Also, what does the "make modules;make modules_install" actually do?


SiS900 Fast Ethernet Adapters Linux Driver Install Documentation
Jun 6, 2002

**Before install this driver, you should make sure that your kernel had
enable " SiS 900/7016 PCI Fast Ethernet Adapter support " !

This driver is for kernel RedHat kernel 2.4.x or 2.5.x. You can install this driver
follow steps descributed below. In following case, we use kernel 2.4.19 for example

1> Copy sis900.c and sis900.h to /usr/src/2.4.19/drivers/net/ and replace old ones

2> Compile the driver module:

[root@/usr/src/2.4.19]# make modules;make modules_install

The binary will be installed as:

/lib/modules/2.4.19/kernel/drivers/net/sis900.o

3> Reboot your computer

4> Install the module:

[root@/lib/modules/2.4.19/kernel/drivers/net]# insmod sis900.o

5> Assign an IP address to the interface by entering the following, where <x>
is interface number:

ifconfig ethx <IP_address>

6> Verify that the interface works. Enter the following, where <IP_address>
is the IP address for another machine on the same subnet as the interface
that is being tested:

ping <IP_address>

---
Other possibily important information

- I'm using Rogers Cable, and it uses DHCP
- When Mandrake is loading,
"bringing up interface eth0: " takes forever to proceed to the next step...
- Probes are also sent to 169.254.64.167

Finally, could someone please tell me how to make myself the root user in a terminal w/o having to access File Manager as a Super User and then opening a terminal from that window?

Thanks for reading my plea for assistance. Help would be most appreciated.

andrewlkho 07-04-2003 06:11 PM

umm....can't help you with the network problem - is the lan working? ie can you ping other machines on the lan?
as for making yourself root within a terminal, use the command 'su'. you should try sudo if you use this often.
hth,andy

polonator 07-04-2003 08:14 PM

The lan is working in Win2k. I can ping all the machines.

I can't ping anything in Linux though.

d4k0t4 07-05-2003 06:52 AM

IP adsress in for Linux
 
[quote]eth0:9 Link encap:Ethernet HWaddr 00:E0:18:88:3D:39
inet addr:169.254.16.167 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:10 Base address:0xb000[Quote]

I noticed something in this quote from your config file. The address 169.254.16.167 belongs to Microsoft. When this address is assigned to a machine it is self-assigned meaning that a windows machine can not optain as address for whatever reason and it assigns itself this so you don't get alot of network errors when booting. Now as for your linux config file I do not know why or how that address got in your config file but I believe that is what is hindering you. And usually on a class network such as 192.168.1.xxx the subnet is 255.255.255.0 not 255.255.0.0 like is in the config file. I hope this helps!!!

D4K0T4

polonator 07-05-2003 01:23 PM

How do you change the inet addr and bcast?

I think I can change the mask in DrakConnect.

Robert0380 07-05-2003 01:33 PM

the command is:



#ifconfig eth0 192.168.0.1 netmask 255.255.255.0 bcast 192.168.1.255

make the ip whatever you want, make sure bcast is the same as the IP with
just the end being different (255 for bcast) netmask should remain the same.

polonator 07-06-2003 12:32 PM

When I ran the command, I get the following message:

bcast: Host name lookup failure

You said that the bcast is the same as the IP, but with just the end being different. By IP, do you mean the IP of the local LAN or the IP for the cable modem?

In LAN, the IP is 192.168.0.122 ... so the bcast should be 192.168.0.255, not 192.168.1.255 right?
Nevertheless, both IPs produced the same message.

I also tried it with my cable modem's current IP, which produced the same result.

Any ideas on what the reason for this is?

d4k0t4 07-07-2003 01:44 PM

subnet/broadcast
 
What is the ip address of your win2K machine?

D4k0t4

polonator 07-07-2003 08:33 PM

I have two machines hooked up to the router.

There is one which is just running win2k, and the ip for that is 192.168.0.159.

The other machine is running win2k and Mandrake, and the ip for that in win2k is 192.168.0.122

d4k0t4 07-08-2003 10:43 AM

Ok so then the broadcast ip address is 192.168.0.255 but I don;t think you will need that piece of information. the subnet mask should be 255.255.255.0 because this is one class C netowork.
I have never seen anyone use the 192.168.0.1 class network before. I have only seen people start at the 192.168.1.0 network. But thats beside the point. Could you post what your network config looks like now on the linux machine?

D4k0t4

polonator 07-08-2003 08:07 PM

[root@localhost /]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:E0:18:88:3D:39
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:126 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:10 Base address:0xb000

eth0:9 Link encap:Ethernet HWaddr 00:E0:18:88:3D:39
inet addr:169.254.16.167 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:10 Base address:0xb000

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:244 errors:0 dropped:0 overruns:0 frame:0
TX packets:244 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:25516 (24.9 Kb) TX bytes:25516 (24.9 Kb)

d4k0t4 07-09-2003 10:05 AM

eth0:9 Link encap:Ethernet HWaddr 00:E0:18:88:3D:39
inet addr:169.254.16.167 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:10 Base address:0xb000

The above config is what I am curious about. The ip address of 169.254.xxx.xxx is a Microsoft self assigned ip address as I stated in an above post. That ip adress should not be in there as far as I can tell. There should be a config file somewhere in the Linux installation that you can edit but I do not know what that file is. Does this machine has 2 NICs?

polonator 07-09-2003 01:45 PM

Every now and then, the win2k machine does the same thing ... the ip address becomes 169.254.xxx.xxx. It is often fixed by resetting either the router or modem.

K...so I need to change eth0:9 so that it shows the same inet addr and bcast as eth0?

What are NICs?

d4k0t4 07-09-2003 02:51 PM

NICs are Network Interface Cards. Are you runing DHCP on the Router? If not I would recommend it if nothing on your network has to have a static ip address. It will make things easier by assigning ip address the DHCP ready clients when they boot up.

polonator 07-09-2003 07:13 PM

I only have one NIC.

The router is running DHCP.

How will that help though? The linux machine cannot even ping the router? Doesn't that mean the problem lies with the network card?


All times are GMT -5. The time now is 10:19 PM.