I recently had to configure Inter-VLAN routing at a client’s site. I don’t have to perform this task on a regular basis, so I figured I would make a post of a sample implementation for future reference.
Ingredients used for this post:
- Cisco 2811 Router
- Cisco Catalyst 3560
- Cisco Catalyst 2950
Steps
- Configure the Corp router.
enable
conf t
int fa 0/1
description Link_to_L3SW
ip address 172.17.17.9 255.255.255.252
no shut
end
copy run start
- Configure the Cisco Catalyst 3560 switch.
enable
conf t
vtp mode server
vtp domain test
vtp password test
vlan 10
name Marketing
exit
vlan 20
name IT
exit
int gi 0/1
switchport trunk encapsulation dot1q
switchport mode trunk
switchport nonegotiate
exit
ip routing
int vlan 1
ip address 10.100.1.1 255.255.255.0
no shut
exit
int vlan 10
ip address 10.100.10.1 255.255.255.0
no shut
exit
int vlan 20
ip address 10.100.20.1 255.255.255.0
no shut
exit
int fa 0/24
no switchport
ip address 172.17.17.10 255.255.255.252
no shut
exit
ip route 0 0 172.17.17.9
end
copy run start
- Configure the Cisco Catalyst 2950 switch.
enable
conf t
vtp mode client
vtp domain test
vtp password test
int fa 0/1 - 4
switchport mode access
switchport access vlan 10
exit
int fa 0/5 - 8
switchport mode access
switchport access vlan 20
exit
int gi 0/1
switchport trunk encapsulation dot1q
switchport mode trunk
switchport mode nonegotiate
exit
int vlan 1
ip address 10.100.1.2 255.255.255.0
no shut
exit
ip default-gateway 10.100.1.1
end
copy run start