Enable
config terminal
this can be abriviated toconfig t
vlan xx
This can be any number, its easier to start from 10- OPTIONAL:
name class
Gives 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/1
Go to the interface. This can be any, use theshow ip interface brief
command to see all network portsswitchport mode access
You need to again do this otherwise the switch will complain.switchport access vlan xx
Set the port to access the VLAN.
vtp mode client
Options for this command areserver
,client
andtransparent
vtp domain domainname
Sets the domain name to something so that the servers can communicate with eachother- OPTIONAL:
vtp password 12345
Sets the password interface fastethernet 0/2
Go to the port where the other switch is connectedswitchport mode trunk
Set 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 xx
Goes to the VLAN's interfaceip address 192.168.1.1 255.255.255.0
This sets the VLAN's IP address and subnet mask. Customise these for your needsno shutdown
I'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/x
Go to an interface that you want DHCP to reachswitchport trunk encapsulation dot1q
Set whatever this isswitchport mode trunk
Set 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 xx
attach 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.2
Basically 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.