Switches, Hubs, and Modems
1752579 Members
4537 Online
108788 Solutions
New Discussion юеВ

Re: 2650 vlan routing porlbem

 
sunsoso
New Member

2650 vlan routing porlbem

hi all,
i have enabled Routing on the switch and each vlan can be communicated, but i am unable to get out onto the internet with this configuration:

ip default-gateway 192.168.0.1 [router`ip]
ip routing
snmp-server community "public" Unrestricted
vlan 1
name "DEFAULT_VLAN"
untagged 1-42,45-50
ip address 192.168.0.254 255.255.255.0
no untagged 43
tagged 44
exit
vlan 2
name "VLAN2"
untagged 43
tagged 44
ip address 192.168.1.1 255.255.255.0
exit
ip route 0.0.0.0 0.0.0.0 192.168.0.1
password manager
password operator

i also config a static route at the router:
192.168.0.0 255.255.0.0 192.168.0.254

now,192.168.1.x can ping 192.168.0.x execpt 192.168.0.1

any ideas?may be an hardware problem?
Thanks in advance.
6 REPLIES 6
Michael_Breuer
Esteemed Contributor

Re: 2650 vlan routing porlbem

Hi,

try to ping the router from the switch. Is this working? If not check VLAN membership of the router port ("show vlan port xx" -> should be VLAN 1) and arp resolution (show arp). Most likely there is no layer 2 connectivity between the switch and the router.

Cheers,

Michael
Ingentive Networks GmbH
sunsoso
New Member

Re: 2650 vlan routing porlbem

thx to Michael_Breuer ,
the details is:
router`s ip:192.168.0.1 in vlan1;
vlan1`s ip:192.168.0.254;
vlan2`s ip:192.168.1.1;
pc1`s ip:192.168.0.2 in vlan1;
pc2`s ip:192.168.1.2 in vlan2;
switch ping router,ok
pc1 ping router,go internet,ok
pc1 ping pc2,ok
pc2 ping pc1,ok
pc2 ping router,not ok,can`t go internet...
EckerA
Respected Contributor

Re: 2650 vlan routing porlbem

Hi,
take a look at this thread:

Beginners switch setup question

http://forums13.itrc.hp.com/service/forums/questionanswer.do?threadId=1397467

hth
alex
sunsoso
New Member

Re: 2650 vlan routing porlbem

thx to EckerA ,
i`ve added a static route on router with 192.168.1.0/24 192.168.0.254,but it`s still not wrok~
now my config as follow:
---------------------------
routers connected to switch`s port 1
ip:192.168.0.1
static route on router:
192.168.1.0/24 192.168.0.254
---------------------------
ip routing
ip route 0.0.0.0 0.0.0.0 192.168.0.1
vlan1`s ip: 192.168.0.254/24
untagged 1-40
no untagged 41-50

vlan2`s ip: 192.168.1.1/24
untagged 41-50
-----------------------------
pc1 connected to switch`s port 2
ip:192.168.0.2/24
gw:192.168.0.254

pc2 connected to switch`s port 41
ip:192.168.1.2/24
gw:192.168.1.1
---------------------------
pc1 ping pc2,pc2 ping pc1 ok!
pc1/pc2 ping vlan1/vlan2 ok!
pc1 ping router,ok!
pc2 ping router,not ok!

i also tryed to add a static route on switch like this:
192.168.1.0/24 192.168.0.254,but switch return message:
192.168.0.254 can not be switch IP address and route gateway at the same time.

Any help would be grately welcomed!
Michael_Breuer
Esteemed Contributor

Re: 2650 vlan routing porlbem

Hi,

please run the following commands on the router:

ping 192.168.0.254
ping 192.168.1.1

Then check the ARP table and the Routing table on the router (please paste it here if feasable). This will give you a clue whats going on.

Cheers,

Michael
Ingentive Networks GmbH
Usaia Tawakevou
Valued Contributor

Re: 2650 vlan routing porlbem

On the 2650 switch go to VLAN 2 and "untagged 41". This statically put port 41 to VLAN 2. From you intial configuration notice that port 41 is still on the default VLAN. You have to assign it to VLAN 2

HTH