VLAN间单臂路由访问

实验书上的拓朴图:

注意TRUNK端口和路由器子端口设置,可以承载不同的VLAN标签。

交换机(用2691加交换模块实现的):

Building configuration...

Current configuration : 1623 bytes
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip subnet-zero
no ip routing
!
!
!
no ip cef
!
!
!         
!
!
!
!
!
!
!
!
!
!
! 
!
!
!
!
interface FastEthernet0/0
 no ip address
 no ip route-cache
 shutdown
 duplex auto
 speed auto
!
interface FastEthernet0/1
 no ip address
 no ip route-cache
 shutdown
 duplex auto
 speed auto
!
interface FastEthernet1/0
 switchport access vlan 2
 no ip address
!
interface FastEthernet1/1
 switchport mode trunk
 no ip address
!
interface FastEthernet1/2
 no ip address
 shutdown
!
interface FastEthernet1/3
 no ip address
 shutdown
!
interface FastEthernet1/4
 no ip address
 shutdown
!
interface FastEthernet1/5
 no ip address
 shutdown
!
interface FastEthernet1/6
 no ip address
 shutdown
!
interface FastEthernet1/7
 no ip address
 shutdown
!
interface FastEthernet1/8
 no ip address
 shutdown
!
interface FastEthernet1/9
 no ip address
 shutdown
!         
interface FastEthernet1/10
 switchport access vlan 3
 no ip address
!
interface FastEthernet1/11
 switchport access vlan 3
 no ip address
 shutdown
!
interface FastEthernet1/12
 no ip address
 shutdown
!
interface FastEthernet1/13
 no ip address
 shutdown
!
interface FastEthernet1/14
 no ip address
 shutdown
!
interface FastEthernet1/15
 no ip address
 shutdown
!
interface Vlan1
 ip address 192.168.1.2 255.255.255.0
 no ip route-cache
!
ip default-gateway 192.168.1.1
ip http server
no ip http secure-server
ip classless
!
!
!
!
!
!
!
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
!
end


路由器A:

version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip subnet-zero
!
!
!
ip cef
!
!
!
!         
!
!
!
!
!
!
!
!
!
! 
!
!
!
!
interface FastEthernet0/0
 ip address 192.168.1.1 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet0/0.2
 encapsulation dot1Q 2
 ip address 192.168.2.1 255.255.255.0
 no snmp trap link-status
!
interface FastEthernet0/0.3
 encapsulation dot1Q 3
 ip address 192.168.3.1 255.255.255.0
 no snmp trap link-status
!
interface FastEthernet0/1
 ip address 192.168.6.1 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet1/0
 no ip address
 shutdown
!
interface FastEthernet1/1
 no ip address
 shutdown
!
interface FastEthernet1/2
 no ip address
 shutdown
!         
interface FastEthernet1/3
 no ip address
 shutdown
!
interface FastEthernet1/4
 no ip address
 shutdown
!
interface FastEthernet1/5
 no ip address
 shutdown
!
interface FastEthernet1/6
 no ip address
 shutdown
!
interface FastEthernet1/7
 no ip address
 shutdown
!
interface FastEthernet1/8
 no ip address
 shutdown 
!
interface FastEthernet1/9
 no ip address
 shutdown
!
interface FastEthernet1/10
 no ip address
 shutdown
!
interface FastEthernet1/11
 no ip address
 shutdown
!
interface FastEthernet1/12
 no ip address
 shutdown
!
interface FastEthernet1/13
 no ip address
 shutdown
!
interface FastEthernet1/14
 no ip address
 shutdown
!
interface FastEthernet1/15
 no ip address
 shutdown
!
interface Vlan1
 no ip address
 shutdown
!
ip http server
no ip http secure-server
ip classless
!
!
!
!
!
!
!
!
!
!         
!
!
line con 0
line aux 0
line vty 0 4
!
end

注意不好的型号和不同的模拟设备,最好单独配置idlepc值。

用idlepc get r1----idlepc save r1获得和保存IDLEPC值,要不然,CPU会操爆的。。。如果IDLEPC值正确,则五六个模拟都没有问题的。

如果发现设置了IDLEPC值之后,计算机CPU值还是超高,则可以重新运算生成和保存。

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值