LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 08-29-2005, 11:34 AM   #1
aajmee
LQ Newbie
 
Registered: Aug 2005
Posts: 5

Rep: Reputation: 0
Gateway


Hi,
i can't access internet.
internet facility is provided by the building where i live. its a big building. to give access to more user and secure it they have made subnets. i have 5 machines in total. Internet provider has given me one subnet. settings are as follows.

IP Range. 10.54.0.1 - 10.54.0.55
subnet address: 255.254.0.0
Default gate way : 10.0.0.1
Primary DNS : 212.54.162.1
Secondary DNS : 212.54.162.2


now in my case.

in one machine i have installed windows 2000 advance server. and given it an ip address that is 10.54.0.1. this is my server.
on other two machines i have installed windows 2000 professional. and there ip adresses are 10.54.0.3 and 10.54.0.4 respectively. these two machines are clients.
i have another two PCs. on one machine i have installed Redhat Linux 9 as server, and on second machine i have installed Redhat Linux 9 as workstation.Ip adresses are 10.54.0.2 and 10.54.0.5 respectively

i have used star topplogy. i have one switch and all pcs are connected with each other through switch. that's all what i have. settings given to me internet providers. and gateway address is a router address.

internet is working fine on windows machines.but not on linux machines.

on linux machines.
i can ping all ip addresses with in my subnet.
i can ping primary and secondary dns
but i can not ping default gateway. it says network unreachable
when i use route -n command. it doesnot show default gateway. only shows * in that list.
if i manully try to add default gateway. again it says network unreachable.
in configuration files it shows default gateway.
 
Old 08-29-2005, 12:05 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Try:
Code:
route add -net 10.0.0.0 netmask 255.254.0.0 dev eth0
route add default gw 10.0.0.1
This assumes eth0 is the connected interface.
 
Old 08-29-2005, 12:41 PM   #3
aajmee
LQ Newbie
 
Registered: Aug 2005
Posts: 5

Original Poster
Rep: Reputation: 0
thanks
it has worked. but when i restart computer these settings from routing table disappear. everytime i have to do this.

other thing is iam not clear about this command

route add -net 10.0.0.0 netmask 255.254.0.0 dev eth0

i understand the syntax of command, but what is 10.0.0.0. as my ip is 10.54.0.1.

also
what settings i have to do so that i dont have to issue this command again and again.
 
Old 08-29-2005, 08:32 PM   #4
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Yes, but your network is 10.0.0.1. Or rather, the network of your router. Interestingly enough, your gateway is not on the same network as your computer. (Network in the IP sense, not the ethernet sense).
 
Old 08-30-2005, 07:42 AM   #5
aajmee
LQ Newbie
 
Registered: Aug 2005
Posts: 5

Original Poster
Rep: Reputation: 0
thanks
how to make setting permanant. as i restart computer, all settings vanishes.
 
  


Reply



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
lm10.0 gateway is set but when I reboot I have to set the gateway rharvey32 Mandriva 8 02-13-2006 01:35 PM
What is a gateway? can I have more than one gateway on a vlan? abefroman Linux - Networking 3 09-06-2005 10:43 AM
Need for a gateway? ThePlague Linux - Networking 2 12-27-2004 06:59 PM
Odd problem: Gateway unreachable after certain amount of time (Win XP Gateway) SocialEngineer Linux - Networking 2 08-13-2004 12:54 AM
What is this ??? Gateway or NOT ??? Lilltjalle Mandriva 3 11-30-2003 11:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:47 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration