Jump to content

Recommended Posts

Posted

HI

 

I'm trying to add a static route on a hp 5406 Core Switch as default route to my firewall, to give the Vlan's Access to the internet.

 

I tried it with "ip route 0.0.0.0 0.0.0.0 192.168.99.254", i don't get a error message but when i show my routes, the 0.0.0.0 route isn't present.

 

 

 

HP-E5406zl(config)# show running-config

Running configuration:

; J8697A Configuration Editor; Created on release #K.15.06.0017

; Ver #02:10.0d:1f

hostname "HP-E5406zl"

module 1 type J9534A

module 2 type J9535A

module 3 type J9534A

module 4 type J9534A

ip default-gateway 10.10.99.254

ip routing

vlan 1

name "DEFAULT_VLAN"

no untagged A1-A24,B1-B24

no ip address

exit

vlan 99

name "FIREWALL_NET"

untagged A1-A2

ip address 10.10.99.1 255.255.255.0

exit

vlan 100

name "CCTV"

untagged B1-B11,B13-B18,B21-B24

ip address 10.10.100.254 255.255.255.0

tagged B12,B20

exit

vlan 101

name "IPCAM"

untagged A3-A24,B19

ip address 10.10.101.254 255.255.255.0

tagged B12,B20

exit

vlan 102

name "WLAN"

ip address 10.10.102.254 255.255.255.0

exit

vlan 103

name "Internet"

no ip address

exit

vlan 104

name "WLAN2"

no ip address

exit

vlan 105

name "Terminals"

no ip address

exit

ip route 0.0.0.0 0.0.0.0 192.168.99.254

ip route 172.16.0.0 255.255.0.0 192.168.99.254

snmp-server community "public" unrestricted

snmp-server contact "PMR"

spanning-tree

primary-vlan 100

no autorun

no dhcp config-file-update

no dhcp image-file-update

password manager

password operator

 

[/Quote]

 

 

Destination Gateway VLAN Type Sub-Type Metric Dist.

------------------ --------------- ---- --------- ---------- ---------- -----

10.10.99.0/24 FIREWALL_NET 99 connected 1 0

10.10.100.0/24 CCTV 100 connected 1 0

10.10.101.0/24 IPCAM 101 connected 1 0

127.0.0.0/8 reject static 0 0

127.0.0.1/32 lo0 connected 1 0

 

 

[/Quote]

 

So, it seems that the switch doesn't accept the route? But why?

 

Regards

Philipp

Posted

Philipp,

This may sound daft, but I have had this problem, and iirc you have to remove the existing route before adding the new one so:

 

login to switch through telnet (or your preferred option)

 

CONFIG

to enter configuration mode

 

DISPLAY IP ROUTE

to show current routing table. top line should be the default route

 

NO IP ROUTE 0.0.0.0 0.0.0.0 {Current Route IP)

to remove existing route

 

IP ROUTE 0.0.0.0 0.0.0.0 {IP OF ROUTER}

to add new route

 

WRITE MEMORY

to save the changed configuration from running (memory) to boot flash

 

Regards,

 

Dave

Posted

You seem to have the default route in your config as ip route 0.0.0.0 0.0.0.0 192.168.99.254, as well as a ip default-gateway 10.10.99.254 which might confuse things. When I was first setting up my 5412ZL I found I had to reboot the switch to get a couple of things working correctly. Silly, but might be worth a try.

 

Which VLAN is the client connected to?

  • Thanks 1
Posted (edited)

I've just logged on to a 5406zl switch to check, when I ran "SHOW IP ROUTE" I do see the default route with 0.0.0.0/0 as the Destination as well as the and when I run "SHOW RUNNING-CONFIG" I also see the IP ROUTE 0.0.0.0 0.0.0.0... entry.

 

I do notice that the IP address of your default gateway is not showing in the routing table you have printed. Have you defined a VLAN which includes the IP address of your router?

 

Dave

Edited by DavidIrwin
  • Thanks 1
Posted

Good Morning.

 

My Client is at the moment in my vlan 100. Gateway of course is the Switch's ip Adress from the GW: 10.10.100.254

The Firewall has the 10.10.99.254 and the Switch has 10.10.99.1 in the 99er VLAN.

 

I thought, when i give the switch the Ip default gateway (10.10.99.254) that he builds automatically the 0.0.0.0 route.

On show running-config the route is present, but not in show ip route

 

I also rebooted the switch, but only a warm reboot, will try a cold one.

 

I'm thinking about to reset the Switch to factory, it's not productive at the moment :D

 

Cheers

Philipp

Posted

Good Morning :D

 

Thanks to IrritableTech, just didn't that i'm using the wrong ip adress for the Gateway, now with the correct adress, it's running :)

 

Thanks for the help guys!

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