Thứ Năm, 26 tháng 5, 2011

Lab1 VLAN VTP

Configure R1

!
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R1
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
!
resource policy
!
memory-size iomem 5
!
!
ip cef
no ip domain lookup
no ip dhcp use vrf connected
!
ip dhcp pool Vlan1
   network 172.16.1.0 255.255.255.0
   default-router 172.16.1.2
   dns-server 8.8.8.8
!
ip dhcp pool Vlan3
   network 172.16.3.0 255.255.255.0
   default-router 172.16.3.2
   dns-server 8.8.8.8
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
 ip address 192.168.13.1 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet0/1
 ip address 172.16.11.1 255.255.255.0
 duplex auto
 speed auto
!
router rip
 version 2
 network 172.16.0.0
 network 192.168.13.0
 no auto-summary
!
ip http server
no ip http secure-server
!
!
!
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
line con 0
 exec-timeout 0 0
 logging synchronous
line aux 0
line vty 0 4
 login
!
!
end






Configure R2
!
!
version 12.4
service config
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R2
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
!
resource policy
!
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
 ip address 172.16.11.2 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet0/0.1
 encapsulation dot1Q 1 native
 ip address 172.16.1.2 255.255.255.0
 ip helper-address 172.16.11.1
 no snmp trap link-status
!
interface FastEthernet0/0.2
 encapsulation dot1Q 2
 ip address 172.16.2.2 255.255.255.0
 ip helper-address 192.168.13.3
 no snmp trap link-status
!
interface FastEthernet0/0.3
 encapsulation dot1Q 3
 ip address 172.16.3.2 255.255.255.0
 ip helper-address 172.16.11.1
 no snmp trap link-status
!
interface FastEthernet0/0.4
 encapsulation dot1Q 4
 ip address 172.16.4.2 255.255.255.0
 ip helper-address 192.168.13.3
 no snmp trap link-status
!
interface FastEthernet0/1
 ip address dhcp
 duplex auto
 speed auto
!
router rip
 version 2
 network 172.16.0.0
 no auto-summary
!
ip http server
no ip http secure-server
!
!
!
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
line con 0
 exec-timeout 0 0
 logging synchronous
line aux 0
line vty 0 4
 login
!
!
end

Configure R3
!

version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R3
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
!
resource policy
!
memory-size iomem 5
!
!
ip cef
no ip domain lookup
no ip dhcp use vrf connected
!
ip dhcp pool Vlan2
   network 172.16.2.0 255.255.255.0
   default-router 172.16.2.2
   dns-server 8.8.8.8
!
ip dhcp pool vlan4
   network 172.16.4.0 255.255.255.0
   default-router 172.16.4.2
   dns-server 8.8.8.8
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
 ip address 192.168.13.3 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet0/1
 no ip address
 shutdown
 duplex auto
 speed auto
!
router rip
 version 2
 network 192.168.13.0
 no auto-summary
!
ip http server
no ip http secure-server
!
!
!
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
line con 0
 exec-timeout 0 0
 logging synchronous
line aux 0
line vty 0 4
 login
!
!
end

Configure Client
!

version 12.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Client
!
logging queue-limit 100
!
ip subnet-zero
!
!
no ip domain lookup
!
vtp file nvram:vlan.dat

!
!
!
!
!
!
!
!
!
no voice hpi capture buffer
no voice hpi capture destination
!
!
mta receive maximum-recipients 0
!
!
!
!
interface FastEthernet0/0
 switchport mode trunk
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/1
 switchport mode trunk
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/2
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/3
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/4
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/5
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/6
 switchport access vlan 2
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/7
 switchport access vlan 2
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/8
 switchport access vlan 2
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/9
 switchport access vlan 2
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/10
 switchport access vlan 3
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/11
 switchport access vlan 3
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/12
 switchport access vlan 3
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/13
 switchport access vlan 3
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/14
 switchport access vlan 4
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/15
 switchport access vlan 4
 no ip address
 spanning-tree portfast
!
interface Vlan1
 no ip address
 shutdown
!
ip http server
ip classless
!
!
!
!
call rsvp-sync
!
!
mgcp profile default
!
!
!
dial-peer cor custom
!
!
!
!
line con 0
 exec-timeout 0 0
 logging synchronous
line aux 0
line vty 0 4
!
!
end

Configure Tran

!

version 12.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Tran
!
logging queue-limit 100
!
ip subnet-zero
!
!
no ip domain lookup
!
vtp file nvram:vlan.dat

!
!
!
!
!
!
!
!
!
no voice hpi capture buffer
no voice hpi capture destination
!
!
mta receive maximum-recipients 0
!
!
!
!
interface FastEthernet0/0
 switchport mode trunk
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/1
 switchport mode trunk
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/2
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/3
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/4
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/5
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/6
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/7
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/8
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/9
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/10
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/11
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/12
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/13
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/14
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/15
 no ip address
 spanning-tree portfast
!
interface Vlan1
 no ip address
 shutdown
!
ip http server
ip classless
!
!
!
!
call rsvp-sync
!
!
mgcp profile default
!
!
!
dial-peer cor custom
!
!
!
!
line con 0
 exec-timeout 0 0
 logging synchronous
line aux 0
line vty 0 4
!
!
end

Configure Server
!

version 12.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Server
!
logging queue-limit 100
!
ip subnet-zero
!
!
no ip domain lookup
!
vtp file nvram:vlan.dat

!
!
!
!
!
!
!
!
!
no voice hpi capture buffer
no voice hpi capture destination
!
!
mta receive maximum-recipients 0
!
!
!
!
interface FastEthernet0/0
 switchport mode trunk
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/1
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/2
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/3
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/4
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/5
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/6
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/7
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/8
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/9
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/10
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/11
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/12
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/13
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/14
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/15
 no ip address
 spanning-tree portfast
!
interface Vlan1
 no ip address
 shutdown
!
ip http server
ip classless
!
!
!
!
call rsvp-sync
!
!
mgcp profile default
!
!
!
dial-peer cor custom
!
!
!
!
line con 0
 exec-timeout 0 0
 logging synchronous
line aux 0
line vty 0 4
!
!
end
-----------------The End-------------

Không có nhận xét nào:

Đăng nhận xét