On Mon, Mar 17, 2003 at 01:03:21PM +0530, Devdas Bhagat wrote: >tatus: RO >Content-Length: 1540 >Lines: 40 > >On 17/03/03 12:27 +0530, Rajesh wrote: >> Hello, >> >> [EMAIL PROTECTED] /root]# route >> Kernel IP routing table >> Destination Gateway Genmask Flags Metric Ref Use >> Iface >> LANPJM-72-10.go * 255.255.255.255 UH 0 0 0 ppp0 >> 192.168.20.0 * 255.255.255.0 U 0 0 0 eth0 >> 10.71.0.0 * 255.255.255.0 U 0 0 0 eth0 >The netmask is /24 for this route. >route add -net 10.71.0.0 netmask 255.255.0.0 dev eth0 >What you have is: >route add -net 10.71.0.0 netmask 255.255.255.0 dev eth0 >which only covers 10.71.0.0-255
On another linux machine which is our application server the route is as follows : [EMAIL PROTECTED] rc.d]# route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.20.0 * 255.255.255.0 U 0 0 0 eth0 10.71.0.0 * 255.255.255.0 U 0 0 0 eth0 127.0.0.0 * 255.0.0.0 U 0 0 0 lo default 192.168.20.244 0.0.0.0 UG 0 0 0 eth0 [EMAIL PROTECTED] rc.d]# Since the default gateway is put of the cisco router this things works perfectly. [EMAIL PROTECTED] rc.d]# traceroute 10.71.12.1 traceroute to 10.71.12.1 (10.71.12.1), 30 hops max, 38 byte packets 1 192.168.20.244 (192.168.20.244) 4.154 ms 2.914 ms 1.493 ms 2 172.16.10.1 (172.16.10.1) 618.739 ms 619.047 ms 619.229 ms It works. The route goes through the cisco router to the other router 172.16.10.1 Route for the email server has default gateway of the isp : [EMAIL PROTECTED] /root]# route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface LANPJM-72-10.go * 255.255.255.255 UH 0 0 0 ppp0 192.168.20.0 * 255.255.255.0 U 0 0 0 eth0 10.71.0.0 * 255.255.255.0 U 0 0 0 eth0 127.0.0.0 * 255.0.0.0 U 0 0 0 lo default LANPJM-72-10.go 0.0.0.0 UG 0 0 0 ppp0 Hence traceroute goes through the isp gateway : [EMAIL PROTECTED] /root]# traceroute 10.71.12.1 traceroute to 10.71.12.1 (10.71.12.1), 30 hops max, 38 byte packets 1 LANPJM-72-10.goatelecom.com (61.1.72.10) 33.896 ms 29.268 ms 30.055 ms 2 LANPJM-72-1.goatelecom.com (61.1.72.1) 39.795 ms 39.765 ms 39.901 ms 3 Wansvd-77-10.goatelecom.com (61.1.77.10) 109.916 ms 39.779 ms 69.896 ms Peace -- Rajesh : ####[ GNU/Linux One Stanza Tip (LOST) ]####################### Sub : Monitoring su attempts LOST #115 In a multiuser system you may like to monitor all su attempts. Edit /etc/login.defs and edit SULOG_FILE as follows: SULOG_FILE /var/log/sulog ... (name of file to hold info) ####<[EMAIL PROTECTED]>#################################### : ------------------------------------------------------- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en _______________________________________________ linux-india-help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/linux-india-help
