Chinaunix首页 | 论坛 | 博客
  • 博客访问: 154498
  • 博文数量: 73
  • 博客积分: 2045
  • 博客等级: 大尉
  • 技术积分: 1010
  • 用 户 组: 普通用户
  • 注册时间: 2009-06-29 12:27
文章存档

2010年(8)

2009年(65)

我的朋友

分类: WINDOWS

2009-11-17 15:38:04

 

 

               实验报告

实验需求;

   (1);   R1,f0/1,R2,f0/2为同一子网.

   (2);   SW1, SW2做以太网捆绑,最大程度利用链路.

   (3);   SW3vlan 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 0.0.0.0 0.0.0.0 172.168.12.2

     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 0.0.0.0 0.0.0.0 f0/3

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 10.10.10.1 255.255.255.0

ip access-group yypout out

!

interface Ethernet1/0.3

 encapsulation dot1Q 3

 ip address 20.20.20.1 255.255.255.0

 ip access-group yypin in

!

Ip route 0.0.0.0 0.0.0.0 f0/0

!

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 0.0.0.0 0.0.0.0 FastEthernet0/0

!

line con 0

line vty 0 4

 login

!

!

 

阅读(797) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~