cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1393
Views
5
Helpful
5
Replies

how to hide subnetmask

hardiklodhia
Level 1
Level 1

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

5 Replies 5

atif.awan
Level 3
Level 3

What do you mean by hiding it? Do you want it not to be displayed when someone is issuing various router commands?

hi Atif,

i want to hide subnetmask so that any sniffer or outsider cant able to veiw subnetmask.

Thanks..

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.

hi Atif,

my intention is that outsider can not learn the subnet mask of my network running IP through network scanner or any otherway.

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

Review Cisco Networking for a $25 gift card