单臂路由和二层EC
实验拓扑:
 

单臂路由和二层EC_二层EC

 
基本配置:
Route
interface FastEthernet0/0
 no ip address
 duplex auto
 speed auto
!
interface FastEthernet0/0.1
 encapsulation dot1Q 2
 ip address 192.168.2.1 255.255.255.0
!
interface FastEthernet0/0.2
 encapsulation dot1Q 3
 ip address 192.168.3.1 255.255.255.0
 
 
 
switch1
interface FastEthernet0/1
 channel-group 1 mode on
 switchport mode trunk
 duplex full
 speed 100
!
interface FastEthernet0/2
 switchport mode trunk
!
interface FastEthernet0/3
 channel-group 1 mode on
 switchport mode trunk
 duplex full
 speed 100
!
interface FastEthernet0/4
 switchport access vlan 2
 switchport mode access
!
interface FastEthernet0/5
 switchport access vlan 3
 switchport mode access
interface Port-channel 1
 switchport mode trunk
 
 
Switch2
interface FastEthernet0/1
 channel-group 1 mode on
 switchport mode trunk
 duplex full
 speed 100
!
interface FastEthernet0/3
 channel-group 1 mode on
 switchport mode trunk
 duplex full
 speed 100
 
interface FastEthernet0/6
 switchport access vlan 2
 switchport mode access
!
interface FastEthernet0/7
 switchport access vlan 3
 switchport mode access
 
!
interface Port-channel 1
 switchport mode trunk
!
实验验证:
Router#sh ip route
Gateway of last resort is not set
 
C    192.168.2.0/24 is directly connected, FastEthernet0/0.1
C    192.168.3.0/24 is directly connected, FastEthernet0/0.2
 
PC>ping 192.168.3.3
 
Pinging 192.168.3.3 with 32 bytes of data:
 
Reply from 192.168.3.3: bytes=32 time=156ms TTL=127
Reply from 192.168.3.3: bytes=32 time=156ms TTL=127
Reply from 192.168.3.3: bytes=32 time=157ms TTL=127
Reply from 192.168.3.3: bytes=32 time=110ms TTL=127
 
Ping statistics for 192.168.3.3:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 110ms, Maximum = 157ms, Average = 144ms
 
PC>ping 192.168.2.3
 
Pinging 192.168.2.3 with 32 bytes of data:
 
Reply from 192.168.2.3: bytes=32 time=188ms TTL=128
Reply from 192.168.2.3: bytes=32 time=94ms TTL=128
Reply from 192.168.2.3: bytes=32 time=93ms TTL=128
Reply from 192.168.2.3: bytes=32 time=94ms TTL=128
 
Ping statistics for 192.168.2.3:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 93ms, Maximum = 188ms, Average = 117ms