Reference Sheets
Quick reference commands and snippets from our articles and guides. Search and filter to find what you need.
DHCP server setup
Configuring DHCPv4 in Packet TracerExcluding IPv4 Addresses
router(config)# ip dhcp exluded-address <low-address> <high-address>Defining a DHCP Pool Name
router(config)# ip dhcp pool <pool-name>Define the address pool
router(dhcp-config)# network <network-address> <subnet-mask>Define the router or gateway address
router(dhcp-config)# default-router address <ip address>Define a DNS server
router(dhcp-config)# dns-server addressDefine the domain name
router(dhcp-config)# domain-name <domain>Define the duration of the lease
router(dhcp-config)# lease <days hours minutes OR infinite>Display the configuration
router# show running-config | section dhcpDisplay all leases
router# show ip dhcp bindingDisplay information on DHCP messages
router# show ip dhcp server statisticsVLAN Creation
Inter-VLAN Routing in Packet TracerEnter global configuration mode
switch# configure terminalCreate a VLAN with a valid ID number
switch(config)# vlan <vlan-id>Specify a unique name to identify the VLAN
switch(config-vlan)# name <vlan-name>Return to the privileged EXEC mode
switch(config-vlan)# endVLAN Port Assignment
Inter-VLAN Routing in Packet TracerEnter global configuration mode
switch# configure terminalEnter interface configuration mode
switch(config)# interface <interface-id>Set the port to access mode
switch(config-if)# switchport mode accessAssign the port to a VLAN
switch(config-if)# switchport access vlan <vlan-id>Return to privileged EXEC mode
switch(config-if)# endTrunk Configuration
Inter-VLAN Routing in Packet TracerEnter global configuration mode
switch# configure terminalEnter interface configuration mode
switch(config)# interface <interface-id>Set the port to permanent trunking mode
switch(config-if)# switchport mode trunkSet the native VLAN to something other than VLAN 1
switch(config-if)# switchport trunk native vlan <vlan-id>Specify the list of VLANs to be allowed on the trunk link
switch(config-if)# switchport trunk allowed vlan <vlan-list>Return to privileged EXEC mode
switch(config-if)# end