Configuring Network Routes on Linux

Problem: Newly installed Linux is not able to access the Internet.

Solution: Route not configured to the gateway.

At a Terminal window, enter:

route add default netmask 0.0.0.0 gw 200.65.1.7 eth1

Configuration for PC in Software Services Area

The network port used by Linux is the one on the main board, not the Ethernet card that is used by Windows.

[root@enterprise ~]# route
Kernel IP routing table
Destination  Gateway         Genmask         Flags Metric Ref Use Iface
200.65.1.0   *               255.255.255.0   U     0      0     0 eth1
169.254.0.0  *               255.255.0.0     U     0      0     0 eth1
default      200.65.1.7      0.0.0.0         UG    0      0     0 eth1

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>


This site uses Akismet to reduce spam. Learn how your comment data is processed.