Sunteți pe pagina 1din 2

///

Basic VTP Server

Switch# config terminal


Switch(config)# vtp mode server
Switch(config)# vtp domain szabist
Switch(config)# vtp password hello
Switch(config)# vtp pruning
Switch(config)# end

//optional

// change enacapsulation and switch port mode to trunk of server of ports connec
ted client switches
Before adding a VTP client to a VTP domain, always verify that its VTP configura
tion revision number
is lower than the configuration revision number of the other switches in the VTP
domain. Switches in a
VTP domain always use the VLAN configuration of the switch with the highest VTP
configuration
revision number. If you add a switch that has a revision number higher than the
revision number in the
VTP domain, it can erase all VLAN information from the VTP server and VTP domain
.
Switch# config terminal
Switch(config)#vtp mode client
Switch(config)# vtp domain szabist
server with lower revision number
Switch(config)# vtp password hello

// generally picked by client switch from

// DHCP Pool for Wifi VLAN


ip dhcp excluded-address 192.168.99.0 192.168.99.10
!
ip dhcp pool POOL
network 192.168.99.0 255.255.255.0
default-router 192.168.99.1
dns-server 192.168.10.10
// IP routing has to be manually enabled on Layer 3 switch to enable Inter Vlan
Routing
ip routing
// Create SVCs on Layer 3 switch for Inter Vlan Routing
interface Vlan1
ip address 192.168.100.100 255.255.255.0
!
interface Vlan4
ip address 192.168.4.1 255.255.255.0
!
interface Vlan5

ip address 192.168.5.1 255.255.255.0


!
interface Vlan6
ip address 192.168.6.1 255.255.255.0
!
interface Vlan8
ip address 192.168.99.1 255.255.255.0

// create Trunk ports


interface FastEthernet0/1
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface FastEthernet0/2
switchport trunk encapsulation dot1q
switchport mode trunk
///create a Routed port for Layer 3 connectivity with a Router
interface GigabitEthernet0/1
no switchport
ip address 10.0.0.1 255.255.255.252

S-ar putea să vă placă și