Enableconfig terminalthis can be abriviated toconfig tvlan xxThis can be any number, its easier to start from 10- OPTIONAL:
name classGives the VLAN a name, you don't have to do this but is handy when viewing VLAN information
After you've done this you can use do show vlan to view all VLAN information and see what VLAN's you've made.
interface fastethernet 0/1Go to the interface. This can be any, use theshow ip interface briefcommand to see all network portsswitchport mode accessYou need to again do this otherwise the switch will complain.switchport access vlan xxSet the port to access the VLAN.
vtp mode clientOptions for this command areserver,clientandtransparentvtp domain domainnameSets the domain name to something so that the servers can communicate with eachother- OPTIONAL:
vtp password 12345Sets the password interface fastethernet 0/2Go to the port where the other switch is connectedswitchport mode trunkSet the mode to trunk WARNING: If your switch setup looks like this set the middle switch to transparent. This means that the middle switch won't recive any more updates from the server swtich
Create a VLAN on the server switch and then check the VLAN on the other servers to see if they have the VLAN
Check VTP server with do show vtp status
(this might not actually work)
- Make your neccecery VLAN's
- Add the port to the VLAN
- Go to the VLAN by using
vlan xx int vlan xxGoes to the VLAN's interfaceip address 192.168.1.1 255.255.255.0This sets the VLAN's IP address and subnet mask. Customise these for your needsno shutdownI've got no clue what this does :shrek:- Setup the DHCP server with a static address
- Create DHCP profile on the server for every VLAN you have (example)
int fa 0/xGo to an interface that you want DHCP to reachswitchport trunk encapsulation dot1qSet whatever this isswitchport mode trunkSet the mode to trunk- Go to the network swtich and attach yourself to the network port of the device that needs DHCP and run
switchport mode access(this is only if your network looks like this) switchport access vlan xxattach the port to the vlan (again, optional. Only if your network looks like the one shown in the screenshot)- (back on multilayer)
ip helper-address 192.168.1.2Basically just helps the PC's find the DHCP server ip routing
VTP = Virtual Trucking Protocal Syncs VLAN's between master server and clients
- Server = Can create VLAN's. Sends updates and advertisments.
- Client = Cannot create VLAN's. Forwards updates and advertisments.
- Transparrent = Can create local VLAN's. Does forward packets.