NETWORK PRESENCE ABOUT SERVICES PRODUCTS TRAINING CONTACT US SEARCH SUPPORT
 


Search
display results
words begin  exact words  any words part 

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

Re: [FW1] how to see the netmask info in Solaris routing table?




"Sim, CT (Chee Tong)" wrote:

> Hi.. I have a question about how to view the netmask info in Sun routing
> table as shown below?

Try : netstat -nrv and then the netmask magicly appears ;-) (under solaris/sunos)


>  As you can see, there is no netmask info shown.  Let
> say 192.173.168.0 network, how do I know the netmask is 255.255.255.0 or
> 255.255.252.0 ?

Yep ! you'll have a larger range of IP address.


> As different netmask represent different hosts range ?

Yes, for example, you can divide a net into two different :

net                     mask                         gateway
192.126.1.0        255.255.255.192         first_gw
192.168.1.64      255.255.255.192         second_gw

magic, isn't it ?


>  Linux one better.

Oh god, and It doesn't cost a penny, what a shame 8-)


>  What is the different between flags UG and flag U

The 'G' means gateway. This means the host is a gateway to reach
some (sub)nets.

Best regards.
David




> ==========================SUN============================================
> MDSfw# netstat -rn
>
> Routing Table:
>   Destination           Gateway           Flags  Ref   Use   Interface
> -------------------- -------------------- ----- ----- ------ ---------
> 89.1.1.0             192.168.0.3           UGH      0      0
> 89.1.1.0             192.168.0.2           UGH      0      0
> 192.1.1.0            192.168.0.3           UG       0      8
> 192.1.1.0            192.168.0.2           UG       0      0
> 192.173.168.0        192.168.0.20          UG       0      0
> 192.168.0.0          192.168.0.100         U        2  16422  hme1
> 205.183.246.0        192.168.0.11          UG       0      0
> 205.183.246.0        192.168.0.10          UG       0      0
>
> =========================LINUX==============================================
> [root@lemon 55L71]# netstat -rn
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags   MSS Window  irtt
> Iface
> 50.100.184.0    0.0.0.0         255.255.252.0   U         0 0          0
> eth0
> 127.0.0.0       0.0.0.0         255.0.0.0       U         0 0          0 lo
> 0.0.0.0         50.100.184.1    0.0.0.0         UG        0 0          0
> eth0
>
> ==================================================================
> De informatie opgenomen in dit bericht kan vertrouwelijk zijn en
> is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht
> onterecht ontvangt wordt u verzocht de inhoud niet te gebruiken en
> de afzender direct te informeren door het bericht te retourneren.
> ==================================================================
> The information contained in this message may be confidential
> and is intended to be exclusively for the addressee. Should you
> receive this message unintentionally, please do not use the contents
> herein and notify the sender immediately by return e-mail.
>
> ==================================================================
>
> ================================================================================
>      To unsubscribe from this mailing list, please see the instructions at
>                http://www.checkpoint.com/services/mailing.html
> ================================================================================

--
David LEFEVRE
CARDIF - Architecture et Sécurité Opérationnelle
[email protected] - Tél : 01 41 42 76 63


**********************************************************************
L'intégrité de ce message n'étant pas assurée sur Internet,
CARDIF ne peut être tenu responsable de son contenu.
Si vous n'êtes pas destinataire de ce message confidentiel,
Merci de le détruire et  d'avertir immédiatement l'expediteur.

The integrity of this message cannot be guaranteed on the
Internet. CARDIF can not therefore be considered responsible 
for the contents. 
If you are not the intended recipient of this confidential message,
then please delete it and notify immediately the sender.

**********************************************************************


================================================================================
     To unsubscribe from this mailing list, please see the instructions at
               http://www.checkpoint.com/services/mailing.html
================================================================================



 
----------------------------------

ABOUT SERVICES PRODUCTS TRAINING CONTACT US SEARCH SUPPORT SITE MAP LEGAL
   All contents © 2004 Network Presence, LLC. All rights reserved.