Switches, Hubs, and Modems
1752454 Members
6200 Online
108788 Solutions
New Discussion юеВ

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 14
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