作者Skyline (CCIP got!CCIE Sec go!)
看板Network
标题Re: [问答] 使用Cisco Packet Tracer的疑问
时间Wed Apr 27 16:25:08 2011
: 我在设定ip後,再测试设定route
: 我要让总公司(192.168.1.0)与分公司(192.168.5~10.0/24)互通
: 我把总公司的防火墙的port设为192.168.2.254/30
: 衔接的cisco f0/0的port设为192.168.2.253/30
整个网路环境是怎麽设?
HQ(192.168.1.0)<->(2.252/30) <--> ??(?) - Branch(192.168.5.0/24)
中间还有甚麽吗?
:
: #conf t
: #int f0/0
: #ip route 192.168.2.253 255.255.252.0
这个要在 global config mode 设,缺 next hop,
如果是要设 ip,照前面提的你 mask 也错了
Router(config-if)#ip address 192.168.2.253 255.255.255.252
Router(config-if)#no shutdown <- enable this interface
:
: ctrl + z
:
: #conf t
: #ip route 192.168.0.0 255.255.0.0 192.168.2.254
目的写精确一点会比较好
:
※ 发信站: 批踢踢实业坊(ptt.cc)
: ◆ From: 220.130.156.5
: ※ 编辑: sdu37 来自: 220.130.156.5 (04/27 13:05)
: → wst2080:你 interface IP设定了没有? 04/27 13:27
: → wst2080:show ip int bri 看看 04/27 13:28
: → sdu37:FastEthernet0/0 192.168.2.253 YES manual up 04/27 13:44
: → sdu37:FastEthernet0/1 172.31.62.78 YES manual admini 04/27 13:44
这个网段做甚麽的?..interface is down (use no shutdown to enable)
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 24.84.246.100
1F:推 sdu37:int f0/0那我打错了,我应该是要打ip address才对 04/27 16:44
2F:→ sdu37:应该说192.168.2.253是对防火墙的DMZ PORT192.168.2.254 04/27 16:45
3F:→ sdu37:而172.31.62.78是CISCO对外分公司的PORT 04/27 16:45
4F:→ sdu37:但我不知为什麽我设完ip address与ip route後执行 04/27 16:46
5F:→ sdu37:sh ip route会出现ateway of last resort is not set 04/27 16:47
6F:推 zaknafein:整个config贴出来看看吧 04/27 16:59
7F:→ infosec:link down时 route table不会show出来.. 04/28 13:23