I am trying to complete an assignment for a class about subnets and routing tables. I am using the terninal shell on my Mac.
I assigned the IP address 192.168.3.1 to en0. (My teacher's instructions were to assign the address to eth0, but apparently my Mac doesn't use that interface).
Next I was told to test various network addresses and netmasks using the route command. I tried for several that should be legal, but got the error msg "illegal option -a".
Here are a couple of combinations I tried that I think should be legal:
network address: 126.96.36.199 subnet 255.255.255.224
network address: 188.8.131.52 subnet 255.255.255.240
I used the follow command to try to add them to the routing table"
route -add -net 184.108.40.206 netmask 255.255.255.224
Is there anyone that can help me and tell me what I'm doing wrong?