remove route
easy one hopefully...
i wish to remove a route from my route tables. results from route... > route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface localnet * 255.255.255.0 U 0 0 0 eth0 localnet * 255.255.255.0 U 0 0 0 eth1 loopback * 255.0.0.0 U 0 0 0 lo default 10.0.0.138 0.0.0.0 UG 1 0 0 eth0 what syntax do i use to remove the second line (eth1)? I have tried various combinations and permutations of 'route del...' yes I tried 'man route', I would like a plain english answer though. |
try
route del localnet eth1 regards |
thanks, but no go
yep, tried that one. results...
> route del localnet eth1 SIOCDELRT: Invalid argument thanks for trying. any other takers? btw, distro is Slackware 9.0 |
u can do this way also
as i have here -------- root@gaurav:~# ip route show 202.XX.XX.XX dev ppp0 proto kernel scope link src 61.XX.XX.XX 192.168.0.0/24 dev eth0 scope link 127.0.0.0/8 dev lo scope link default via 202.XX.XX.XX dev ppp0 root@gaurav:~# ip route del 192.168.0.0/24 dev eth0 root@gaurav:~# ip route show 202.XX.XX.XX dev ppp0 proto kernel scope link src 61.XX.XX.XX 127.0.0.0/8 dev lo scope link default via 202.XX.XX.XX dev ppp0 --------- regards |
thanks
thanks dude, that did the trick
|
thanks to you also!!
i also got to know the right menthod regards |
All times are GMT -5. The time now is 02:04 PM. |