文本版|topic 高级搜索
   名人堂 帮助 论坛制度 意见反馈 | 首页 博客 周新贴 招聘 专题 新闻
RSS 底部
 
社区导航: 专家门诊   网络技术   操作系统   数据库   程序设计   系统应用   考试认证   CIO及信息化   站长交流   综合交流   下载基地  51CTO产品服务 设为首页 | 收藏本站
51CTO技术论坛» 思科技术 » 为什么三层交换机添加ip routing 电脑就不能互相访问,也ping 不通路由器了呢?       [ 打印]  [ 订阅]  [ 收藏]  [ 推荐给朋友]   [ 本帖文本页]

论坛跳转:
     
标题: [讨论] 为什么三层交换机添加ip routing 电脑就不能互相访问,也ping 不通路由器了呢?  ( 查看:654  回复:24 )   
 
szh608
新新人类  点击可查看详细



帖子 43
精华 0
无忧币 128
积分 78
阅读权限 20
注册日期 2007-10-14
最后登录 2008-7-14 离线

[查看资料]  [发短消息]  [Blog
       
发表于:2007-11-14 14:20   标题:为什么三层交换机添加ip routing 电脑就不能互相访问,也ping 不通路由器了呢?
上一帖 |
为什么三层交换机添加ip routing 电脑就不能互相访问,也ping 不通路由器了呢?

今天利用boson做实验,进行vlan 间路由配置, 路由器fa 0/0 IP:192.168.1.254,  se 1/0 IP:10.10.10.2       3550交换机 fa 0/12连路由器的fa 0/0 并划分两个VLAN,vlan 2 和 vlan3  , 3550的fa 0/1连接下面的2950  , 3550的fa 0/2连另外一台2950 ,当再3550上添加路由协议(ip routing)的时候,结果PC1不能ping 通PC2 也ping 不通 192.168.1.254 或10.10.10.2    ,请教各位高手这个是什么原因啊?    PC1 连接到2950 ,PC2连另外一个2950       PC1 ip:192.168.2.2  255.255.255.0   192.168.2. 254      PC2: ip:192.168.3.3  255.255.255.0  192.168.3.254     

配置如下:
路由器Rout(4500)
Router>
Router>en
Router#con t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#interface fa 0/0
Router(config-if)#ip address 192.168.1.254 255.255.255.0
Router(config-if)#ip nat inside
Router(config-if)#no shutdown
%LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
Router(config-if)#exit
Router(config)#interface serial 1/0
Router(config-if)#ip address 10.10.10.2 255.255.255.224
Router(config-if)#ip
Router(config-if)#ip nat outside
Router(config-if)#no shutdown
%LINK-3-UPDOWN: Interface Serial1/0, changed state to up
Router(config-if)#exit
%LINK-3-UPDOWN: Interface Serial1/0, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to down
Router(config)#ip nat inside source list 1 interface serial 1/0
Router(config)#ip nat inside source list 1 interface serial 1/0 overload
Router(config)#access-list 1 permit 192.168.1.0 0.0.0.255
Router(config)#ip route 0.0.0.0 0.0.0.0 10.10.10.2
Router(config)#exit
Router#cpy
Router#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
Router#ping 10.10.10.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.2, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5), round-trip min/avg/max = 1/2/4 ms
Router#
Router#
Router#ping 10.10.10.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.2, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5), round-trip min/avg/max = 1/2/4 ms

SW1(3550)配置
Router>
Router>en
Router#con t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#interface fa 0/0
Router(config-if)#ip address 192.168.1.254 255.255.255.0
Router(config-if)#ip nat inside
Router(config-if)#no shutdown
%LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
Router(config-if)#exit
Router(config)#interface serial 1/0
Router(config-if)#ip address 10.10.10.2 255.255.255.224
Router(config-if)#ip
Router(config-if)#ip nat outside
Router(config-if)#no shutdown
%LINK-3-UPDOWN: Interface Serial1/0, changed state to up
Router(config-if)#exit
%LINK-3-UPDOWN: Interface Serial1/0, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to down
Router(config)#ip nat inside source list 1 interface serial 1/0
Router(config)#ip nat inside source list 1 interface serial 1/0 overload
Router(config)#access-list 1 permit 192.168.1.0 0.0.0.255
Router(config)#ip route 0.0.0.0 0.0.0.0 10.10.10.2
Router(config)#exit
Router#cpy
Router#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
Router#ping 10.10.10.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.2, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5), round-trip min/avg/max = 1/2/4 ms
Router#
Router#
Router#ping 10.10.10.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.2, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5), round-trip min/avg/max = 1/2/4 ms

sw2(2950)配置
Router>
Router>en
Router#con t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#interface fa 0/0
Router(config-if)#ip address 192.168.1.254 255.255.255.0
Router(config-if)#ip nat inside
Router(config-if)#no shutdown
%LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
Router(config-if)#exit
Router(config)#interface serial 1/0
Router(config-if)#ip address 10.10.10.2 255.255.255.224
Router(config-if)#ip
Router(config-if)#ip nat outside
Router(config-if)#no shutdown
%LINK-3-UPDOWN: Interface Serial1/0, changed state to up
Router(config-if)#exit
%LINK-3-UPDOWN: Interface Serial1/0, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to down
Router(config)#ip nat inside source list 1 interface serial 1/0
Router(config)#ip nat inside source list 1 interface serial 1/0 overload
Router(config)#access-list 1 permit 192.168.1.0 0.0.0.255
Router(config)#ip route 0.0.0.0 0.0.0.0 10.10.10.2
Router(config)#exit
Router#cpy
Router#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
Router#ping 10.10.10.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.2, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5), round-trip min/avg/max = 1/2/4 ms
Router#
Router#
Router#ping 10.10.10.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.2, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5), round-trip min/avg/max = 1/2/4 ms

另外一台2950配置
Router>
Router>en
Router#con t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#interface fa 0/0
Router(config-if)#ip address 192.168.1.254 255.255.255.0
Router(config-if)#ip nat inside
Router(config-if)#no shutdown
%LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
Router(config-if)#exit
Router(config)#interface serial 1/0
Router(config-if)#ip address 10.10.10.2 255.255.255.224
Router(config-if)#ip
Router(config-if)#ip nat outside
Router(config-if)#no shutdown
%LINK-3-UPDOWN: Interface Serial1/0, changed state to up
Router(config-if)#exit
%LINK-3-UPDOWN: Interface Serial1/0, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to down
Router(config)#ip nat inside source list 1 interface serial 1/0
Router(config)#ip nat inside source list 1 interface serial 1/0 overload
Router(config)#access-list 1 permit 192.168.1.0 0.0.0.255
Router(config)#ip route 0.0.0.0 0.0.0.0 10.10.10.2
Router(config)#exit
Router#cpy
Router#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
Router#ping 10.10.10.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.2, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5), round-trip min/avg/max = 1/2/4 ms
Router#
Router#
Router#ping 10.10.10.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.2, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5), round-trip min/avg/max = 1/2/4 ms为什么三层交换机添加ip routing 电脑就不能互相访问,也ping 不通路由器了呢?

今天利用boson做实验,进行vlan 间路由配置, 路由器fa 0/0 IP:192.168.1.254,  se 1/0 IP:10.10.10.2       3550交换机 fa 0/12连路由器的fa 0/0 并划分两个VLAN,vlan 2 和 vlan3  , 3550的fa 0/1连接下面的2950  , 3550的fa 0/2连另外一台2950 ,当再3550上添加路由协议(ip routing)的时候,结果PC1不能ping 通PC2 也ping 不通 192.168.1.254 或10.10.10.2    ,请教各位高手这个是什么原因啊?     PC1 ip:192.168.2.2  255.255.255.0   192.168.2. 254      PC2: ip:192.168.3.3  255.255.255.0  192.168.3.254     

配置如下:
路由器Rout(4500)
Router>
Router>en
Router#con t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#interface fa 0/0
Router(config-if)#ip address 192.168.1.254 255.255.255.0
Router(config-if)#ip nat inside
Router(config-if)#no shutdown
%LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
Router(config-if)#exit
Router(config)#interface serial 1/0
Router(config-if)#ip address 10.10.10.2 255.255.255.224
Router(config-if)#ip
Router(config-if)#ip nat outside
Router(config-if)#no shutdown
%LINK-3-UPDOWN: Interface Serial1/0, changed state to up
Router(config-if)#exit
%LINK-3-UPDOWN: Interface Serial1/0, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to down
Router(config)#ip nat inside source list 1 interface serial 1/0
Router(config)#ip nat inside source list 1 interface serial 1/0 overload
Router(config)#access-list 1 permit 192.168.1.0 0.0.0.255
Router(config)#ip route 0.0.0.0 0.0.0.0 10.10.10.2
Router(config)#exit
Router#cpy
Router#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
Router#ping 10.10.10.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.2, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5), round-trip min/avg/max = 1/2/4 ms
Router#
Router#
Router#ping 10.10.10.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.2, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5), round-trip min/avg/max = 1/2/4 ms

SW1(3550)配置
Router>
Router>en
Router#con t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#interface fa 0/0
Router(config-if)#ip address 192.168.1.254 255.255.255.0
Router(config-if)#ip nat inside
Router(config-if)#no shutdown
%LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
Router(config-if)#exit
Router(config)#interface serial 1/0
Router(config-if)#ip address 10.10.10.2 255.255.255.224
Router(config-if)#ip
Router(config-if)#ip nat outside
Router(config-if)#no shutdown
%LINK-3-UPDOWN: Interface Serial1/0, changed state to up
Router(config-if)#exit
%LINK-3-UPDOWN: Interface Serial1/0, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to down
Router(config)#ip nat inside source list 1 interface serial 1/0
Router(config)#ip nat inside source list 1 interface serial 1/0 overload
Router(config)#access-list 1 permit 192.168.1.0 0.0.0.255
Router(config)#ip route 0.0.0.0 0.0.0.0 10.10.10.2
Router(config)#exit
Router#cpy
Router#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
Router#ping 10.10.10.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.2, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5), round-trip min/avg/max = 1/2/4 ms
Router#
Router#
Router#ping 10.10.10.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.2, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5), round-trip min/avg/max = 1/2/4 ms

sw2(2950)配置
Router>
Router>en
Router#con t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#interface fa 0/0
Router(config-if)#ip address 192.168.1.254 255.255.255.0
Router(config-if)#ip nat inside
Router(config-if)#no shutdown
%LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
Router(config-if)#exit
Router(config)#interface serial 1/0
Router(config-if)#ip address 10.10.10.2 255.255.255.224
Router(config-if)#ip
Router(config-if)#ip nat outside
Router(config-if)#no shutdown
%LINK-3-UPDOWN: Interface Serial1/0, changed state to up
Router(config-if)#exit
%LINK-3-UPDOWN: Interface Serial1/0, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to down
Router(config)#ip nat inside source list 1 interface serial 1/0
Router(config)#ip nat inside source list 1 interface serial 1/0 overload
Router(config)#access-list 1 permit 192.168.1.0 0.0.0.255
Router(config)#ip route 0.0.0.0 0.0.0.0 10.10.10.2
Router(config)#exit
Router#cpy
Router#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
Router#ping 10.10.10.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.2, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5), round-trip min/avg/max = 1/2/4 ms
Router#
Router#
Router#ping 10.10.10.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.2, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5), round-trip min/avg/max = 1/2/4 ms

另外一台2950配置
Router>
Router>en
Router#con t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#interface fa 0/0
Router(config-if)#ip address 192.168.1.254 255.255.255.0
Router(config-if)#ip nat inside
Router(config-if)#no shutdown
%LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
Router(config-if)#exit
Router(config)#interface serial 1/0
Router(config-if)#ip address 10.10.10.2 255.255.255.224
Router(config-if)#ip
Router(config-if)#ip nat outside
Router(config-if)#no shutdown
%LINK-3-UPDOWN: Interface Serial1/0, changed state to up
Router(config-if)#exit
%LINK-3-UPDOWN: Interface Serial1/0, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to down
Router(config)#ip nat inside source list 1 interface serial 1/0
Router(config)#ip nat inside source list 1 interface serial 1/0 overload
Router(config)#access-list 1 permit 192.168.1.0 0.0.0.255
Router(config)#ip route 0.0.0.0 0.0.0.0 10.10.10.2
Router(config)#exit
Router#cpy
Router#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
Router#ping 10.10.10.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.2, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5), round-trip min/avg/max = 1/2/4 ms
Router#
Router#
Router#ping 10.10.10.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.2, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5), round-trip min/avg/max = 1/2/4 ms

今天利用boson做实验,进行vlan 间路由配置, 路由器fa 0/0 IP:192.168.1.254,  se 1/0 IP:10.10.10.2       3550交换机 fa 0/12连路由器的fa 0/0 并划分两个VLAN,vlan 2 和 vlan3  , 3550的fa 0/1连接下面的2950  , 3550的fa 0/2连另外一台2950 ,当再3550上添加路由协议(ip routing)的时候,结果PC1不能ping 通PC2 也ping 不通 192.168.1.254 或10.10.10.2    ,请教各位高手这个是什么原因啊?     PC1 ip:192.168.2.2  255.255.255.0   192.168.2. 254      PC2: ip:192.168.3.3  255.255.255.0  192.168.3.254     

配置如下:
路由器Rout(4500)
Router>
Router>en
Router#con t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#interface fa 0/0
Router(config-if)#ip address 192.168.1.254 255.255.255.0
Router(config-if)#ip nat inside
Router(config-if)#no shutdown
%LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
Router(config-if)#exit
Router(config)#interface serial 1/0
Router(config-if)#ip address 10.10.10.2 255.255.255.224
Router(config-if)#ip
Router(config-if)#ip nat outside
Router(config-if)#no shutdown
%LINK-3-UPDOWN: Interface Serial1/0, changed state to up
Router(config-if)#exit
%LINK-3-UPDOWN: Interface Serial1/0, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to down
Router(config)#ip nat inside source list 1 interface serial 1/0
Router(config)#ip nat inside source list 1 interface serial 1/0 overload
Router(config)#access-list 1 permit 192.168.1.0 0.0.0.255
Router(config)#ip route 0.0.0.0 0.0.0.0 10.10.10.2
Router(config)#exit
Router#cpy
Router#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
Router#ping 10.10.10.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.2, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5), round-trip min/avg/max = 1/2/4 ms
Router#
Router#
Router#ping 10.10.10.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.2, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5), round-trip min/avg/max = 1/2/4 ms

SW1(3550)配置
Router>
Router>en
Router#con t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#interface fa 0/0
Router(config-if)#ip address 192.168.1.254 255.255.255.0
Router(config-if)#ip nat inside
Router(config-if)#no shutdown
%LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
Router(config-if)#exit
Router(config)#interface serial 1/0
Router(config-if)#ip address 10.10.10.2 255.255.255.224
Router(config-if)#ip
Router(config-if)#ip nat outside
Router(config-if)#no shutdown
%LINK-3-UPDOWN: Interface Serial1/0, changed state to up
Router(config-if)#exit
%LINK-3-UPDOWN: Interface Serial1/0, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to down
Router(config)#ip nat inside source list 1 interface serial 1/0
Router(config)#ip nat inside source list 1 interface serial 1/0 overload
Router(config)#access-list 1 permit 192.168.1.0 0.0.0.255
Router(config)#ip route 0.0.0.0 0.0.0.0 10.10.10.2
Router(config)#exit
Router#cpy
Router#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
Router#ping 10.10.10.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.2, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5), round-trip min/avg/max = 1/2/4 ms
Router#
Router#
Router#ping 10.10.10.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.2, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5), round-trip min/avg/max = 1/2/4 ms

sw2(2950)配置
Router>
Router>en
Router#con t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#interface fa 0/0
Router(config-if)#ip address 192.168.1.254 255.255.255.0
Router(config-if)#ip nat inside
Router(config-if)#no shutdown
%LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
Router(config-if)#exit
Router(config)#interface serial 1/0
Router(config-if)#ip address 10.10.10.2 255.255.255.224
Router(config-if)#ip
Router(config-if)#ip nat outside
Router(config-if)#no shutdown
%LINK-3-UPDOWN: Interface Serial1/0, changed state to up
Router(config-if)#exit
%LINK-3-UPDOWN: Interface Serial1/0, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to down
Router(config)#ip nat inside source list 1 interface serial 1/0
Router(config)#ip nat inside source list 1 interface serial 1/0 overload
Router(config)#access-list 1 permit 192.168.1.0 0.0.0.255
Router(config)#ip route 0.0.0.0 0.0.0.0 10.10.10.2
Router(config)#exit
Router#cpy
Router#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
Router#ping 10.10.10.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.2, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5), round-trip min/avg/max = 1/2/4 ms
Router#
Router#
Router#ping 10.10.10.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.2, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5), round-trip min/avg/max = 1/2/4 ms

另外一台2950配置
Router>
Router>en
Router#con t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#interface fa 0/0
Router(config-if)#ip address 192.168.1.254 255.255.255.0
Router(config-if)#ip nat inside
Router(config-if)#no shutdown
%LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
Router(config-if)#exit
Router(config)#interface serial 1/0
Router(config-if)#ip address 10.10.10.2 255.255.255.224
Router(config-if)#ip
Router(config-if)#ip nat outside
Router(config-if)#no shutdown
%LINK-3-UPDOWN: Interface Serial1/0, changed state to up
Router(config-if)#exit
%LINK-3-UPDOWN: Interface Serial1/0, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to down
Router(config)#ip nat inside source list 1 interface serial 1/0
Router(config)#ip nat inside source list 1 interface serial 1/0 overload
Router(config)#access-list 1 permit 192.168.1.0 0.0.0.255
Router(config)#ip route 0.0.0.0 0.0.0.0 10.10.10.2
Router(config)#exit
Router#cpy
Router#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
Router#ping 10.10.10.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.2, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5), round-trip min/avg/max = 1/2/4 ms
Router#
Router#
Router#ping 10.10.10.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.2, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5), round-trip min/avg/max = 1/2/4 ms为什么三层交换机添加ip routing 电脑就不能互相访问,也ping 不通路由器了呢?

今天利用boson做实验,进行vlan 间路由配置, 路由器fa 0/0 IP:192.168.1.254,  se 1/0 IP:10.10.10.2       3550交换机 fa 0/12连路由器的fa 0/0 并划分两个VLAN,vlan 2 和 vlan3  , 3550的fa 0/1连接下面的2950  , 3550的fa 0/2连另外一台2950 ,当再3550上添加路由协议(ip routing)的时候,结果PC1不能ping 通PC2 也ping 不通 192.168.1.254 或10.10.10.2    ,请教各位高手这个是什么原因啊?     PC1 ip:192.168.2.2  255.255.255.0   192.168.2. 254      PC2: ip:192.168.3.3  255.255.255.0  192.168.3.254     

配置如下:
路由器Rout(4500)
Router>
Router>en
Router#con t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#interface fa 0/0
Router(config-if)#ip address 192.168.1.254 255.255.255.0
Router(config-if)#ip nat inside
Router(config-if)#no shutdown
%LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
Router(config-if)#exit
Router(config)#interface serial 1/0
Router(config-if)#ip address 10.10.10.2 255.255.255.224
Router(config-if)#ip
Router(config-if)#ip nat outside
Router(config-if)#no shutdown
%LINK-3-UPDOWN: Interface Serial1/0, changed state to up
Router(config-if)#exit
%LINK-3-UPDOWN: Interface Serial1/0, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to down
Router(config)#ip nat inside source list 1 interface serial 1/0
Router(config)#ip nat inside source list 1 interface serial 1/0 overload
Router(config)#access-list 1 permit 192.168.1.0 0.0.0.255
Router(config)#ip route 0.0.0.0 0.0.0.0 10.10.10.2
Router(config)#exit
Router#cpy
Router#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
Router#ping 10.10.10.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.2, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5), round-trip min/avg/max = 1/2/4 ms
Router#
Router#
Router#ping 10.10.10.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.2, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5), round-trip min/avg/max = 1/2/4 ms

SW1(3550)配置
Router>
Router>en
Router#con t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#interface fa 0/0
Router(config-if)#ip address 192.168.1.254 255.255.255.0
Router(config-if)#ip nat inside
Router(config-if)#no shutdown
%LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
Router(config-if)#exit
Router(config)#interface serial 1/0
Router(config-if)#ip address 10.10.10.2 255.255.255.224
Router(config-if)#ip
Router(config-if)#ip nat outside
Router(config-if)#no shutdown
%LINK-3-UPDOWN: Interface Serial1/0, changed state to up
Router(config-if)#exit
%LINK-3-UPDOWN: Interface Serial1/0, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to down
Router(config)#ip nat inside source list 1 interface serial 1/0
Router(config)#ip nat inside source list 1 interface serial 1/0 overload
Router(config)#access-list 1 permit 192.168.1.0 0.0.0.255
Router(config)#ip route 0.0.0.0 0.0.0.0 10.10.10.2
Router(config)#exit
Router#cpy
Router#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
Router#ping 10.10.10.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.2, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5), round-trip min/avg/max = 1/2/4 ms
Router#
Router#
Router#ping 10.10.10.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.2, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5), round-trip min/avg/max = 1/2/4 ms

sw2(2950)配置
Router>
Router>en
Router#con t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#interface fa 0/0
Router(config-if)#ip address 192.168.1.254 255.255.255.0
Router(config-if)#ip nat inside
Router(config-if)#no shutdown
%LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
Router(config-if)#exit
Router(config)#interface serial 1/0
Router(config-if)#ip address 10.10.10.2 255.255.255.224
Router(config-if)#ip
Router(config-if)#ip nat outside
Router(config-if)#no shutdown
%LINK-3-UPDOWN: Interface Serial1/0, changed state to up
Router(config-if)#exit
%LINK-3-UPDOWN: Interface Serial1/0, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to down
Router(config)#ip nat inside source list 1 interface serial 1/0
Router(config)#ip nat inside source list 1 interface serial 1/0 overload
Router(config)#access-list 1 permit 192.168.1.0 0.0.0.255
Router(config)#ip route 0.0.0.0 0.0.0.0 10.10.10.2
Router(config)#exit
Router#cpy
Router#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
Router#ping 10.10.10.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.2, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5), round-trip min/avg/max = 1/2/4 ms
Router#
Router#
Router#ping 10.10.10.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.2, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5), round-trip min/avg/max = 1/2/4 ms

另外一台2950配置
Router>
Router>en
Router#con t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#interface fa 0/0
Router(config-if)#ip address 192.168.1.254 255.255.255.0
Router(config-if)#ip nat inside
Router(config-if)#no shutdown
%LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
Router(config-if)#exit
Router(config)#interface serial 1/0
Router(config-if)#ip address 10.10.10.2 255.255.255.224
Router(config-if)#ip
Router(config-if)#ip nat outside
Router(config-if)#no shutdown
%LINK-3-UPDOWN: Interface Serial1/0, changed state to up
Router(config-if)#exit
%LINK-3-UPDOWN: Interface Serial1/0, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to down
Router(config)#ip nat inside source list 1 interface serial 1/0
Router(config)#ip nat inside source list 1 interface serial 1/0 overload
Router(config)#access-list 1 permit 192.168.1.0 0.0.0.255
Router(config)#ip route 0.0.0.0 0.0.0.0 10.10.10.2
Router(config)#exit
Router#cpy
Router#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
Router#ping 10.10.10.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.2, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5), round-trip min/avg/max = 1/2/4 ms
Router#
Router#
Router#ping 10.10.10.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.2, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5), round-trip min/avg/max = 1/2/4 ms



网络工程师到底该不该去考CCIE认证?
2007-11-14 14:201楼
[ 顶部 ]
 
caoleni123
技术员  点击可查看详细



帖子 313
精华 0
无忧币 18
积分 309
阅读权限 30
注册日期 2007-4-1
最后登录 2008-4-24 离线

[查看资料]  [发短消息]  [Blog
       
发表于:2007-11-14 14:31 
用的模拟器啊,是不是boson有问题,用真实机做做试试~



网络工程师到底该不该去考CCIE认证?
2007-11-14 14:312楼
[ 顶部 ]
 
szh608
新新人类  点击可查看详细



帖子 43
精华 0
无忧币 128
积分 78
阅读权限 20
注册日期 2007-10-14
最后登录 2008-7-14 离线

[查看资料]  [发短消息]  [Blog
       
发表于:2007-11-14 14:52 
是的,用的是boson模拟器,我试了好多遍就是ping不通啊



网络工程师到底该不该去考CCIE认证?
2007-11-14 14:523楼
[ 顶部 ]
 
fobkem2001
技术员  点击可查看详细


帖子 227
精华 0
无忧币 760
积分 297
阅读权限 30
注册日期 2006-5-16
最后登录 2008-5-29 离线

[查看资料]  [发短消息]  [Blog
[个人主页]         
发表于:2007-11-14 15:03 
模拟器问题自己换真实的做吧



【MVP】马上申请成为“微软最有价值专家”
2007-11-14 15:034楼
[ 顶部 ]
 
subchen
初级工程师  点击可查看详细



帖子 302
精华 0
无忧币 8331
积分 4824
阅读权限 50
注册日期 2006-7-21
最后登录 2008-7-10 离线

[查看资料]  [发短消息]  [Blog
       
发表于:2007-11-14 15:48 
你看一下路由表sh ip ro



网络工程师到底该不该去考CCIE认证?
2007-11-14 15:485楼
[ 顶部 ]
 
cwfsxlove
技术员  点击可查看详细


帖子 304
精华 0
无忧币 3507
积分 534
阅读权限 30
注册日期 2006-9-14
最后登录 2008-7-4 离线

[查看资料]  [发短消息]  [Blog
  QQ       
发表于:2007-11-14 17:27 
你知道三层交换机工作原理吗?
你的两台PC的网关192.168.2.254和192.168.3.254,请问配置在哪里,网关都没你让数据包发给谁哦?
这里要想通,三层交换机起IP ROUTING,并且至少应该配置静态路由吧?3550的具体配置两年没接触了,但是不是起了IP ROUTING就可以,还要配置东西,你网上搜索下三层交换机起三层功能后的配置细节。
这3550不起三层功能,通过路由器也可以实现VLAN间路由,这就是常见的单臂路由。实现是通过配置子接口的方法实现,很简单



网络工程师到底该不该去考CCIE认证?
2007-11-14 17:276楼
[ 顶部 ]
 
denghanwen
新新人类  点击可查看详细



帖子 64
精华 0
无忧币 -2
积分 63
阅读权限 20
注册日期 2007-7-25
最后登录 2008-6-18 离线

[查看资料]  [发短消息]  [Blog
       
发表于:2007-11-14 22:02   标题:真的很不错!谢谢啦!

真的很不错!谢谢啦!



网络工程师到底该不该去考CCIE认证?
2007-11-14 22:027楼
[ 顶部 ]
 
小侠唐在飞
助理工程师  点击可查看详细


诚信兄弟  
帖子 1537
精华 2
无忧币 2336
积分 1809
阅读权限 40
来自 (保密)
注册日期 2006-6-15
最后登录 2008-5-20 离线

[查看资料]  [发短消息]  [Blog
[个人主页]    QQ       
发表于:2007-11-14 22:26 
累啊..看完至少半天..



【欢迎访问小侠唐在飞技术博客http://xiaoxia.blog.51cto.com】
2007-11-14 22:268楼
[ 顶部 ]
 
cwfsxlove
技术员  点击可查看详细


帖子 304
精华 0
无忧币 3507
积分 534
阅读权限 30
注册日期 2006-9-14
最后登录 2008-7-4 离线

[查看资料]  [发短消息]  [Blog
  QQ       
发表于:2007-11-14 23:21 
你去这个地址下载三层交换机作VLAN间路由的配置方法,是我发在51CTO上的,你可以下来看看:
http://bbs.51cto.com/viewthread.php?tid=433832&highlight=



网络工程师到底该不该去考CCIE认证?
2007-11-14 23:219楼
[ 顶部 ]
 
weixiao520
新新人类  点击可查看详细



帖子 43
精华 0
无忧币 26
积分 43
阅读权限 20
注册日期 2007-11-17
最后登录 2007-11-19 离线

[查看资料]  [发短消息]  [Blog
       
发表于:2007-11-19 21:26 
jhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh



网络工程师到底该不该去考CCIE认证?
2007-11-19 21:2610楼
[ 顶部 ]
 
statue007
新新人类  点击可查看详细



十二生肖之鸡   处女座   行业勋章   技术勋章   诚信兄弟  
帖子 19
精华 0
无忧币 27
积分 19
阅读权限 20
注册日期 2007-10-28
最后登录 2007-11-20 离线

[查看资料]  [发短消息]  [Blog
       
发表于:2007-11-20 08:37 
真是好东西  谢谢楼主 哈哈



网络工程师到底该不该去考CCIE认证?
2007-11-20 08:3711楼
[ 顶部 ]
 
lygzhangbo
新新人类  点击可查看详细



帖子 148
精华 0
无忧币 66
积分 104
阅读权限 20
注册日期 2007-6-20
最后登录 2008-6-24 离线

[查看资料]  [发短消息]  [Blog
       
发表于:2007-11-28 09:53 
楼上的怎么乱回复啊  哈哈哈…………………………



网络工程师到底该不该去考CCIE认证?
2007-11-28 09:5312楼
[ 顶部 ]
 
lixiaomingkira
新新人类  点击可查看详细


帖子 110
精华 0
无忧币 136
积分 132
阅读权限 20
来自 (保密)
注册日期 2007-11-15
最后登录 2008-7-19 离线

[查看资料]  [发短消息]  [Blog
  QQ       
发表于:2007-12-11 15:13 
最好你画个图吧ROUTER4500在那里啊 ?
怎么都不清楚啊 .....其实三层交换机....分配了VLAN后....又起用三层路由的话  应该在连接的路由器应该起用虚拟子接口



网络工程师到底该不该去考CCIE认证?
2007-12-11 15:1313楼
[ 顶部 ]
 
xueqinhe
新新人类  点击可查看详细



帖子 5
精华 0
无忧币 10
积分 10
阅读权限 20
注册日期 2007-1-27
最后登录 2008-7-2 离线

[查看资料]  [发短消息]  [Blog
       
发表于:2007-12-11 15:52 
莫名其妙,接入的交换机配IP NAT INSIDE搞什么呢?



网络工程师到底该不该去考CCIE认证?
2007-12-11 15:5214楼
[ 顶部 ]
 
快乐星期天
新新人类  点击可查看详细



帖子 28
精华 0
无忧币 24
积分 21
阅读权限 20
注册日期 2007-12-10
最后登录 2008-7-7 离线

[查看资料]  [发短消息]  [Blog
       
发表于:2007-12-11 16:18 
boson模拟器本身就没三层交换的功能,换模拟器



网络工程师到底该不该去考CCIE认证?
2007-12-11 16:1815楼
[ 顶部 ]
 
sl_szq
新新人类  点击可查看详细



帖子 40
精华 0
无忧币 7
积分 47
阅读权限 20
注册日期 2006-11-15
最后登录 2007-12-13 离线

[查看资料]  [发短消息]  [Blog
       
发表于:2007-12-12 10:40 
不错,又学到新知识了,谢谢各位



网络工程师到底该不该去考CCIE认证?
2007-12-12 10:4016楼
[ 顶部 ]
 
frogman
技术员  点击可查看详细


十二生肖之牛   处女座   行业勋章   技术勋章   诚信兄弟  
帖子 663
精华 0
无忧币 19
积分 685
阅读权限 30
注册日期 2007-3-15
最后登录 2008-7-24 离线

[查看资料]  [发短消息]  [Blog
  QQ       
发表于:2007-12-13 09:27 
不错,今天又学习到了新的知识!谢谢楼上诸位兄弟了!



网络工程师到底该不该去考CCIE认证?
2007-12-13 09:2717楼
[ 顶部 ]
 
forteibj
新新人类  点击可查看详细



帖子 95
精华 0
无忧币 -1
积分 102
阅读权限 20
注册日期 2006-4-27
最后登录 2008-7-18 离线

[查看资料]  [发短消息]  [Blog
[个人主页]         
发表于:2007-12-13 16:26 
好东西  谢谢楼主 !!!!!!!!!!!!!!!!!!!!!!!!!!!



网络工程师到底该不该去考CCIE认证?
2007-12-13 16:2618楼
[ 顶部 ]
 
robertlala
新新人类  点击可查看详细



帖子 15
精华 0
无忧币 14
积分 15
阅读权限 20
注册日期 2007-12-16
最后登录 2008-3-9 离线

[查看资料]  [发短消息]  [Blog
       
发表于:2007-12-16 15:49 
人家有问题,不是叫你们学习,大哥,帮他解决啊



网络工程师到底该不该去考CCIE认证?
2007-12-16 15:4919楼
[ 顶部 ]
 
zbh87330
新新人类  点击可查看详细



帖子 26
精华 0
无忧币 5
积分 17
阅读权限 20
注册日期 2007-6-19
最后登录 2008-7-11 离线

[查看资料]  [发短消息]  [Blog
       
发表于:2008-1-6 18:36 
多多分析别人出的问题,才能避免自己在以后少出同样的问题!



网络工程师到底该不该去考CCIE认证?
2008-1-6 18:3620楼
[ 顶部 ]
 
lygzhangbo
新新人类  点击可查看详细



帖子 148
精华 0
无忧币 66
积分 104
阅读权限 20
注册日期 2007-6-20
最后登录 2008-6-24 离线

[查看资料]  [发短消息]  [Blog
       
发表于:2008-1-6 18:54 
太长了 不想看 ,但是俺建议用  DYNAMIPS  如果内存足够大的话……