Trouble Creating a Routing Table
Posted on 2006-03-29
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: 220.127.116.11 subnet 255.255.255.224
network address: 18.104.22.168 subnet 255.255.255.240
I used the follow command to try to add them to the routing table"
route -add -net 22.214.171.124 netmask 255.255.255.224
Is there anyone that can help me and tell me what I'm doing wrong?