Need explaination on this switch command pls

in CCNA & CCENT
I'm trying to assign IP address 192.168.1.3 to VLAN 1 on a switch and I'm getting this error.
(This is using Packet Tracer)
Switch1(config-if)#ip address 192.168.1.3 255.225.255.0
Bad mask 0xFFE1FF00 for address 192.168.1.3
(This is using Packet Tracer)
Switch1(config-if)#ip address 192.168.1.3 255.225.255.0
Bad mask 0xFFE1FF00 for address 192.168.1.3
Comments
-
lon21 Member Posts: 201
SurferdudeHB wrote: »I'm trying to assign IP address 192.168.1.3 to VLAN 1 on a switch and I'm getting this error.
(This is using Packet Tracer)
Switch1(config-if)#ip address 192.168.1.3 255.225.255.0
Bad mask 0xFFE1FF00 for address 192.168.1.3
In your second octet in your subnet should be 255. -
ccnaomkar Member Posts: 187 ■■□□□□□□□□
default mask for class c address
255.255.255.0
ur mask is 255.225.255.0 -
hiddenknight821 Member Posts: 1,209 ■■■■■■□□□□
SurferdudeHB wrote: »Switch1(config-if)#ip address 192.168.1.3 255.225.255.0
Bad mask 0xFFE1FF00 for address 192.168.1.3
Rather than repeating what others mentioned, I want to enlighten you on the hex number in your error message.
Any number you find after 0x means they are in hexadecimal. FF clearly represents 255 in decimal as you may have seen the FF-FF-FF-FF-FF-FF in the broadcast ARP request frame. I'm sure you figured what E1 means by now, so you should be able to figure out the rest. Next time you can take a crack at hex to further troubleshoot your issue. -
SurferdudeHB Member Posts: 199 ■■■□□□□□□□
hiddenknight821 wrote: »Rather than repeating what others mentioned, I want to enlighten you on the hex number in your error message.
Any number you find after 0x means they are in hexadecimal. FF clearly represents 255 in decimal as you may have seen the FF-FF-FF-FF-FF-FF in the broadcast ARP request frame. I'm sure you figured what E1 means by now, so you should be able to figure out the rest. Next time you can take a crack at hex to further troubleshoot your issue.
Nice! Thank you all!