LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   add route doesn't work (https://www.linuxquestions.org/questions/linux-newbie-8/add-route-doesnt-work-338288/)

tkt 06-29-2005 03:48 AM

add route doesn't work
 
Hi,

I have a 3Com Layer 2 switch. I segmented the switch into two VLAN. I would like to route from segment one to segment two. In segment one, I have a PDC with two NIC, NIC 1 with IP of 172.16.0.1/255.255.254.0 plugged into segment one and NIC 2 with IP of 192.168.0.1/255.255.255.0 plugged into segment two. In segment two, I have a BDC with one NIC with IP of 192.168.0.1/255.255.255.0. I can ping BDC from PDC, but BDC couldn't ping PDC. The routes that I added are as below:

at PDC,
route add 192.168.0.0 mask 255.255.255.0 gateway 192.168.0.2
route add 172.16.0.0 mask 255.255.255.0 gateway 192.168.0.2

at BDC,
route add 172.16.0.0 mask 255.255.255.0 gateway 192.168.0.2

Anything wrong with the route?

Thanks.

rkettle 06-29-2005 05:56 PM

pdc bdc???? you on the right forum?

you mean

route add -net 192.168.0.1 default gw 192.168.0.2 ?

Regards
Richard


All times are GMT -5. The time now is 09:59 PM.