如何实现全网互通~~~~新手求助~~~
2010-09-02 11:02
429 查看
我想实现4台pc可以实现ping telnet 到路由上
pc1 192.168.1.2/24 vlan2 网关 192.168.1.1
pc3 192.168.1.3/24 vlan2 网关 192.168.1.1
pc2 192.168.2.2/24 vlan3 网关 192.168.2.1
pc4 192.168.2.3/24 vlan3 网关 192.168.2.1
r1 fa 0/0.1 192.168.1.1/24 vlan2
r1 fa 0/0.2 192.168.2.1/24 vlan3
r1 s2/0 11.1.1.1/24
r2 s2/0 11.1.1.2/24
实现4台主机可以ping telnet 到 r1 r2?
![](http://blog.51cto.com/attachment/201009/105154576.jpg)
下面是配置~~~谢谢哥哥姐姐帮帮忙了~~~解决下如何实现~~~~
sw1 :Current configuration : 1161 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname sw1
!
!
!
interface FastEthernet0/1
switchport trunk native vlan 3
switchport mode trunk
!
interface FastEthernet0/2
switchport access vlan 2
switchport mode access
!
interface FastEthernet0/3
switchport access vlan 3
switchport mode access
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface FastEthernet0/16
!
interface FastEthernet0/17
!
interface FastEthernet0/18
!
interface FastEthernet0/19
!
interface FastEthernet0/20
!
interface FastEthernet0/21
!
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
!
interface GigabitEthernet1/1
!
interface GigabitEthernet1/2
!
interface Vlan1
no ip address
shutdown
!
!
line con 0
!
line vty 0 4
login
line vty 5 15
login
!
!
end
sw2: Current configuration : 1161 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname sw2
!
!
!
interface FastEthernet0/1
switchport trunk native vlan 3
switchport mode trunk
!
interface FastEthernet0/2
switchport access vlan 2
switchport mode access
!
interface FastEthernet0/3
switchport access vlan 3
switchport mode access
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface FastEthernet0/16
!
interface FastEthernet0/17
!
interface FastEthernet0/18
!
interface FastEthernet0/19
!
interface FastEthernet0/20
!
interface FastEthernet0/21
!
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
!
interface GigabitEthernet1/1
!
interface GigabitEthernet1/2
!
interface Vlan1
no ip address
shutdown
!
!
line con 0
!
line vty 0 4
login
line vty 5 15
login
!
!
end
r1: Current configuration : 909 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname r1
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
!
interface FastEthernet0/0.1
bandwidth 100
encapsulation dot1Q 2
ip address 192.168.1.1 255.255.255.0
!
interface FastEthernet0/0.2
encapsulation dot1Q 3
ip address 192.168.2.1 255.255.255.0
!
interface FastEthernet1/0
no ip address
duplex auto
speed auto
shutdown
!
interface Serial2/0
ip address 11.1.1.1 255.255.255.0
clock rate 64000
!
interface Serial3/0
no ip address
shutdown
!
interface FastEthernet4/0
no ip address
shutdown
!
interface FastEthernet5/0
no ip address
shutdown
!
router rip
network 10.0.0.0
network 11.0.0.0
network 192.168.1.0
network 192.168.2.0
!
ip classless
!
!
!
!
!
!
!
line con 0
line vty 0 4
login
!
!
!
end
r2: Current configuration : 644 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname r2
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
shutdown
!
interface FastEthernet1/0
no ip address
duplex auto
speed auto
shutdown
!
interface Serial2/0
ip address 11.1.1.2 255.255.255.0
!
interface Serial3/0
no ip address
shutdown
!
interface FastEthernet4/0
no ip address
shutdown
!
interface FastEthernet5/0
no ip address
shutdown
!
router rip
network 11.0.0.0
!
ip classless
!
!
!
!
!
!
!
line con 0
line vty 0 4
login
!
!
!
end
附件:http://down.51cto.com/data/2356662
pc1 192.168.1.2/24 vlan2 网关 192.168.1.1
pc3 192.168.1.3/24 vlan2 网关 192.168.1.1
pc2 192.168.2.2/24 vlan3 网关 192.168.2.1
pc4 192.168.2.3/24 vlan3 网关 192.168.2.1
r1 fa 0/0.1 192.168.1.1/24 vlan2
r1 fa 0/0.2 192.168.2.1/24 vlan3
r1 s2/0 11.1.1.1/24
r2 s2/0 11.1.1.2/24
实现4台主机可以ping telnet 到 r1 r2?
![](http://blog.51cto.com/attachment/201009/105154576.jpg)
下面是配置~~~谢谢哥哥姐姐帮帮忙了~~~解决下如何实现~~~~
sw1 :Current configuration : 1161 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname sw1
!
!
!
interface FastEthernet0/1
switchport trunk native vlan 3
switchport mode trunk
!
interface FastEthernet0/2
switchport access vlan 2
switchport mode access
!
interface FastEthernet0/3
switchport access vlan 3
switchport mode access
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface FastEthernet0/16
!
interface FastEthernet0/17
!
interface FastEthernet0/18
!
interface FastEthernet0/19
!
interface FastEthernet0/20
!
interface FastEthernet0/21
!
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
!
interface GigabitEthernet1/1
!
interface GigabitEthernet1/2
!
interface Vlan1
no ip address
shutdown
!
!
line con 0
!
line vty 0 4
login
line vty 5 15
login
!
!
end
sw2: Current configuration : 1161 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname sw2
!
!
!
interface FastEthernet0/1
switchport trunk native vlan 3
switchport mode trunk
!
interface FastEthernet0/2
switchport access vlan 2
switchport mode access
!
interface FastEthernet0/3
switchport access vlan 3
switchport mode access
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface FastEthernet0/16
!
interface FastEthernet0/17
!
interface FastEthernet0/18
!
interface FastEthernet0/19
!
interface FastEthernet0/20
!
interface FastEthernet0/21
!
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
!
interface GigabitEthernet1/1
!
interface GigabitEthernet1/2
!
interface Vlan1
no ip address
shutdown
!
!
line con 0
!
line vty 0 4
login
line vty 5 15
login
!
!
end
r1: Current configuration : 909 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname r1
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
!
interface FastEthernet0/0.1
bandwidth 100
encapsulation dot1Q 2
ip address 192.168.1.1 255.255.255.0
!
interface FastEthernet0/0.2
encapsulation dot1Q 3
ip address 192.168.2.1 255.255.255.0
!
interface FastEthernet1/0
no ip address
duplex auto
speed auto
shutdown
!
interface Serial2/0
ip address 11.1.1.1 255.255.255.0
clock rate 64000
!
interface Serial3/0
no ip address
shutdown
!
interface FastEthernet4/0
no ip address
shutdown
!
interface FastEthernet5/0
no ip address
shutdown
!
router rip
network 10.0.0.0
network 11.0.0.0
network 192.168.1.0
network 192.168.2.0
!
ip classless
!
!
!
!
!
!
!
line con 0
line vty 0 4
login
!
!
!
end
r2: Current configuration : 644 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname r2
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
shutdown
!
interface FastEthernet1/0
no ip address
duplex auto
speed auto
shutdown
!
interface Serial2/0
ip address 11.1.1.2 255.255.255.0
!
interface Serial3/0
no ip address
shutdown
!
interface FastEthernet4/0
no ip address
shutdown
!
interface FastEthernet5/0
no ip address
shutdown
!
router rip
network 11.0.0.0
!
ip classless
!
!
!
!
!
!
!
line con 0
line vty 0 4
login
!
!
!
end
附件:http://down.51cto.com/data/2356662
相关文章推荐
- 利用OSPF等多种协议实现全网互通
- 思科使用RIP协议实现全网互通。
- 如何实现window.open( 'url ', 'name ', 'features &a a058 mp;#x27;);的效果,求助
- 求助:TelephonyManager.listen 监听使用的问题--如何实现TM同时监控多个状态的改变
- 求助如图结构如何实现
- 智能家居如何实现互联互通?云服务或成捷径
- 华为模拟器如何实现不同Vlan不同网段之间的互通
- 动态路由实现OSPF和RIP协议实现全网互连互通
- 求助,后台跳转至前台,如何实现,谢谢
- 【高分求助】如何实现对某一字段的累加更新?求助各位达人,谢谢!
- [紧急求助]如何用程序实现外部提交?针对用asp实现的文件上传程序...内网程序
- 【前端新手之路-第一天】如何实现两个标签页中的通讯?
- 求助,asp.net 下此功能如何实现!
- 求助!!EXCEL里如何实现模糊查询的输入方式。
- 新手求助解决如何提取像素点RGB值的问题
- 三层交换机实现全网互通
- 默认路由配置实现全网互通。(华为)
- 『求助』如何在.NET实现表格嵌套
- 如何使用两台主机实现三个网段之间互通且三个网段均可联网
- 如何实现全国全网验证码类短信接口的调用?