Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

how to hide subnetmask

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
Silver

Re: how to hide subnetmask

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

New Member

Re: how to hide subnetmask

hi Atif,

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

Thanks..

Silver

Re: how to hide subnetmask

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.

New Member

Re: how to hide subnetmask

hi Atif,

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

Re: how to hide subnetmask

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

527
Views
5
Helpful
5
Replies
CreatePlease to create content