作者zaknafein (zak)
看板Network
标题Re: [问答] cisco show ip route该怎麽看?
时间Tue Mar 22 15:43:40 2011
切开来看比较清楚
: 看了上面的设定发现,我怎麽看不太懂= =
:
: 172.30.0.0/30 is subnetted, 1 subnets
: C 172.30.62.76 is directly connected, Serial0/0/0
^因为s0/0/0 ip 是 172.30.62.78 /30
: 173.30.0.0/30 is subnetted, 1 subnets
: C 173.30.32.72 is directly connected, FastEthernet0/1
^^因为你Fa0/1 ip 是 173.30.32.74 /30
: 10.0.0.0/24 is subnetted, 1 subnets
: S 10.41.0.0 [1/0] via 192.168.1.253
: C 192.168.1.0/24 is directly connected, FastEthernet0/0
: S* 0.0.0.0/0 [1/0] via 192.168.1.253
: S 192.168.0.0/16 is directly connected, Serial0/0/0
: 请问上面代表是什麽意思?
:
: 另外,我们的f0/1是173.30.32.74 s0/0是173.30.62.78!
:
: --
:
※ 发信站: 批踢踢实业坊(ptt.cc)
: ◆ From: 210.66.145.136
: → sdu37:请问上面的172.30.62.76是指远端的GW吗?那它有几个可用的IP 03/22 15:24
: → sdu37:还有我不懂的是,172.30.62.76 directly connected是seria10 03/22 15:27
: → sdu37:我知道/30有两个host可以用,那route那个ip算一个吗? 03/22 15:30
172.30.62.76指的网路
可用IP掐头去尾 (172.30.62.76、172.30.62.79)
只剩下两个可以用 172.30.62.77、172.30.62.78
看起来你们应该是拿(172.30.62.76/30)来做WAN IP
所以你那端是173.30.62.78的话,我猜另外一端router介面应该是173.30.62.77
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 61.14.165.2
1F:推 sdu37:另一端router的介面是.77!另一端不是.76吗?<--这我不懂 03/22 16:06
2F:→ sdu37:我有看书,76算是子网路,可用的只有77、78吗?79是广播位址 03/22 16:09
3F:→ sdu37:这样是对的吗? 03/22 16:09
4F:→ zaknafein:没错! 03/22 16:39
5F:→ zaknafein:所以wan ip 会用/30就是因为刚好只有两个可用iP! 03/22 16:40
6F:→ sdu37:回Z大,我在执行sh run,有看到有怪的地方 03/22 16:43
7F:→ sdu37:我的F0/1是173.30.32.74,但我在sh run时有一行是: 03/22 16:45
8F:→ sdu37:ip route 192.168.0.0 255.255.0.0 173.30.32.73 150 03/22 16:45
9F:→ sdu37:为什麽是往73丢?後面的150是什麽? 03/22 16:46
10F:→ zaknafein:你们应该有个网段是 192.168.0.0 /16是在另一端router 03/22 16:50
11F:→ zaknafein:那边 所以你要把所有属於该网段的往下一个hop丢 03/22 16:51
12F:→ zaknafein:这下一个hop指的就是另一端router的ip 173.30.32.73 03/22 16:51