====== Lab 01000 Routed Subinterfaces 1 Router, IOS-XE ======
{{ :cisco:labs:01000.jpg?700 |}}
===== Router 1 =====
en
conf t
hostname r1
no service call-home
no call-home
no ip http server
no ip http authentication local
no ip http secure-server
line con 0
logg syn
exec-timeout 0 0
width 512
history size 256
exit
interface GigabitEthernet1
no ip address
!
interface GigabitEthernet1.10
encapsulation dot1Q 10
!
interface GigabitEthernet1.20
encapsulation dot1Q 20
!
interface GigabitEthernet1.30
encapsulation dot1Q 30
!
interface GigabitEthernet1.40
encapsulation dot1Q 40
!
interface GigabitEthernet1.50
encapsulation dot1Q 50
Note: Any valid IP can be added to each sub-interface.
===== Verification =====
r1#show ip interface brief
Interface IP-Address OK? Method Status Protocol
GigabitEthernet1 unassigned YES unset up up
GigabitEthernet1.10 unassigned YES unset up up
GigabitEthernet1.20 unassigned YES unset up up
GigabitEthernet1.30 unassigned YES unset up up
GigabitEthernet1.40 unassigned YES unset up up
GigabitEthernet1.50 unassigned YES unset up up