cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2701
Views
0
Helpful
15
Replies

Inter Vlan routing problem

Attila123
Level 1
Level 1

Hello Everyone,

 

I have an IT testlab with a Cisco 880 VA router. It has 4 switchports (FA0-3). I use these switchports only, as for some reason I can't configure the atm/eth0 port.

Configuration: I have got two Vlans: Vlan1 and Vlan2. FA/1, FA/2, FA/3 are parts of Vlan1 a local LAN. Vlan1 has got a permanent IP address, configured by a dhcp server.

FA/0 is part of Vlan2 and Vlan2 has got a static IP address. 

I configured static route from Vlan1 network using Vlan2 ip address as exit interface and also a static route from Vlan2 network using Vlan1 ip address as exit interface. But it doesn't work and I don't understand why. I read through L3 switching and router on the stick, but they don't seem to apply for this scenario. 
Can someone help me please?

Thank you,

Attila

 

Show Run Full

!
version 15.7
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
!
no aaa new-model
memory-size iomem 10
!!
ip cef
no ipv6 cef
!
!
multilink bundle-name authenticated
license udi pid CISCO887VA-M-K9 sn FCZ164690P4
!
controller VDSL 0
!
interface Ethernet0
no ip address
shutdown
!
interface ATM0
no ip address
shutdown
no atm ilmi-keepalive
!
interface FastEthernet0
switchport access vlan 2
switchport mode access
no ip address
!
interface FastEthernet1
switchport mode access
no ip address
!
interface FastEthernet2
switchport mode access
no ip address
!
interface FastEthernet3
switchport mode access
no ip address
!
interface Vlan1
ip address dhcp
!
interface Vlan2
ip address 192.168.20.2 255.255.255.0
!
ip forward-protocol nd
no ip http server
no ip http secure-server
!
!
ip route 192.168.10.0 255.255.255.0 Vlan2
ip route 192.168.10.0 255.255.255.0 192.168.20.1
ip route 192.168.20.0 255.255.255.0 Vlan1
!
ipv6 ioam timestamp
!
!
control-plane
!
!
vstack


 Show IP route

Gateway of last resort is not set

192.168.10.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.10.0/24 is directly connected, Vlan1
L 192.168.10.3/32 is directly connected, Vlan1
192.168.20.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.20.0/24 is directly connected, Vlan2
L 192.168.20.2/32 is directly connected, Vlan2

Show int Vlan1
Vlan1 is up, line protocol is up
Hardware is EtherSVI, address is e4d3.f168.b328 (bia e4d3.f168.b328)
Internet address is 192.168.10.3/24
MTU 1500 bytes, BW 100000 Kbit/sec, DLY 100 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive not supported
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:50:24, output never, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
1100 packets input, 91268 bytes, 0 no buffer
Received 896 broadcasts (0 IP multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
124 packets output, 26828 bytes, 0 underruns
0 output errors, 1 interface resets
135 unknown protocol drops
0 output buffer failures, 0 output buffers swapped out

Show int Vlan2

Vlan2 is up, line protocol is up
Hardware is EtherSVI, address is e4d3.f168.b328 (bia e4d3.f168.b328)
Internet address is 192.168.20.2/24
MTU 1500 bytes, BW 100000 Kbit/sec, DLY 100 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive not supported
ARP type: ARPA, ARP Timeout 04:00:00
Last input 01:14:17, output never, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
597 packets input, 85153 bytes, 0 no buffer
Received 426 broadcasts (10 IP multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
32 packets output, 3174 bytes, 0 underruns
0 output errors, 1 interface resets
11 unknown protocol drops

 

15 Replies 15

Hello,

 

try the configuration below (important parts marked in bold) where the router itself is the DHCP server:

 

version 15.7
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
!
no aaa new-model
memory-size iomem 10
!!
ip cef
no ipv6 cef
!
ip dhcp excluded-address 192.168.10.1
ip dhcp excluded-address 192.168.20.1
!
ip dhcp pool VLAN1
network 192.168.10.1 255.255.255.0
default-router 192.168.10.1
dns-server 8.8.8.8 8.8.4.4
!
ip dhcp pool VLAN2
network 192.168.20.1 255.255.255.0
default-router 192.168.20.1
dns-server 8.8.8.8 8.8.4.4
!
multilink bundle-name authenticated
license udi pid CISCO887VA-M-K9 sn FCZ164690P4
!
controller VDSL 0
!
interface Ethernet0
no ip address
shutdown
!
interface ATM0
no ip address
shutdown
no atm ilmi-keepalive
!
interface FastEthernet0
switchport access vlan 2
switchport mode access
no ip address
!
interface FastEthernet1
switchport mode access
no ip address
!
interface FastEthernet2
switchport mode access
no ip address
!
interface FastEthernet3
switchport mode access
no ip address
!
interface Vlan1
ip address 192.168.10.1 255.255.255.0
!
interface Vlan2
ip address 192.168.20.1 255.255.255.0
!
ip forward-protocol nd
no ip http server
no ip http secure-server
!
ipv6 ioam timestamp
!
control-plane
!
vstack

Review Cisco Networking products for a $25 gift card