Jump to content

Recommended Posts

Posted

Hi All,

 

So I have a new 2920 that I've configured some VLANs on. I am able to route between VLANs local to the switch, but when I want to route "out" using the default gateway, I get nothing.

 

From my laptop on 192.168.100.2 I can ping 192.168.100.1, 192.168.101.1 and 192.168.2.5. I still can't get to 192.168.2.1 though. Where it really gets strange though is from another client on the 192.168.2.0/24 external to the switch, I am able to ping 192.168.2.5 and access the switch GUI via HTTP also.

Also from the switch I can ping 192.168.2.1, the problem remains that it just doesn't want route internal VLANs to the default gateway...

Running configuration attached...

 

config.txt

Posted (edited)

I might be completely wrong as I'm slowly falling asleep on my keyboard, but shouldn't there be a connected route for the default_vlan as well as the static route?

 

Such as:

192.168.2.0/24 DEFAULT_VLAN 1 connected 1 0

 

Sorry if I'm miles off the bat, just the first thing that came to mind from what I'm used to seeing.

 

EDIT: Oh just realised, this probably isn't the only router, in which case I'm completely wrong?

Edited by mrbios
Posted
The 192.168.2.1 is the only external router to the switch, I basically want traffic for all VLAN's on the switch to use that as the default gateway as it is the one connected to the Internet.
Posted

On mine I have a default gateway for the default VLAN you don't, that may be an issue.

 

ip default-gateway 192.168.10.254
ip route 0.0.0.0 0.0.0.0 192.168.10.7
ip routing

 

                                             IP Route Entries

 Destination        Gateway         VLAN Type      Sub-Type   Metric     Dist.
 ------------------ --------------- ---- --------- ---------- ---------- -----
 0.0.0.0/0          192.168.10.7    10   static               1          1
 127.0.0.0/8        reject               static               0          0
 127.0.0.1/32       lo0                  connected            1          0
 192.168.10.0/24    10-pcs          10   connected            1          0
 192.168.30.0/24    30-wireless     30   connected            1          0

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...