LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 03-24-2005, 03:36 AM   #1
mertos
LQ Newbie
 
Registered: Mar 2005
Posts: 4

Rep: Reputation: 0
Question SiS900 Ethernet Problem "Network is unreachable"


Hi!
I use Mandrake 10.1 but can't connect to internet! I'm in a university LAN. I hava static IP.
I configure from drakconnect but can't connect.
When I use
ifconfig eth0 106.75.xx.xx netmask 255.255.254.0 up it's OK
But when I enter
route add default gw 160.75.97.254
I get the warning
SIOCADDRT: Network is unreachable
Yesterday somehow I did connect when I dealing in Konsole but as you know I lost connection after restart and can't connect again.
Please help mee!!....

I can ping my IP but can't ping gateway. Some people in my LAN are able to connect by doing simple drakconnect settings. Are there any problem with my NIC card? But I can connect for a while, and also I have the same problem with mandrake 9.2. I could connect only once, but mostly disconnected.

I can see sis900 when I "dmesg":
sis900.c: v1.08.07 11/02/2003
eth0: Realtek RTL8201 PHY transceiver found at address 1.
eth0: Using transceiver found at address 1 as default
eth0: SiS 900 PCI Fast Ethernet at 0xe000, IRQ 19, 00:0f:ea:22:98:6a.
eth0: Media Link On 100mbps full-duplex
eth0: no IPv6 routers present

madprobe sis900 is also OK!

[root@mertpaker mert]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0F:EA:22:98:6A
inet addr:160.75.95.11 Bcast:160.75.95.255 Mask:255.255.254.0
inet6 addr: fe80::20f:eaff:fe22:986a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:25801 errors:0 dropped:0 overruns:0 frame:0
TX packets:71 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2387277 (2.2 Mb) TX bytes:9802 (9.5 Kb)
Interrupt:19 Base address:0xe000

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

[root@mertpaker mert]# ifconfig eth0 160.75.95.11 netmask 255.255.254.0 up
[root@mertpaker mert]# route add default gw 160.75.97.254
SIOCADDRT: Network is unreachable

[root@mertpaker mert]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
160.75.94.0 * 255.255.254.0 U 0 0 0 eth0

Last edited by mertos; 03-24-2005 at 04:27 AM.
 
Old 03-25-2005, 12:14 PM   #2
winsnomore
Member
 
Registered: May 2004
Location: USA
Distribution: #1 PCLinuxOS -- for laughs -> Ubuntu, Suse, Mepis
Posts: 315

Rep: Reputation: 31
Please double check your gateway and netmask .. seems to be incosisntent
ifconfig eth0 106.75.xx.xx netmask 255.255.254.0 up it's OK
route add default gw 160.75.97.254

network is unreachable means no path could be found to it
 
Old 03-25-2005, 02:38 PM   #3
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
Yes, a gateway of 16.75.97.254 doesn't look right considering you are trying to get an IP of 160.75.95.11 w/ a net mask of 255.255.254.0

The gateway's IP should probably be somewhere between 160.75.94.0 and 160.75.95.255

So check and make sure that is correct or make sure you are trying to pull the correct static IP.

When you do an ifconfig and see you have a IP you don't have to do this:
[root@mertpaker mert]# ifconfig eth0 160.75.95.11 netmask 255.255.254.0 up

eth0 is already up.

Maybe the gateway is supposed to be 160.75.94.254.... THe 7 is next to the 4 on the number pad........
 
Old 03-26-2005, 08:10 AM   #4
mertos
LQ Newbie
 
Registered: Mar 2005
Posts: 4

Original Poster
Rep: Reputation: 0
Sorry, it's 160. I wrote wrongly in here, I write correct in console. All addresses are correct there's no problem with Windows.

And there are people who connect to internet in the same Lan with mandrake 10.1. I think I have problem with my nic card. But it makes no sense. I can see it in linuz and receive data. And also i connect to internet two times. But can't obtain a stable connection.

Last edited by mertos; 03-26-2005 at 08:14 AM.
 
Old 03-27-2005, 08:16 AM   #5
mysterio
Member
 
Registered: Sep 2003
Location: Springfield Ma.
Distribution: Mandrake 9.2,Knoppix 3.7,Slackware 10.0, FreeBSD. 5.3, OpenBSD 3.6, NetBSD 2.0, Debian
Posts: 275

Rep: Reputation: 30
Sorry, it's 160. I wrote wrongly in here, I write correct in console. All addresses are correct there's no problem with Windows.
If windows is on the same comp that your having troubles with, look at the adresses that windows is using. At dos prompt type ipconfig -a
 
Old 04-04-2005, 08:42 AM   #6
mertos
LQ Newbie
 
Registered: Mar 2005
Posts: 4

Original Poster
Rep: Reputation: 0
It's all OK in windows.
 
Old 04-04-2005, 08:57 AM   #7
Darin
Senior Member
 
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024

Rep: Reputation: 45
160.75.95.11 255.255.254.0
...means these IP addresses are in your local subnet:
160.75.94.1-160.75.95.254
...your default gateway has to be in that range, this is why you got the error message, "SIOCADDRT: Network is unreachable" when you tried to add that gateway.

So either your IP address is incorrect, or your default gateway is.

Like mysterio suggested, if it's working in Windows then use ipconfig /all (he got the syntax wrong, -a is for linux ifconfig, no big) from a command prompt and compare that to what you set in Mandrake.
 
Old 04-04-2005, 09:01 AM   #8
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
Could you copy and paste the "ipconfig /all" so we can see what you have as well?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
"Network is unreachable" in Mandrake 10.1 Powerpack RAMMS+EIN Linux - Networking 2 05-10-2005 10:00 AM
Getting message "connect: Network is unreachable" trying to access the Internet denver1980 Linux - Networking 5 12-29-2004 05:22 PM
MA-311 on eth0 inaccessible via Linux, "Network Unreachable" error, no localhost ping LGMike Linux - Networking 14 09-21-2003 11:11 PM
"Destination Host Unreachable" on local network radupastia Linux - Networking 0 08-13-2003 09:46 AM
tftp - "Destination Unreachable" due to "Port Unreachable" renjithgopal Linux - Security 5 07-24-2003 10:36 AM


All times are GMT -5. The time now is 06:56 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration