Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

How do i enable the routing?

Posted on 2004-04-22
2
369 Views
Last Modified: 2010-03-18
I'm new learner on the linux. Now i want to make the web server  can connect to the internet. I  have 2 ethernet card eth0 and eth1.
eth0: 202.157.213.131
eth1: 192.168.2.201
ipAddress: 202.157.213.131
gateway address: 202.157.204.77

after ifconfig  eth0: 202.157.213.131  mask: 255.255.255.248
broadcast: 202.157.213.135

after ifconfig  eth1: 192.168.2.201 mask:255.255.255.0
broadcast: 192.168.2.255

Then, i go to main menu-->system setting --> network. I set the ipAddress, network address and subentmask address but still cannot connect to the internet? what command should i type or i have to set the route? What is the solution?
Thank you.
0
Comment
Question by:joanpe
2 Comments
 
LVL 1

Accepted Solution

by:
greg14unix earned 50 total points
ID: 10897197
Hello,

To setup a default router so your system can get out, you need to make edit the /etc/sysconfig/network file and specify a default gateway using the IP of the router that will route your traffic out.

GATEWAY=X.X.X.X


To have your system act as a router between 2 different networks, you  will want to check out the routing howto here http://lartc.org/howto/
0
 
LVL 4

Expert Comment

by:bobgunzel
ID: 10897220
ifconfig  eth0: 202.157.213.131  mask: 255.255.255.248 sets up a network block ranging from 202.157.213.128 to 202.157.213.135.
(according to WHOIS Atlas One has a block of 16 IP addresses ranging from 202.157.213.128 to 202.157.213.143 so the mask should be  255.255.255.240, unless you divided it into two blocks)
The gateway address 202.157.204.77 falls outside this block and is therefore not accessable. In fact it belongs to another network block from Atlas One.
A gateway should be on the same network block as the clients are. So there must be a gateway with an address within your block connecting you to the internet directly or there must be a router connecting you to the other network block.

Bob Gunzel
0

Featured Post

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question