R1#show run
Building configuration...
Current configuration : 565 bytes !
version 8.32(building 53) hostname R1 ! ! ! ! ! ! ! ! ! ! ! ! ! !
!
interface serial 1/2
ip address 172.16.2.1 255.255.255.0 clock rate 64000 !
interface serial 1/3 clock rate 64000 !
interface FastEthernet 1/0
ip address 172.16.1.2 255.255.255.0 duplex auto speed auto !
interface FastEthernet 1/1 duplex auto speed auto !
interface Null 0 ! !
router rip
no auto-summary version 2
network 172.16.0.0 network 192.168.2.0 network 192.168.3.0 !
! ! line con 0 line aux 0 line vty 0 4 login ! ! end
R1#show ip route
Codes: C - connected, S - static, R - RIP O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 * - candidate default
Gateway of last resort is no set
C 172.16.1.0/24 is directly connected, FastEthernet 1/0 C 172.16.1.2/32 is local host.
C 172.16.2.0/24 is directly connected, serial 1/2
C 172.16.2.1/32 is local host.
R 172.16.3.0/24 [120/1] via 172.16.2.2, 00:00:21, serial 1/2 R 172.16.5.0/24 [120/1] via 172.16.1.1, 00:00:13, FastEthernet 1/0 R 172.16.6.0/24 [120/1] via 172.16.1.1, 00:00:13, FastEthernet 1/0
R4#show run
Building configuration...
Current configuration : 538 bytes !
version 8.51 (building 11) hostname R4 ! ! ! ! ! ! !
!
!
no service password-encryption ! ! ! ! ! ! !
interface serial 1/2
ip address 172.16.2.2 255.255.255.0 !
interface serial 1/3 clock rate 64000 !
interface FastEthernet 1/0
ip address 172.16.3.1 255.255.255.0 duplex auto speed auto !
interface FastEthernet 1/1 duplex auto speed auto !
interface Null 0 !
!
router rip
no auto-summary version 2
network 172.16.0.0 ! !
! line con 0 line aux 0 line vty 0 4 login ! ! end
R4#show ip route
Codes: C - connected, S - static, R - RIP O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 * - candidate default
Gateway of last resort is no set
R 172.16.1.0/24 [120/1] via 172.16.2.1, 00:00:07, serial 1/2 C 172.16.2.0/24 is directly connected, serial 1/2 C 172.16.2.2/32 is local host.
C 172.16.3.0/24 is directly connected, FastEthernet 1/0 C 172.16.3.1/32 is local host.
R 172.16.5.0/24 [120/2] via 172.16.2.1, 00:00:07, serial 1/2 R 172.16.6.0/24 [120/2] via 172.16.2.1, 00:00:07, serial 1/2
S2126G-2# show run
System software version : 1.69 Build Aug 2 2007 Release Building configuration... Current configuration : 972 bytes !
version 1.0 !
hostname S2126G-2 vlan 1 !
vlan 10
name test10 !
vlan 20
name test20
!
enable secret level 14 5 &Z;C,tZ[2Y interface fastEthernet 0/5 switchport access vlan 10 ! interface fastEthernet 0/11 switchport access vlan 10 ! interface fastEthernet 0/12 switchport access vlan 10 ! interface fastEthernet 0/13 switchport access vlan 10 ! interface fastEthernet 0/14 switchport access vlan 10 ! interface fastEthernet 0/15 switchport access vlan 20 ! interface fastEthernet 0/16 switchport access vlan 20 ! interface fastEthernet 0/17 switchport access vlan 20 ! interface fastEthernet 0/18 switchport access vlan 20 ! interface fastEthernet 0/19 switchport access vlan 20 ! interface fastEthernet 0/20 switchport access vlan 20 ! interface fastEthernet 0/23 switchport mode trunk switchport access vlan 10 ! end S2126G-2#show vlan VLAN Name Status Ports ---- -------------------------------- --------- ------------------------------- 1 default active Fa0/1 ,Fa0/2 ,Fa0/3 Fa0/4 ,Fa0/6 ,Fa0/7 Fa0/8 ,Fa0/9 ,Fa0/10 Fa0/21,Fa0/22,Fa0/23 Fa0/24 10 test10 active Fa0/5 ,Fa0/11,Fa0/12 Fa0/13,Fa0/14,Fa0/23 20 test20 active Fa0/15,Fa0/16,Fa0/17 Fa0/18,Fa0/19,Fa0/20 Fa0/23 S3760#show ip route Codes: C - connected, S - static, R - RIP B - BGP O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default Gateway of last resort is no set C 172.16.1.0/24 is directly connected, FastEthernet 0/10 C 172.16.1.1/32 is local host. R 172.16.2.0/24 [120/1] via 172.16.1.2, 00:00:22, FastEthernet 0/10 R 172.16.3.0/24 [120/2] via 172.16.1.2, 00:00:22, FastEthernet 0/10 C 172.16.5.0/24 is directly connected, VLAN 10 C 172.16.5.1/32 is local host. C 172.16.6.0/24 is directly connected, VLAN 20 C 172.16.6.1/32 is local host. S3760#show run Building configuration... Current configuration : 1442 bytes ! version RGNOS 10.2.00(2), Release(27932)(Thu Dec 13 10:31:41 CST 2007 -ngcf32) ! ! ! vlan 1 ! vlan 10 ! vlan 20 ! ! no service password-encryption ! ! ! ! ! ! ! ! ! ! ! ! ! interface FastEthernet 0/1 ! interface FastEthernet 0/2 ! interface FastEthernet 0/3 ! interface FastEthernet 0/4 ! interface FastEthernet 0/5 switchport access vlan 10 ! interface FastEthernet 0/6 ! interface FastEthernet 0/7 ! interface FastEthernet 0/8 ! interface FastEthernet 0/9 ! interface FastEthernet 0/10 no switchport ip address 172.16.1.1 255.255.255.0 ! interface FastEthernet 0/11 ! interface FastEthernet 0/12 ! interface FastEthernet 0/13 ! interface FastEthernet 0/14 ! interface FastEthernet 0/15 ! interface FastEthernet 0/16 ! interface FastEthernet 0/17 ! interface FastEthernet 0/18 ! interface FastEthernet 0/19 ! interface FastEthernet 0/20 ! interface FastEthernet 0/21 ! interface FastEthernet 0/22 ! interface FastEthernet 0/23 switchport mode trunk ! interface FastEthernet 0/24 ! interface GigabitEthernet 0/25 ! interface GigabitEthernet 0/26 ! interface GigabitEthernet 0/27 ! interface GigabitEthernet 0/28 ! interface VLAN 10 ip address 172.16.5.1 255.255.255.0 ! interface VLAN 20 ip address 172.16.6.1 255.255.255.0 ! ! ! router rip version 2 network 172.16.0.0 ! ! ! line con 0 line vty 0 4 login ! ! ! ! ! end S3760#show vlan VLAN Name Status Ports ---- -------------------------------- --------- ----------------------------------- 1 VLAN0001 STATIC Fa0/1, Fa0/2, Fa0/3, Fa0/4 Fa0/6, Fa0/7, Fa0/8, Fa0/9 Fa0/11, Fa0/12, Fa0/13, Fa0/14 Fa0/15, Fa0/16, Fa0/17, Fa0/18 Fa0/19, Fa0/20, Fa0/21, Fa0/22 Fa0/23, Fa0/24, Gi0/25, Gi0/26 Gi0/27, Gi0/28 10 VLAN0010 STATIC Fa0/5, Fa0/23 20 VLAN0020 STATIC Fa0/23 因篇幅问题不能全部显示,请点此查看更多更全内容