Jump to content

Please help a newbie with network configuration


Guest rev_b
 Share

Recommended Posts

Guest rev_b

Hi there.

I´m learning how to use Linux and I find Mandriva the best distribution by far. Extremely easy to install and configure, except for my network.

 

I have a cable modem, wich is connected to a belkin wireless/10/100 router. I have two PC connected to the router and one laptop that access the network via Wi-Fi.

 

Router is 192.168.2.1, computers are 192.168.2.2, 2.3 and 2.4

 

I have the network manually configured with windows XP and it works just fine. I just put the router address on gateway and DNS server, with network mask 255.255.255.0, and give each computer its fixed IP adress.

 

With mandriva, the ethernet card is properly detected (it´s a ALI something on a Asrock dual-sata2), it´s working (I think) because I can ping it, but for a start, it can´t even see the router! The network obviously doesn´t work, neither the internet access. The ethernet icon does appear as "connected" on eth1 (it recognises eth0 as the firewire on the Audigy sound card)

 

I did enable DHCP in the router, reconfigured the network in mandriva, but it still doesn´t work. The router simply isn´t there.

 

Please help.

Edited by rev_b
Link to comment
Share on other sites

Guest rev_b

Thank you for answering. Here are the results:

 

[root@127 cm]# ifconfig

eth1 Link encap:Ethernet HWaddr 00:13:8F:4C:42:AF

inet addr:192.168.2.2 Bcast:192.168.2.255 Mask:255.255.255.0

inet6 addr: fe80::213:8fff:fe4c:42af/64 Scope:Link

UP BROADCAST MULTICAST MTU:1500 Metric:1

RX packets:28 errors:0 dropped:0 overruns:0 frame:0

TX packets:0 errors:6 dropped:0 overruns:0 carrier:6

collisions:0 txqueuelen:1000

RX bytes:4789 (4.6 KiB) TX bytes:0 (0.0 B )

Interrupt:58 Base address:0xe800

 

lo Link encap:Local Loopback

inet addr:127.0.0.1 Mask:255.0.0.0

inet6 addr: ::1/128 Scope:Host

UP LOOPBACK RUNNING MTU:16436 Metric:1

RX packets:1306 errors:0 dropped:0 overruns:0 frame:0

TX packets:1306 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:0

RX bytes:159265 (155.5 KiB) TX bytes:159265 (155.5 KiB)

 

[root@127 cm]# cat /etc/resolv.conf

search 0.0.1

# search 168.2.1 168.2.100 168.2.1 168.2.100 168.2.1 cm.com

nameserver 192.168.2.1

# nameserver 192.168.2.2

 

# ppp temp entry

Edited by rev_b
Link to comment
Share on other sites

I have known some problems to occur because of apic. Go into System/Configuration/Configure Your Computer/Boot/Boot Loader. There is an option you can enable to disable apic. Select this, click OK to all screens and reboot. Does that help you get your network running?

 

Also, ipv6 is enabled on your system, you can disable by adding the following to /etc/modprobe.conf:

 

alias net-pf-10 off

 

and see if that helps even more.

Link to comment
Share on other sites

I would suggest commented out the first line in your resolv.conf:

#search 0.0.1

you can do this with your favorite text editor, i.e.:

# kedit /etc/resolve.conf

