Cisco Inter-vlan configuration Cisco Router 871 Cisco Catalyst 2960

Today I was busy with a configuration between a Cisco Router 871 and a Cisco Catalyst 2960. It was in an enviroment with lots of other switches ( Catalyst 3560 PoE ) So i had to create a good routing infrastructure.

Situation: Cisco Catalyst 3560 ( main infrastructure ) Cisco Catalyst 2960 ( Customer infrastructure ) Cisco Router 871 ( Customer Internet Device )

I had to create a trunk from the main infrastructure to the Customer infrastructure. This was kinda an easy part.
The main infrastructure contained a VTP domain incl. server so the Customer Infrastructure needed to be part of the main infrastructure. Since this was the easy part I created that first. second of all i had to prepare for some internet connection. I did this with the Cisco Router 871.

On the Cisco Router 871 i configured. the normal way of configuration like the other on my webblog. Except some configurations below i had to add to my Cisco Router 871.

vlan 2
 name <voice-lan>
!
vlan 181
 name <customer-name>

interface FastEthernet0
 switchport mode trunk
!
interface FastEthernet1
 switchport access vlan 181
!
interface FastEthernet2
 switchport access vlan 181
!
interface FastEthernet3
 switchport access vlan 181
 switchport voice vlan 2

A static rout to the Cisco Catalyst 2960

ip route < network > < subnet > < switch ip address >

Added VLAN interfaces on the Cisco Router 871

interface Vlan1
 description LAN < your line >
 ip address < native network id > 255.255.255.0
 no ip redirects
 no ip unreachables
 no ip proxy-arp
 ip nat inside
 ip virtual-reassembly
 ip route-cache same-interface
 ip route-cache policy
 ip route-cache flow
 ip policy route-map RMP_Vlan1_NO_NAT
!
interface Vlan181
 description LAN < your own text >
 ip address < Customer network id> 255.255.255.0
 no ip redirects
 no ip unreachables
 no ip proxy-arp
 ip nat inside
 ip virtual-reassembly
 ip route-cache policy
 ip route-cache flow
 ip policy route-map RMP_Vlan1_NO_NAT
!
interface Vlan2
 description LAN < your own text > 
 ip address < Voice Lan ID > 255.255.254.0
 no ip redirects
 no ip unreachables
 no ip proxy-arp
 ip nat inside
 ip virtual-reassembly
 ip route-cache same-interface
 ip route-cache policy
 ip route-cache flow
 ip policy route-map RMP_Vlan1_NO_NAT

 On the Switch side it wasn’t that special. Just one interface for trunking.

interface GigabitEthernet0/2
 switchport mode trunk
 switchport nonegotiate
ip default-gateway < ip address route r>

make for sure a notice: use a cross-cable otherwise both ports on switch as router have the status DOWN.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s