Bad Subnet Mask Error

Data that travels over the air and how to protect (or decipher) it

Bad Subnet Mask Error

Post by ghostheadx2 on Wed Jan 04, 2017 1:19 pm
([msg=93258]see Bad Subnet Mask Error[/msg])

I'm having an issue with a packet tracer exercise. I'm trying to do packet tracer 6.4.3.3 and I am having trouble with part 2 problem 1a. When I try to configure the IP address, I get this error:

Code: Select all
R1(config-if)#ip address 192.168.11.0 255.255.255.0
Bad mask /24 for address 192.168.11.0


I'm wondering if you could let me know what I'm doing wrong in my IP configurations. I tried looking it up and when I tried 192.168.10.2 for example, I get the same error. If I change the subnet mask I get the same error too. When it configured the the IP for the first interface, it worked without error. Changing the subnet mask to 255.255.255.1 o or to 255.255.255.255 still does it wrong.

I tried this too:

Code: Select all
R1(config-if)#ip address 192.168.12.0 255.255.255.0
Bad mask /24 for address 192.168.12.0


Could you please hint me in the right direction as to what I'm doing wrong? Thanks so much.
ghostheadx2
Contributor
Contributor
 
Posts: 728
Joined: Wed Nov 19, 2014 1:19 am
Blog: View Blog (0)


Re: Bad Subnet Mask Error

Post by boriz666 on Thu Jan 05, 2017 4:16 am
([msg=93266]see Re: Bad Subnet Mask Error[/msg])

I am using ifconfig myself if i need to change some network configuration,
I know that ip is the new preferred tool for it.

ifconfig eth0 192.168.1.12 netmask 255.255.255.0 broadcast 192.168.1.255

In your attempt, I think you forgot to state which device you wish to change
the ip address for, so something like this:

ip addr add 192.168.1.12/24 broadcast 192.168.1.255 dev eth0
boriz666
Experienced User
Experienced User
 
Posts: 99
Joined: Tue Mar 24, 2015 11:53 am
Blog: View Blog (0)



Return to Networking

Who is online

Users browsing this forum: No registered users and 0 guests