我有一个问题,以下是问题内容:
Suppose a router has the following CIDR entries in its routing table:
Net/Prefix Next Hop 128.96.39.0/24 Interface 0 128.96.39.128/25 Interface 1 128.96.40.0/25 Router 2 192.4.153.0/26 Router 3 default Router 4
For each of the following IP addresses, what does the router do if a packet with that address arrives?
- 128.96.39.10;
- 128.96.40.12;
- 128.96.39.151;
- 192.4.153.17;
- 192.4.153.90.
我知道/24
表示网络地址分配了24位,也就是8位被分配给主机。如果我有一个十进制表示的IP地址,如何获取子网掩码,然后确定该IP地址所在的子网呢?