分类: WINDOWS
2009-11-17 15:38:04
实验报告
实验需求;
(1); R1,f0/1,和R2,f0/2为同一子网.
(2); SW1, SW2做以太网捆绑,最大程度利用链路.
(3); SW3的vlan 2可以访问vlan 3, vlan 3不允许访问vlan 2
实验拓扑;
实验步骤;
SW1基本配置;
SW1;
ip routing
interface range f0/1 -2
channel-group 1 mode desradle
channel-protocol pagp
interface port-channel 1
no switchport
ip add 172.168.12.1 255.255.255.0
int f0/3
no switchport
ip add 192.168.1.3 255.255.255.0
no shutdown
ip route
SW2基本配置;
SW2;
ip routing
interface range f0/1 -2
channel-group 1 mode desradle
channel-protocol pagp
interface port-channel 1
no switchport
ip add 172.168.12.2 255.255.255.0
no shutdown
interface f0/3
no switchport
ip add 192.168.1.6
no shutdown
ip route
R1的基本配置;
R1#show run
Building configuration...
Current configuration : 633 bytes
!
version 12.2
no service password-encryption
!
hostname R1
!
ip ssh version 1
!
interface FastEthernet0/0
ip address 192.168.1.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
duplex auto
speed auto
shutdown
!
interface Ethernet1/0
no ip address
duplex auto
speed auto
!
interface Ethernet1/0.2
encapsulation dot1Q 2
ip address
ip access-group yypout out
!
interface Ethernet1/0.3
encapsulation dot1Q 3
ip address
ip access-group yypin in
!
Ip route
!
interface Ethernet1/1
no ip address
duplex auto
speed auto
shutdown
!
Ip access-list extended yypout
Permit ip any any reflect iptraffic
Ip access-list extended yypin
Evaluate iptraffic
!
ip classless
!
line con 0
line vty 0 4
login
!
SW3基本配置;
Sw3#show run
Building configuration...
Current configuration : 1104 bytes
!
version 12.2
no service password-encryption
!
hostname Sw3
!
ip ssh version 1
!
port-channel load-balance src-mac
!
interface FastEthernet0/1
switchport access vlan 2
switchport mode access
!
interface FastEthernet0/2
switchport access vlan 3
switchport mode access
!
interface FastEthernet0/3
switchport mode trunk
!
interface FastEthernet0/4
!
interface Vlan1
no ip address
shutdown
!
ip classless
!
R2的基本配置
R2#show run
Building configuration...
Current configuration : 365 bytes
!
version 12.2
no service password-encryption
!
hostname R2
!
ip ssh version 1
!
!
interface FastEthernet0/0
ip address 192.168.1.2 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
duplex auto
speed auto
shutdown
!
ip classless
ip route
!
line con 0
line vty 0 4
login
!
!