breviarlab5
Post on 06-Apr-2018
216 Views
Preview:
TRANSCRIPT
8/3/2019 BreviarLab5
http://slidepdf.com/reader/full/breviarlab5 1/2
Breviar Lab5 RL
Vlan configuration
* Explicit vlan configurationSwitch(config)#vlan 100
Switch(config-vlan)#name MarketingSwitch(config-vlan)#end
* Add a port to a vlan
Switch(config)#interface FastEthernet 0/11Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 10% Access VLAN does not exist. Creating vlan 10
* Configure trunking / native vlan / allowed vlans
Switch(config-if)#switchport mode trunk
Switch(config-if)#switchport trunk native vlan 42Switch(config-if)#switchport trunk allowed vlan except 30
Switch(config-if)#switchport trunk allowed vlan ?
WORD VLAN IDs of the allowed VLANs when this port is
in trunking mode
add add VLANs to the current list
all all VLANs
except all VLANs except the following
none no VLANs
remove remove VLANs from the current list
* Management vlan
Switch(config)#interface vlan 100Switch(config-if)#ip address 192.0.2.101 255.255.255.0
Verification* Show commands
Switch#show vlan briefVLAN Name Status Ports---- ---------- --------- --------------------------
1 default active Fa0/2, Fa0/3, Fa0/4, Fa0/5Fa0/6, Fa0/7, Fa0/8, Fa0/9…
10 VLAN0010 active Fa0/11100 Marketing active Fa0/12
...Switch#show interfaces trunkPort Mode Encapsulation Status Native vlan
Fa0/1 on 802.1q trunking 42 Port Vlans allowed on trunk
Fa0/1 1-29,31-1005
8/3/2019 BreviarLab5
http://slidepdf.com/reader/full/breviarlab5 2/2
Configuration* Create and configure subinterfaces
Router(config)#int FastEthernet 0/0
Router(config-if)#no shutdown%LINK-5-CHANGED: Interface FastEthernet0/0, changed
state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface
FastEthernet0/0, changed state to up Router(config-if)#interface Fa 0/0.50
%LINK-5-CHANGED: Interface FastEthernet0/0.50,
changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface
FastEthernet0/0.50, changed state to up
Router(config-subif)#encapsulation dot1Q 50Router(config-subif)#ip address 192.0.2.1 255.255.255.0
Router(config-if)#interface Fa 0/0.75
%LINK-5-CHANGED: Interface FastEthernet0/0.75,changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on InterfaceFastEthernet0/0.75, changed state to upRouter(config-subif)#encapsulation dot1Q 75
Router(config-subif)#ip address 192.0.3.1 255.255.255.0
Verification* Show commands
Router#show ip interface brief
Interface IP-Address OK? Method Status ProtocolFastEthernet0/0 unassigned YES unset up upFastEthernet0/0.50 192.0.2.1 YES manual up upFastEthernet0/0.75 192.0.3.1 YES manual up up
FastEthernet0/1 unassigned YES unset administratively down
Router#show ip route
C 192.0.2.0/24 is directly connected, FastEthernet0/0.50
C 192.0.3.0/24 is directly connected, FastEthernet0/0.75
* Debugging
Router#debug ip packet
IP: tableid=0, s=192.0.2.2 (FastEthernet0/0.50), d=192.0.2.18
(FastEthernet0/0.50), routed via RIB
IP: s=192.0.2.2 (FastEthernet0/0.50), d=192.0.2.18
(FastEthernet0/0.50), len 128, rcvd 3
IP: tableid=0, s=192.0.2.18 (local), d=192.0.2.2
(FastEthernet0/0.50), routed via RIB
IP: s=192.0.2.18 (local), d=192.0.2.2 (FastEthernet0/0.50),len 128, sending
top related