06-10-2006 10:43 PM - edited 03-03-2019 12:57 PM
Hi,
I want to know how to hide my network's subnetmask.Is there any commands for that in cisco routers or switch?
Thanks,
Hardik
06-10-2006 10:52 PM
What do you mean by hiding it? Do you want it not to be displayed when someone is issuing various router commands?
06-10-2006 11:04 PM
hi Atif,
i want to hide subnetmask so that any sniffer or outsider cant able to veiw subnetmask.
Thanks..
06-10-2006 11:59 PM
Subnet mask is not part of normal packet exchange so you will not see that in sniffer captures anyway unless you have a classless routing protocol running that advertise a mask with routing updates or you have DHCP replies from a DHCP server. Additionally, users on your LAN have to know the subnet mask as they are normally served by the router as a gateway for that LAN.
What is your intention? Maybe if you explain what you want to achieve we can suggest an alternate way of doing it.
06-13-2006 01:48 PM
hi Atif,
my intention is that outsider can not learn the subnet mask of my network running IP through network scanner or any otherway.
06-14-2006 01:43 AM
Hi there,
As Atif has quite rightly said, the network mask is not sent out in the packet. Have a look at the attachment - it's a screen shot of a sniffer with a ping from my pc to cisco.com.
There is no need for network masks in the packet header as that's not how ip works. What will happen is:
You pc wants to know where an IP address lives. It will look at it's own routing table ("route print" in dos). If the address is not in it's own subnet, then it will send it to the default gateway (which is why 2 default gateways on a server causes trouble). It will then send a packet to the default gateway to send it to the destination. This is usually a router and should have a route to it in it's routing table.
Only the ip adderss is ever required.
Please rate if it helps!
LH
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide