Questions 2 Flashcards
(11 cards)
How to show vlan database?
Show vlan brief
How to show default switchport status on the link ?
Show interfaces gig0/1 switchport
How to configure link between switch as a trunk?
how and when to use each trunking command?
depending on the type of switch you’re configuring
Step-by-Step Guide:
- First, identify your switch type
• Layer 2 switches (like Cisco 2960) support only 802.1Q.
• Multi-layer or older switches (like Cisco 3560/3750) may support ISL and 802.1Q.
To check what your switch supports, enter:
show interfaces [interface-id] switchport
Commands Based on the Switch Type
A. If your switch supports only 802.1Q:
Use just:
interface gig0/1
switchport mode trunk
B. If your switch supports both ISL and 802.1Q:
You must specify the trunk encapsulation first, before setting the trunk mode:
interface gig0/1
switchport trunk encapsulation dot1q
switchport mode trunk
How to set a router interface to get dhcp ip address?
R1 (config) #interface f0/0
R1 (config-if)#ip address dhep
R1 (config-if) #no shutdown
How to get the ip address of a dhcp server?
R1#show dhcp lease
Temp IP addr: 203.0.113.2 for peer on Interface:
FastEthernet0/0
Temp sub net mask: 255.255.255.0.0
DHCP Lease server: 203.0.113.1
How to enable dhcp server?
R1 (config)#ip dhcp excluded-address 10.10.10.1 10.10.10.10
R1 (config) #ip dhcp pool Flackbox
R1 (dhcp-config) #default-router 10.10.10.1
R1 (dhcp-config) #dns-server 10.10.20.10
R1 (dhop-config) #network 10.10.10.0 255.255.255.0
How to verify that clients received ip address via dhcp?
Show ip dhcp binding
How to cleanup or remove dhcp server configuration?
R1 (config) #no ip dhcp excluded-address 10.10.10.1 10.10.10.10
R1 (config) #no ip dhcp pool Flackbox
How to release ip address of a client?
Ipconfig / release
How to allow a router to forward a dhcp request to a server?
R1 (config) #interface f0/1
R1 (config-if) #ip helper-address 10.10.20.10