作者Arim (Arim5566)
看板Network
标题[问答] routing table
时间Sun Nov 25 18:20:37 2012
各位版友好
最近在准备网路相关的考试
看到一题routing的问题,不是很确定自己的观念正不正确@@
以下是题目,(a)跟(b)是连续的小题:
(a) If the mask of a network interface, nif1, is 255.255.255.255, please
describe how the routing module processes IP datagrams.
我的理解是router收到该ip datagrams之後会先利用255.255.255.255跟该ip做and找到
net id,接着比对routing table有没有该net id,有的话就往对应的gateway送出去
只是mask如果是255.255.255.255的话不就表示该网段没有host吗?(这样子有意义吗?)
(b)If we add one more network interface, nif2, with the mask 255.255.255.0, how
is a IP datagram, which comes into this router, processed.
这个小题的答案我觉得跟a小题是一样的,也是一样的步骤
解答是写这样的...
(a)
If the host receive the IP datagram from nif1 with it’s IP configured, it’
ll be pass to kernel IP layer,but if the host is going to send IP datagram the routing module won’t have
any information from that interface.
(b)
Router will accept any IP address from same network id, and see if it’s dest
ip is in the different network, if it is, forward it.
老实讲我看不太懂解答再写什麽@@
不知道我的观念正不正确
有请版友指教了
谢谢
--
~宅男的四个徵兆~
∠□ ○ ! * \○/ ★ (○ ?
╦╦└□ " ○□═ □ □>
║║√√ ╦══╦ ∥ |\
一回家就上PTT 每天想正妹 以当好人为乐 忘记正妹亏欠自己
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.117.169.131
1F:→ deadwood:这时候主机会根据路由表,把封包交给自己的网路层处理 11/28 00:14
2F:→ deadwood:如果是要把封包送到该介面以外的IP,因为没有任何主机是 11/28 00:14
3F:→ deadwood:同一个网段的,封包就会被丢弃 11/28 00:15
4F:→ deadwood:抱歉推错了,上面那三行是要推在下面接上去的XD 11/28 00:15