Switches, Hubs, and Modems
cancel
Showing results for 
Search instead for 
Did you mean: 

2650 Vlan and routing setup

SOLVED
Go to solution
CCT-Dean
Occasional Advisor

2650 Vlan and routing setup

Hi Guys

I have been thrown in at the deep end by my boss we have been given the task of creating a Vlan on a network at one of out clients and i have no experiance with this.

So far i have managed to make the 3 extra Vlans aswell as the Default this is as follows


Default_Vlan 192.168.10.249 255.255.255.0
Red 192.168.11.249 255.255.255.0
Blue 192.168.12.249 255.255.255.0
Green 192.168.13.249 255.255.255.0

i have enabled Routing on the switch but i am unable to get out onto the internet with this configuration i know i am possibly doing this totaly wrong but as i say i have been working on this switch for about 4 hours now and still none the wiser so any help would be greatfully apriciated

Thanks Dean
14 REPLIES
EckerA
Respected Contributor
Solution

Re: 2650 Vlan and routing setup

Hi Dean,

you need:
1) a static route at the switch to the router:
ip route 0.0.0.0 0.0.0.0
2) static routes at the router back to the switch(depends on the syntax of the router):
ip route 192.168.0.0 255.255.0.0

hth
alex
CCT-Dean
Occasional Advisor

Re: 2650 Vlan and routing setup

Hi Alex

Thanks for the quick responce how would i achive this?

My router is on the ip address of 192.168.10.1 how would i add this static route into the switch

like i say i am a total newbie on this kind of stuff
Tijl van der Steeg
Valued Contributor

Re: 2650 Vlan and routing setup

"ip route 0.0.0.0 0.0.0.0 192.168.10.1"
CCT-Dean
Occasional Advisor

Re: 2650 Vlan and routing setup

Ok i have done this and this is my total configuration would you say this is correct? Thanks

J4899A Configuration Editor; Created on release #H.10.74
hostname "HP ProCurve Switch 2650"
cdp run
-ip default-gateway 192.168.10.249
+ip default-gateway 192.168.10.1
ip routing
snmp-server community "public" Unrestricted
vlan 1
name "DEFAULT_VLAN"
- untagged 1-50
+ untagged 16-50
ip address 192.168.10.249 255.255.255.0
+ tagged 5,10,15
+ no untagged 1-4,6-9,11-14
exit
+vlan 2
+ name "Red"
+ untagged 1-4
+ ip address 192.168.11.249 255.255.255.0
+ tagged 5
+ exit
+vlan 3
+ name "Blue"
+ untagged 6-9
+ ip address 192.168.12.249 255.255.255.0
+ tagged 10
+ exit
+vlan 4
+ name "Green"
+ untagged 11-14
+ ip address 192.168.13.249 255.255.255.0
+ tagged 15
+ exit
+ip route 0.0.0.0 0.0.0.0 192.168.10.1
ip ssh version 1-or-2
Tijl van der Steeg
Valued Contributor

Re: 2650 Vlan and routing setup

You need to remove 192.168.10.249 as a gateway, and configure the route at your router as well
CCT-Dean
Occasional Advisor

Re: 2650 Vlan and routing setup

Ok new config as follows

Running configuration:

; J4899A Configuration Editor; Created on release #H.10.74

hostname "HP ProCurve Switch 2650"
cdp run
ip default-gateway 192.168.10.1
ip routing
snmp-server community "public" Unrestricted
vlan 1
name "DEFAULT_VLAN"
untagged 16-50
ip address 192.168.10.249 255.255.255.0
tagged 5,10,15
no untagged 1-4,6-9,11-14
exit
vlan 2
name "Red"
untagged 1-4
ip address 192.168.11.249 255.255.255.0
tagged 5
exit
vlan 3
name "Blue"
untagged 6-9
ip address 192.168.12.249 255.255.255.0
tagged 10
exit
vlan 4
name "Green"
untagged 11-14
ip address 192.168.13.249 255.255.255.0
tagged 15
exit
ip route 0.0.0.0 0.0.0.0 192.168.10.1
ip ssh version 1-or-2


Still unable to get on the internet or ping the router from computer on any of the VLan's apart from Default

I can how ever connect to the switch by the IP address in each range and then ping the router from the Diagnostics page

so as it stands i am totaly at a loss

I am currently trying to setup a route from router back to switch i have a draytek 2820 but i am unable to ping the router from each VLan and i thought i would have been able to without the static route back from my router but i maybe wrong
CCT-Dean
Occasional Advisor

Re: 2650 Vlan and routing setup

Ok as above i have put this route into my router hope its correct

C~ 192.168.10.0/ 255.255.255.0 is directly connected, LAN
S~ 192.168.11.0/ 255.255.255.0 via 192.168.10.1, LAN
S~ 192.168.12.0/ 255.255.255.0 via 192.168.10.1, LAN
S~ 192.168.13.0/ 255.255.255.0 via 192.168.10.1, LAN

now if this is correct i must be missing something as i still cannot get out onto the internet any thoughts?

Thanks
Mohammed Faiz
Honored Contributor

Re: 2650 Vlan and routing setup

How is the client that you are testing from addressed? (i.e. DHCP or static IP address)
CCT-Dean
Occasional Advisor

Re: 2650 Vlan and routing setup

I have laptop on static

Ip 192.168.13.28
Subnet 255.255.255.0
Gway 192.168.10.1 also tried 192.168.13.249

if i put laptop onto Default Vlan i get DHCP fine and out on the net its just the Red, Blue, Green on static that i am putting into the laptops

Thanks
cenk sasmaztin
Honored Contributor

Re: 2650 Vlan and routing setup

your static route commad is wrong (on internet router)

static ip route command must have

ip route 192.168.0.0 255.255.0.0 192.168.10.249

and all vlan member client default gateway address must have vlan ip address
cenk

CCT-Dean
Occasional Advisor

Re: 2650 Vlan and routing setup

Hi cenk sasmaztin I tried that and still got no joy so i am still stuck if anyone has any thoughts on this let me know

Thanks Dean
serpel
Trusted Contributor

Re: 2650 Vlan and routing setup

ok,
the default gateway for your test client needs to be:
Ip 192.168.13.28
Subnet 255.255.255.0
Gway 192.168.13.249

the client must be attached to an untagged port of vlan "green" .

then try to ping 192.168.13.249 from the client, if this works ping 192.168.10.249
if this works routing at the switch is working fine.
at last ping 192.168.10.1 to see if the internetrouter is working correct.
hth
alex
CCT-Dean
Occasional Advisor

Re: 2650 Vlan and routing setup

Thanks for the help Guys its now fully working like i said Thanks for the help
CCT-Dean
Occasional Advisor

Re: 2650 Vlan and routing setup

Each point was valid and the solution was adding up all the posts and implementing them

Thanks