(note: the # is not part of the command, just there to indicate that you must be root)

 

I would also suggest that instead of using your router as the nameserver, you set it up with your ISPs nameservers. You should be able to view these via the routers web front-end.

 

another possibility is that firewire taking eth0 is causing an issue. Please post the output of the following command:

# cat /etc/modprobe.conf

Link to comment
Share on other sites

Guest rev_b
I would suggest commented out the first line in your resolv.conf:

#search 0.0.1

you can do this with your favorite text editor, i.e.:

# kedit /etc/resolve.conf

(note: the # is not part of the command, just there to indicate that you must be root)

 

I would also suggest that instead of using your router as the nameserver, you set it up with your ISPs nameservers. You should be able to view these via the routers web front-end.

 

I reinstalled with mandriva 2006 i586 (that was the x-64 version) and the situation is pretty much the same. Here´s what I got now:

 

[root@localhost cm]# ifconfig

eth0 Link encap:Ethernet HWaddr 00:13:8F:4C:42:AF

inet addr:192.168.2.2 Bcast:192.168.2.255 Mask:255.255.255.0

inet6 addr: fe80::213:8fff:fe4c:42af/64 Scope:Link

UP BROADCAST MULTICAST MTU:1500 Metric:1

RX packets:11 errors:0 dropped:0 overruns:0 frame:0

TX packets:0 errors:1 dropped:0 overruns:0 carrier:1

collisions:0 txqueuelen:1000

RX bytes:1379 (1.3 KiB) TX bytes:0 (0.0 B)

Interrupt:17 Base address:0xe800

 

eth1 Link encap:UNSPEC HWaddr 00-02-3C-00-20-00-36-58-00-00-00-00-00-00-00-00

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

RX packets:0 errors:0 dropped:0 overruns:0 frame:0

TX packets:0 errors:17 dropped:17 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

 

lo Link encap:Local Loopback

inet addr:127.0.0.1 Mask:255.0.0.0

inet6 addr: ::1/128 Scope:Host

UP LOOPBACK RUNNING MTU:16436 Metric:1

RX packets:222 errors:0 dropped:0 overruns:0 frame:0

TX packets:222 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:0

RX bytes:18324 (17.8 KiB) TX bytes:18324 (17.8 KiB)

 

[root@localhost cm]# cat /etc/resolv.conf

nameserver 192.168.2.1

 

# ppp temp entry

 

As you can see, resolve.conf seems well now.

 

I can´t even access the router web-front end from linux! If I type 192.168.2.1 (the router´s internal IP adress) on the browser it doesn´t find it and if I ping the router it says "host unreachable"

 

About firewire, as you can see, the ethernet is eth0 now. Let me boot mandriva and i´ll try that command

 

Please help...

Link to comment
Share on other sites

Guest rev_b

Here it is:

 

 

[root@localhost cm]# cat /etc/modprobe.conf

alias eth0 tulip

remove snd-emu10k1 /sbin/modprobe -r snd-pcm-oss; /sbin/modprobe --first-time -r --ignore-remove snd-emu10k1

install snd-emu10k1 /sbin/modprobe --first-time --ignore-install snd-emu10k1 && { /sbin/modprobe snd-pcm-oss; /bin/true; }

alias sound-slot-0 snd-emu10k1

install usb-interface /sbin/modprobe ohci-hcd; /sbin/modprobe ehci-hcd; /bin/true

alias eth1 eth1394

alias ieee1394-controller ohci1394

 

I think the firewire controller may be the problem. Also I noted when I configure the network, besides eth0 and eth0, there is a (unknown) sit0 - is this a problem?

Link to comment
Share on other sites

sit0 is the ipv6 device, which can only be disabled adding the "alias net-pf-10 off" to /etc/modprobe.conf as previously mentioned.

 

I normally disable this after an install because of some problems experienced with network connectivity, and the fact that you won't be using any ipv6 devices anyhow.

Link to comment
Share on other sites

First things first, make sure the network card and cable both work. Make sure the router isn't blocking the MAC address of your card.

 

With the firewall on your machine turned off, try accessing the router - if that doesn't work then try runnning the dhcp client manually from the command line to ensure it's picking up an address.

Link to comment
Share on other sites

Guest rev_b
First things first, make sure the network card and cable both work. Make sure the router isn't blocking the MAC address of your card.

 

With the firewall on your machine turned off, try accessing the router - if that doesn't work then try runnning the dhcp client manually from the command line to ensure it's picking up an address.

 

As I said, the network works fine with Windows XP, even with the router firewall turned on. I did turn it off, with no results.

 

I can´t acess the router, neither with the browser or pinging it from the command line.

 

How do I run manually the DHCP client?

Link to comment
Share on other sites

Guest rev_b

It really isn´t working.

 

Here´s some screenshots from the router front page, acessed by the laptop while the desktop pc is running Mandriva:

 

router1.jpg

router2.jpg

router3.jpg

 

As you can see, the router DHCP gives an IP to the Mandriva machine. But, from mandriva, I just can´t access the router, ping 192.168.2.1 just gives me "host unreachable".

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...