for the example:
the router has ip 192.168.2.1
your subnet is 192.168.2.0
route add -net 192.168.2.0 eth0
route add default gw 192.168.2.1
Main Topics
Browse All TopicsI've got a Red Hat 5.2 server running the standard kernel. I also have a DNS on it. I want it to route all IP-requestst that are not for our network segment to go to a ISDN-router (a 3COM OfficeConnect 511) which would call our ISP and make an internet connection. I've got also a default route to a gateway (the router) configured.
I've tried anything I could figure out and read about all the HOWTO's on the networking (I think). I'm desperate.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Whenever I configure a W95 with as DNS the Linux server and Gateway the router it whatever I do, it does not find the way out. Now, I know it is supposed to find a DNS for translation (I don't know where to put the ISP's DNS's in the DNS) but when I use the IP-address directly it doesn't work either.
Route -n:
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.221.0 0.0.0.0 255.255.255.0 U 1500 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 3584 0 0 lo
0.0.0.0 192.168.221.42 0.0.0.0 UG 1500 0 0 eth0
The subnet is 192.168.221.0 .
The router has IP 192.168.221.42 (not very much according to standards) Does it have to be 1?
Business Accounts
Answer for Membership
by: alexbikPosted on 1998-11-26 at 09:13:43ID: 1587694
What exactly is your problem? Is your default route not working?
Could you show us the output of route -n ?
Please let us know what the IP address is your router has on your network.
Alex.