Options

Need explaination on this switch command pls

SurferdudeHBSurferdudeHB Member Posts: 199 ■■■□□□□□□□
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

Comments

  • Options
    lon21lon21 Member Posts: 201
    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.
  • Options
    ccnaomkarccnaomkar Member Posts: 187 ■■□□□□□□□□
    default mask for class c address

    255.255.255.0

    ur mask is 255.225.255.0
  • Options
    hiddenknight821hiddenknight821 Member Posts: 1,209 ■■■■■■□□□□
    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. icon_wink.gif
  • Options
    SurferdudeHBSurferdudeHB Member Posts: 199 ■■■□□□□□□□
    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. icon_wink.gif

    Nice! Thank you all!
Sign In or Register to comment.