[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RE: router



>>-----Original Message-----
>>From: Assaf Spanier [mailto:spanier cs huji ac il]
>>Sent: Wednesday, July 25, 2001 10:13 AM
>>To: redhat-install-list redhat com; Alex Puye
>>Subject: Re: router
>>
>>
>>hi alex,
>>
>>Thanks again,
>>The router is not on the same network (subnet).
>>so what I need to do ?? do I need to add it manually all the time ?

That wouldn't work. At least one of the IP addresses on the Linux box has to
be on the same network (subnet) as the router. Even if you have to setup IP
aliasing to make this happen. That's just how IP was designed. Network nodes
have to be "local" to the router to send packets to it. This means that they
have to be on the same subnet.

>>
>>I'm asking again do you know which scrip actually adding the router ?

If you take a look at /etc/rc.d/init.d/network, you will see that it runs
the script /etc/sysconfig/network. This sets the value of GATEWAY and
GATEWAYDEV. The GATEWAY variable sets the IP address of the next hop and
GATEWAYDEV sets the interface to send it out of.

Hope this helps.
>>
>>I didn't try to ping the router but I will!
>>
>>A.Spanier
>>
>>
>>> The reason why I ask that question is because if the IP address
>>and default
>>> gateway are not in the same network (subnet), the default
>>gateway wouldn't
>>> come up, which makes sense.
>>>
>>> So, double-check your numbers very carefully.
>>>
>>> Can you ping the interface on the router from the Linux box?
>>>
>>
>>





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]