cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1049
Views
0
Helpful
5
Replies

VLAN routing to WAN

Portus92
Level 1
Level 1

Hi,

 

I have a Cisco 897VA connected to my modem (192.168.1.1) on GE8.

My PC is connected on GE0 (vlan 10) and get a correct IP address (10.0.2.2). I can ping 192.168.1.240 but I can't ping 192.168.1.1 and I have no access to Internet.

 

ip dhcp excluded-address 10.0.2.1
!
ip dhcp pool HomeLAN
 network 10.0.2.0 255.255.255.0
 default-router 10.0.2.1 

interface GigabitEthernet0
 switchport access vlan 10
 no ip address

interface GigabitEthernet8
 ip address 192.168.1.240 255.255.255.0
 duplex auto
 speed auto

interface Vlan10
 description Home
 ip address 10.0.2.1 255.255.255.0

ip route 0.0.0.0 0.0.0.0 192.168.1.1
ip route 10.0.2.0 255.255.255.0 192.168.1.1

Any idea ?

 

Thanks.

1 Accepted Solution

Accepted Solutions

Philip D'Ath
VIP Alumni
VIP Alumni

The issue is that the 192.168.1.1 router does not have a route for 10.0.2.0/24 via your Cisco 897.

View solution in original post

5 Replies 5

Edwin Portillo
Spotlight
Spotlight
Friend,
You have to trunk the interface that goes from the switch to the router, try doing that please.

Int g0/8
Switchport mode trunk

Edwin Portillo
Spotlight
Spotlight
You should also verify if the router has a default static route to your switch:

Ip route 0.0.0.0 0.0.0.0 192.168.1.240

Edwin Portillo
Spotlight
Spotlight

No es necesario que agregue esta otra ruta estática:

ruta ip 10.0.2.0 255.255.255.0 192.168.1.1

Ya que la ruta predeterminada es la ruta preferida porque tiene la menor distancia administrativa:

Ruta IP 0.0.0.0 0.0.0.0 192.168.1. 1

Philip D'Ath
VIP Alumni
VIP Alumni

The issue is that the 192.168.1.1 router does not have a route for 10.0.2.0/24 via your Cisco 897.

Thanks a lot.

I can't add a static route in my provider modem/router.

I put the Cisco behind my pfSense and added a static route in it and it works.

Review Cisco Networking products for a $25 gift card