In this session of A Few Easy Steps, we will show the routing table on a Cisco Router. In General this will work on any Cisco IOS Router.
Session Prerequisites:
- You have terminal or console access to your Cisco device.
Session Assumptions:
- Routing is configured on device
- VLAN 1 will be Native
- The Network for VLAN 1 will be 192.168.1.0 /24
- The Network for VLAN 2 will be 192.168.2.0 /24
- The Network for VLAN 3 will be 192.168.3.0 /24
- Interface FastEthernet 0/0 will be our Trunk Interface
Our goals of this session are:
- Setup Primary Interface
- Setup VLAN 1 Sub-Interface
- Setup VLAN 2 Sub-Interface
- Setup VLAN 3 Sub-Interface
Setup Primary Interface
conf t
!
interface fastEthernet 0/0
!
description Trunk_to_SW1
!
no shut
!
end
!
copy running-config startup-config
Setup VLAN 1 Sub-Interface
conf t
!
interface fastEthernet 0/0.1
!
encapsulation dot1Q 1 native
!
ip address 192.168.1.1 255.255.255.0
!
no shut
!
end
!
copy running-config startup-config
Setup VLAN 2 Sub-Interface
conf t ! interface fastEthernet 0/0.2 ! encapsulation dot1Q 2 ! ip address 192.168.2.1 255.255.255.0 ! no shut ! end ! copy running-config startup-config
Setup VLAN 3 Sub-Interface
conf t ! interface fastEthernet 0/0.3 ! encapsulation dot1Q 3 ! ip address 192.168.3.1 255.255.255.0 ! no shut ! end ! copy running-config startup-config
Entire Config:
conf t ! interface fastEthernet 0/0 ! description Trunk_to_SW1 ! no shut ! interface fastEthernet 0/0.1 ! encapsulation dot1Q 1 native ! ip address 192.168.1.1 255.255.255.0 ! no shut ! interface fastEthernet 0/0.2 ! encapsulation dot1Q 2 ! ip address 192.168.2.1 255.255.255.0 ! no shut ! interface fastEthernet 0/0.3 ! encapsulation dot1Q 3 ! ip address 192.168.3.1 255.255.255.0 ! no shut ! end ! copy running-config startup-config
Find out more about Dot1Q Trunks on a Cisco Router here. or Check out this Search at NetworkSuperSearch.com.