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

IP address: inconsistent value

Massimo Poletti_1
Frequent Advisor

IP address: inconsistent value

Hi,
my LAN address is 192.168.4.0/23, therefore I could use address from 4.1 to 5.254.
But when I try to assign 192.168.5.0/23 as a 2626 address the answer is: "inconsistent value".
What's wrong?
Thanks
5 REPLIES
cenk sasmaztin
Honored Contributor

Re: IP address: inconsistent value

Hi Massimo

your network address 192.168.4.0 and broadcast address 192.168.5.255 cover 512 host in network

incosistent value message very interesting
please send me sh run print your 2626 switch
cenk

Massimo Poletti_1
Frequent Advisor

Re: IP address: inconsistent value

Here it is:

Running configuration:

; J4900A Configuration Editor; Created on release #H.10.67

hostname "CntMorgue"
snmp-server contact "Ced Ferrara"
snmp-server location "Cento camera mortuaria"
time timezone 60
time daylight-time-rule Western-Europe
cdp run
ip default-gateway 192.168.4.1
sntp server 192.168.33.198
timesync sntp
sntp unicast
logging 192.168.13.182
snmp-server community "auslfe" Unrestricted
snmp-server host 192.168.13.182 "auslfe"
vlan 1
name "DEFAULT_VLAN"
untagged 1-26
ip address 192.168.4.218 255.255.254.0
exit
banner motd "Azienda USL Ferrara
Accesso riservato al personale autorizzato
Ogni abuso sara' perseguito a norma di legge"
spanning-tree
password manager

This is the switch I would assign IP address 192.168.5.0/23
cenk sasmaztin
Honored Contributor

Re: IP address: inconsistent value

make console connection to switch
plaese erease config on switch with [erease startup config] commad

and
copy/paste my config
I make test now on 2626 switch not see any inconsistent value message


hostname "CntMorgue"
snmp-server contact "Ced Ferrara"
snmp-server location "Cento camera mortuaria"
time timezone 60
time daylight-time-rule Western-Europe
ip default-gateway 192.168.4.1
sntp server 192.168.33.198
timesync sntp
sntp unicast
logging 192.168.13.182
snmp-server community "public" Unrestricted
snmp-server community "auslfe" Operator Unrestricted
snmp-server host 192.168.13.182 "auslfe"
vlan 1
name "DEFAULT_VLAN"
untagged 1-28
ip address 192.168.5.220 255.255.254.0
exit
cenk

Pieter 't Hart
Honored Contributor

Re: IP address: inconsistent value

could be the switch still relates the adress to the standard classes.
10.0.0.0 /8
172.16.0.0/16
192.168.0.0/24
http://en.wikipedia.org/wiki/Private_network

So even if you specify /23 it still won't accept "x.x.x.0" as this is not valid in the /24-class where 192.168.5.0 comes from.
Then it also must not accept 192.168.4.255!

Try if 192.168.5.1/23 is accepted.
If so, call it a bug and skip the .0- adress.
Or try if the switch knows the command "ip classless", see if it makes some difference.
Pieter 't Hart
Honored Contributor

Re: IP address: inconsistent value

Massimo,
I found something else.
you may have to do a
no ip address 192.168.4.218 255.255.254.0
before
ip address 192.168.5.x 255.255.254.0
else it is seen as configuring a secondary adress on the same interface.
not replacing the old adress!
This secondary adress cannot be in the same subnet.