Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
CHN
Community Member

assigning ip address

a funny thing happned ,when i config a ip address on a interface.the system log in last line suggest that 192.168.0.65/26 is illegal address.

i know 192.168.0.65 is a network address and can't be used like that.can anyone tell me,why 172.16.8.65/26 and 192.168.5.65/26 can be assigned to the interface.

R1(config-if)# ip address 172.16.8.65 255.255.255.192

R1(config-if)# ip address 192.168.5.65 255.255.255.192

R1(config-if)#ip address 192.168.0.65 255.255.255.196

Bad mask 0xFFFFFFC4 for address 192.168.0.65

2 REPLIES
Hall of Fame Super Blue

Re: assigning ip address

Hi

Unless there is a typo it is your subnet mask that is giving the error message ie.

255.255.255.196 should be 255.255.255.192

192.168.0.65 is not a network address, that would be 192.168.0.64.

HTH

Jon

Cisco Employee

Re: assigning ip address

Hi Friend,

IP address 172.16.8.65/26 and 192.168.5.65/26 are valid address because their subnet range start from 172.16.8.64 - 172.16.8.127 out of which 172.16.8.65 is the first address and for second ip address subnet range is 192.168.5.64 - 192.168.5.127 out of which 192.168.5.65 is again the first address.

But you last address 192.168.0.65 with mask 255.255.255.196 is wrong because 255.255.255.196 is not a valid mask and if you use 192.168.0.65 with mask 255.255.255.192 like you used for other it should work fine.

HTH

Ankur

*Pls rate all helpfull post

462
Views
0
Helpful
2
Replies
CreatePlease to create content