LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   command not found -- route -n (https://www.linuxquestions.org/questions/linux-networking-3/command-not-found-route-n-130735/)

dhammika 01-01-2004 11:39 PM

command not found -- route -n
 
Hi-------



See, I am using RH9 to practice my network lessons. But at su terminal reply

bash : route: command not found

Pls... Some body help me...



:newbie:

darthtux 01-02-2004 12:44 AM

Try
su -

The - puts you in root's environment which includes its path

or you could
/sbin/route

DavidPhillips 01-02-2004 12:49 AM

the command should work as normal user as well
Code:

[david@zeus david]$ /sbin/route -n
Kernel IP routing table
Destination    Gateway        Genmask        Flags Metric Ref    Use Iface
10.1.0.1        0.0.0.0        255.255.255.255 UH    0      0        0 tun0
192.168.225.0  0.0.0.0        255.255.255.0  U    0      0        0 vmnet8
192.168.1.0    0.0.0.0        255.255.255.0  U    0      0        0 wlan0
192.168.66.0    0.0.0.0        255.255.255.0  U    0      0        0 vmnet1
169.254.0.0    0.0.0.0        255.255.0.0    U    0      0        0 wlan0
127.0.0.0      0.0.0.0        255.0.0.0      U    0      0        0 lo
0.0.0.0        10.1.0.1        0.0.0.0        UG    0      0        0 tun0


dhammika 01-02-2004 01:56 AM

Thanks............................................. Its works


All times are GMT -5. The time now is 02:28 AM.